/cartograph:call-chainfrom cartograph
Traces execution paths through the code graph with criticality scoring and Mermaid charts. Use when understanding how a function propagates through the system.
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.
Trace execution flows through the codebase using the code knowledge graph.
cartograph:dependency-graph)pensive:blast-radius)This skill requires the gauntlet plugin for graph data. Discover it:
GRAPH_QUERY=$(find ~/.claude/plugins -name "graph_query.py" -path "*/gauntlet/*" 2>/dev/null | head -1)
If gauntlet is not installed: Fall back to static
analysis. Use grep to trace function calls and build
a Mermaid diagram manually from import/call patterns.
Skip graph-specific steps.
If installed but no graph.db: Tell the user to run
/gauntlet-graph build.
Accept target: Get a function name or entry point from the user (or trace all entry points).
Run flow tracing (requires gauntlet):
python3 "$GRAPH_QUERY" --action flows --depth 15
To filter by entry point:
python3 "$GRAPH_QUERY" --action flows --entry "main"
Fallback (no gauntlet): Trace calls with rg (or grep):
# Prefer rg (ripgrep) for speed; fall back to grep
if command -v rg &>/dev/null; then
rg -n "function_name\(" --type py . | head -20
else
grep -rn "function_name(" --include="*.py" . | head -20
fi
Build the call tree manually from search results.
Display as indented tree:
main() [criticality: 0.72]
-> validate_input()
-> parse_config()
-> process_data()
-> db.execute_query()
-> cache.store()
-> send_response()
Generate Mermaid flowchart:
flowchart LR
main --> validate_input
main --> process_data
main --> send_response
validate_input --> parse_config
process_data --> db.execute_query
process_data --> cache.store
Show criticality breakdown:
| Factor | Weight | Meaning |
|---|---|---|
| File spread | 0.30 | Touches many files |
| Security | 0.25 | Contains auth/crypto code |
| External calls | 0.20 | Unresolved dependencies |
| Test gap | 0.15 | Untested nodes in flow |
| Depth | 0.10 | Deep call chains |
[criticality: N.NN]flowchart LR generated with edges representing
each caller-to-callee relationship in the traced pathrg/grep
analysis is used and the absence of graph data is notedgraph.db is absent, user is
told to run /gauntlet-graph build before the skill haltsWhat 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./class-diagramGenerates a Mermaid class diagram showing types, inheritance, and composition. Use when visualizing class hierarchies or documenting a module public API./code-communitiesDetects architectural clusters and coupling boundaries via community detection on the code graph. Use when identifying module groupings or refactoring targets./data-flowGenerates a Mermaid sequence diagram showing how data moves between components. Use when tracing request flows or documenting data transformation pipelines./dependency-graphGenerates a Mermaid dependency graph showing import relationships between modules. Use when analyzing coupling, finding circular deps, or planning refactors./workflow-diagramGenerates a Mermaid workflow diagram showing process steps, decisions, and state transitions. Use when documenting CI/CD pipelines or lifecycle processes.npx claudepluginhub athola/claude-night-market --plugin cartographOther plugins' skills for the same job