call-chain

Solid

Traces execution paths through the code graph with criticality scoring and Mermaid charts. Use when understanding how a function propagates through the system.

AI & Automation 310 stars 27 forks Updated today MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
83
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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. **Display as indented tree**: ``` main() [criticality: 0.72] -> validate_input() -> parse_config() -> process_data() -> db.execute_query() -> cache.store() -> send_response() ``` 4. **G...

Details

Author
athola
Repository
athola/claude-night-market
Created
6 months ago
Last Updated
today
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category