← ClaudeAtlas

codebase-memorylisted

Use the codebase knowledge graph for structural code queries. Triggers on: explore the codebase, understand the architecture, what functions exist, show me the structure, who calls this function, what does X call, trace the call chain, find callers of, show dependencies, impact analysis, dead code, unused functions, high fan-out, refactor candidates, code quality audit, graph query syntax, Cypher query examples, edge types, how to use search_graph.
LucasSantana-Dev/sharekit · ★ 1 · Code & Development · score 70
Install: claude install-skill LucasSantana-Dev/sharekit
# Codebase Memory — Knowledge Graph Tools Backed by the `codebase-memory` MCP server (`~/.local/bin/codebase-memory-mcp`, stdio). The server indexes codebases into a persistent tree-sitter AST knowledge graph (158 languages, sub-ms queries). Index a project before querying — see Workflow below. Graph tools return precise structural results in ~500 tokens vs ~80K for grep. ## Quick Decision Matrix | Question | Tool call | |----------|----------| | Who calls X? | `trace_path(direction="inbound")` | | What does X call? | `trace_path(direction="outbound")` | | Full call context | `trace_path(direction="both")` | | Find by name pattern | `search_graph(name_pattern="...")` | | Dead code | `search_graph(max_degree=0, exclude_entry_points=true)` | | Cross-service edges | `query_graph` with Cypher | | Impact of local changes | `detect_changes()` | | Risk-classified trace | `trace_path(risk_labels=true)` | | Text search | `search_code` or Grep | ## Exploration Workflow 1. `list_projects` — check if project is indexed 2. If not indexed: `index_repository(path="<repo>")` then `index_status` — one-time, milliseconds for average repos 3. `get_graph_schema` — understand node/edge types 4. `search_graph(label="Function", name_pattern=".*Pattern.*")` — find code 5. `get_code_snippet(qualified_name="project.path.FuncName")` — read source ## Tracing Workflow 1. `search_graph(name_pattern=".*FuncName.*")` — discover exact name 2. `trace_path(function_name="FuncName", direction="both", dept