← ClaudeAtlas

tsa-graphlisted

Code archaeology via call graph + symbol resolution. Answer "who calls X", "what does Y call", "where is Z defined", "what's the path from A to B" in one MCP call instead of multi-step grep + read. Uses persisted cross-file resolution (Synapse) so cross-module edges are precise, not regex-guessed. Use when: - User asks "what calls this function" / "what does this function call" - Tracing a bug through layers (impact → caller chain) - Planning refactor of a function/class (need full fanout) - "Where is this symbol defined" / "find all references to X" - "Show me the path from handler → DB" - "Draw a UML class/package/component/sequence diagram" Replaces: grep + read + manual chain-following (~10-30k tokens) with 2-4 MCP calls (~1-3k tokens).
aimasteracc/tree-sitter-analyzer · ★ 36 · AI & Automation · score 78
Install: claude install-skill aimasteracc/tree-sitter-analyzer
# tsa-graph — Code archaeology, one call deep > This skill exposes the graph-focused tools that answer "who is connected to > what" — the questions agents waste the most tokens on when they fall back to > grep. ## When to use Pick the right tool by question shape: | Question | Tool | |---------------------------------------|-------------------------------| | Need search + snippets + callers/callees together? | `codegraph_query` | | What does FUNCTION call? | `codegraph_callees` | | What calls FUNCTION? | `codegraph_callers` | | Where is SYMBOL defined? | `codegraph_symbol_search` | | What references SYMBOL anywhere? | `codegraph_xref` | | Path from CALLER to CALLEE? | `codegraph_call_path` | | Resolve "Path" in file X (project or stdlib?) | `codegraph_resolve` | | Need architecture diagram output? | `codegraph_uml` | **Don't use** when: - You need the actual *body* of the function → use `extract_code_section` - You're hunting a string literal in non-source files → use Grep ## Procedure ### Single-question case (90% of uses) Pick the matching tool, call once. Read the response. Done. Example: "what calls `score_file`?" ``` codegraph_callers(function_name="score_file", language="python", limit=20) ``` Returns: `callers: [{name, file, line, callee_resolution, callee_resolved_file}, ...]`. The n