/ 目录 / 演练场 / Modularity
● 社区 vladikk ⚡ 即开即用

Modularity

作者 vladikk · vladikk/modularity

Translates functional requirements into module boundaries using DDD heuristics — bounded contexts, aggregates, integration patterns.

Vladik Khononov's plugin operationalizes the heuristics from his book on bounded contexts. Feed it requirements; it proposes contexts, aggregates, and integration relationships, with rationale.

为什么要用

核心特性

实时演示

实际使用效果

就绪

安装

选择你的客户端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "modularity-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/vladikk/modularity"
      ],
      "_inferred": true
    }
  }
}

打开 Claude Desktop → Settings → Developer → Edit Config。保存后重启应用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "modularity-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/vladikk/modularity"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用与 Claude Desktop 相同的 mcpServers 格式。项目级配置优先于全局。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "modularity-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/vladikk/modularity"
      ],
      "_inferred": true
    }
  }
}

点击 Cline 侧栏中的 MCP Servers 图标,然后选 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "modularity-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/vladikk/modularity"
      ],
      "_inferred": true
    }
  }
}

格式与 Claude Desktop 相同。重启 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "modularity-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/vladikk/modularity"
      ]
    }
  ]
}

Continue 使用服务器对象数组,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "modularity-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/vladikk/modularity"
        ]
      }
    }
  }
}

加入 context_servers。Zed 保存后热重载。

claude mcp add modularity-skill -- git clone https://github.com/vladikk/modularity

一行命令搞定。用 claude mcp list 验证,claude mcp remove 卸载。

使用场景

实战用法: Modularity

Carve up a greenfield service into modules

👤 Claude Code users ⏱ ~15 min intermediate

何时使用: You're sketching a new system and want to avoid a distributed monolith.

步骤
  1. Brief
    Provide functional requirements + non-functional priorities.✓ 已复制
    → Skill asks clarifying questions
  2. Receive design
    Module map with contexts + aggregates + integration patterns.✓ 已复制
    → Diagrams + rationale
  3. Iterate
    Push back on weak boundaries; refine.✓ 已复制
    → Approved decomposition

结果: Defensible module boundaries before code is written.

组合

与其他 MCP 搭配,撬动十倍杠杆

modularity-skill + drawio-mcp

Visualize the proposed module map

Combine modularity-skill with drawio-mcp: Visualize the proposed module map✓ 已复制

工具

此 MCP 暴露的能力

工具输入参数何时调用成本
design / critique (see docs) Two main flows 1 call

成本与限制

运行它的成本

API 配额
N/A
每次调用 Token 数
Mid
费用
Free
提示
Treat output as a starting point — author intends it to be argued with

安全

权限、密钥、影响范围

凭据存储: None
数据出站: None

故障排查

常见错误与修复

Output too academic

Ask for "concrete service names + database boundaries"

替代方案

Modularity 对比其他方案

替代方案何时用它替代权衡
Hand-rolledYou already know your domain coldNo structured second opinion

更多

资源

📖 阅读 GitHub 上的官方 README

🐙 查看未解决的 issue

🔍 浏览全部 400+ MCP 服务器和 Skills