codegraph
Skill0 starsChanged 25 days agoMITView on GitHub
Use when asked where X is defined, how Y works, what calls X, or what changing X breaks in a .codegraph/ repo.
16 other projects use a version of this.
Adopted by
Most recently taken up by
- aiproxer/aiproxertheir own version, first seen Nov 8, 2026
- davidgfolch/AI-job-searchtheir own version, first seen Nov 8, 2026
- rakaarwaky/agents-arwakytheir own version, first seen Nov 1, 2026
- suntianc/paseo-matt-worklooptheir own version, first seen Nov 1, 2026
- whoaskedssselery/claude-workspacetheir own version, first seen Oct 20, 2026
- gandolh/my-personal-skillstheir own version, first seen Oct 17, 2026
Used with
Projects with it also use codebase-design and grill-me.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
GoogleSkillcodebase-design
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
Also in 3 projects that use this
GoogleSkillgrill-me
A relentless interview to sharpen a plan or design.
Also in 4 projects that use this
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 16
- idaholab/moose★ 2.4ksame name
- alibaba/neug★ 177same name
- SylphAI-Inc/skills★ 111same name
- aiproxer/aiproxer★ 22same name
- sunerpy/codegraph-rust★ 20same name
- suntianc/paseo-matt-workloop★ 11same name
- linkpranay-ai/context-engineering-protocol★ 9same name
- davidgfolch/AI-job-search★ 6same name
- sponge-b0b/Polaris★ 4same name
- betterlmy/agent-skills★ 3same name
6 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
- gh-issue-draftSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
If the registered tool list looks shorter than the table above, CODEGRAPH_MCP_TOOLS is narrowing the companion set to a subset of …
- Distinctive: line 44
Every parameter, default, and return shape deliberately absent above lives in a resource this server serves — read it on demand through …
- Distinctive: line 57
All 8 tools are documented this way — nothing above restates a parameter, a default, a maximum, or a return shape that one of these …
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Which tool for which question
| Question shape | Reach for this |
| Where is X defined? How does Y work? | codegraph_explore (MCP tool), or the codegraph explore "<query>" CLI as the shell fallback |
| What calls X? What does X call? | codegraph_callers / codegraph_callees |
| What breaks if I change X's signature? | codegraph_impact |
| I don't know the exact symbol name — fuzzy lookup | codegraph_search |
| Show one symbol's full detail | codegraph_node |
| Which files are involved? | codegraph_files |
| Is the index current? | codegraph_status |
When not to reach for codegraph
With no .codegraph/ directory at the repository root, skip codegraph entirely — use grep, find, and ordinary file reads instead. Indexing is the user's decision, not something to prompt for.
If the registered tool list looks shorter than the table above, CODEGRAPH_MCP_TOOLS is narrowing the companion set to a subset of codegraph_node, codegraph_search, codegraph_callers, codegraph_callees, codegraph_impact, codegraph_files, and codegraph_status — codegraph_explore is never removable by this filter. Unsetting the variable restores the full set.
Worked examples
The 2026-08-08 misdirection incident
A user reported: "the mcp server is only showing one tool." The session's first move was wrong — it searched the instructions string and the README for an explanation, because the instructions text of the day attributed tool visibility solely to index state ("an empty tool list means this repository has no index yet"). That explanation misled the session structurally, not just factually: a missing index produces zero tools, never one, so the single cause it offered could not have produced the symptom actually observed.
The right move was a codegraph_explore call against the server's own source — internal/mcp/server.go and internal/cli/serve.go — which would have surfaced the allowlist-resolution path (ResolveCompanions, gated by CODEGRAPH_MCP_TOOLS) directly, instead of trusting a wire-contract string that was, at the time, itself wrong.
Full root cause, timeline, and evidence: .planning/debug/resolved/mcp-server-one-tool-only.md. The instructions string has since been corrected to name all three visibility mechanisms — this example is a lesson about the failure mode, not a description of current behavior.
Impact analysis before a refactor
"What breaks if I change this function's signature?" Reach for codegraph_impact (MCP), or codegraph impact <symbol> as the CLI fallback — a depth-bounded reverse blast radius over the call graph, not a manual grep for every call site. Grepping for a symbol's name finds textual matches; it does not compute what actually depends on it, and it misses call sites reached through an interface or alias. For the parameter's full semantics, read codegraph://tools/impact.
Cross-file symbol lookup across dynamic dispatch
"Where is X defined?" or "how does Y work?" sometimes has an answer that sits behind an interface implementation or a dynamic-dispatch hop — the call site names an interface method, and the implementation that actually runs lives in a different file entirely. A text search matches the call site's spelling, not the implementation it resolves to, so the hop is exactly what grep structurally cannot follow. codegraph_explore (MCP), or codegraph explore "<query>" as the CLI fallback, resolves the call graph across that hop and returns the verbatim source plus the path that reaches it.
Full reference
Every parameter, default, and return shape deliberately absent above lives in a resource this server serves — read it on demand through your MCP resource-read tool rather than trusting this file to restate it:
codegraph_explore→codegraph://tools/explorecodegraph_node→codegraph://tools/nodecodegraph_search→codegraph://tools/searchcodegraph_callers→codegraph://tools/callerscodegraph_callees→codegraph://tools/calleescodegraph_impact→codegraph://tools/impactcodegraph_files→codegraph://tools/filescodegraph_status→codegraph://tools/status- How
CODEGRAPH_MCP_TOOLSnarrows the companion set →codegraph://tools-filter - Preconditions for tool registration based on index presence →
codegraph://index-state
All 8 tools are documented this way — nothing above restates a parameter, a default, a maximum, or a return shape that one of these resources already owns.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

