From cartograph
Generates Mermaid flowcharts visualizing import dependencies between modules/packages/plugins. Detects circular dependencies, analyzes coupling, and assesses refactoring impacts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cartograph:dependency-graphThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate a Mermaid flowchart showing import and dependency
Generate a Mermaid flowchart showing import and dependency relationships between modules, packages, or plugins.
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:
npx claudepluginhub athola/claude-night-market --plugin cartographGenerates Mermaid flowcharts visualizing high-level codebase component relationships. Use for onboarding, PR reviews, and understanding system structure.
Visualizes project dependency graphs across domains, detects circular dependencies, and analyzes cross-domain coupling in Python, JS/TS, and Go codebases. Use before refactoring, architecture reviews, or adding domains.
Generates Mermaid diagrams from Trailmark code graphs: call graphs, class hierarchies, module dependencies, containment structures, complexity heatmaps, data flows. Use for visualizing code architecture and attack surfaces.