计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
dependency-graph【效率与协作】Generates a Mermaid dependency graph showing import relationships between modules. Use when analyzing coupling, finding circular deps, or planning refactors.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate a Mermaid flowchart showing import and dependency relationships between modules, packages, or plugins.
cartograph:call-chain)cartograph:class-diagram)Dispatch the codebase explorer agent:
Agent(cartograph:codebase-explorer)
Prompt: Explore [scope] and return a structural model.
Focus on import statements and cross-module dependencies
for a dependency graph. Track both internal and external
imports.
Transform the structural model into a Mermaid flowchart with directed edges representing dependencies.
Rules for dependency graphs:
flowchart LR (left-right) for dependency direction-.->) for external/optional deps==>) for critical path dependenciesExample output:
flowchart LR
subgraph sanctum[Sanctum]
commit[commit]
pr_prep[pr_prep]
workspace[workspace]
end
subgraph leyline[Leyline]
git[git_platform]
errors[error_patterns]
end
subgraph external[External]
subprocess[subprocess]
json[json]
end
commit --> git
commit --> json
pr_prep --> workspace
pr_prep --> git
workspace --> errors
workspace -.-> subprocess
Call the Mermaid Chart MCP to render:
mcp__claude_ai_Mermaid_Chart__validate_and_render_mermaid_diagram
prompt: "Dependency graph of [scope]"
mermaidCode: [generated syntax]
diagramType: "flowchart"
clientName: "claude-code"
If rendering fails, fix syntax and retry (max 2 retries).
Show the rendered diagram with analysis notes:
flowchart LR syntax generated with directed edges
from dependent to dependency (A --> B means "A depends on B")mcp__claude_ai_Mermaid_Chart__validate_and_render_mermaid_diagram
called and returns without error-.->) distinct from
internal dependency arrows