/cartograph:dependency-graphfrom cartograph
Generates a Mermaid dependency graph showing import relationships between modules. Use when analyzing coupling, finding circular deps, or planning refactors.
Ships in cartograph. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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 arrowsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/architecture-diagramGenerates a Mermaid architecture diagram showing high-level component relationships. Use when visualizing how plugins or modules fit together./call-chainTraces execution paths through the code graph with criticality scoring and Mermaid charts. Use when understanding how a function propagates through the system./class-diagramGenerates a Mermaid class diagram showing types, inheritance, and composition. Use when visualizing class hierarchies or documenting a module public API.npx claudepluginhub athola/claude-night-market --plugin cartographOther plugins' skills for the same job