call-chain
Traces execution paths through the code graph with criticality scoring and Mermaid charts. Use when understanding how a function propagates through the system.
npx skills add majiayu000/claude-skill-registry --skill call-chain --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Call Chain Tracing Trace execution flows through the codebase using the code knowledge graph. ## Prerequisites This skill requires the **gauntlet** plugin for graph data. Discover it: ```bash 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`. ## Steps 1. **Accept target**: Get a function name or entry point from the user (or trace all entry points). 2. **Run flow tracing** (requires gauntlet): ```bash python3 "$GRAPH_QUERY" --action flows --depth 15 ``` To filter by entry point: ```bash python3 "$GRAPH_QUERY" --action flows --entry "main" ``` **Fallback (no gauntlet)**: Trace calls with rg (or grep): ```bash # 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. 3. *
- Prerequisites
- Steps
- Criticality Scoring
python3 "$GRAPH_QUERY" --action flows --depth 15
python3 "$GRAPH_QUERY" --action flows --entry "main"
if command -v rg &>/dev/null; then
rg -n "function_name\(" --type py . | head -20
else
grep -rn "function_name(" --include="*.py" . | head -20
fiWhat does the call-chain skill do?
Traces execution paths through the code graph with criticality scoring and Mermaid charts. Use when understanding how a function propagates through the system.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill call-chain --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
