codegraph
Finds symbols, callers, callees, and the impact of a change with the `codegraph` CLI. Use when a task asks who calls a function, what a change affects, or where a symbol lives in a project that has a
SKILL.mdplugins/claudetto-codegraph/skills/codegraph/SKILL.md
GitHub<task>
Explore the code of a project with the `codegraph` CLI.
The CLI reads an index of the project, so one call replaces many `Grep` and `Read` calls.
</task>
<precondition>
The project must have the index file .codegraph/codegraph.db.
If you are not sure, run claudetto-codegraph-check.
It tells you whether the CLI is on PATH and whether the project has an index.
If the project has no index, tell the user to run codegraph init -y.
Do not run codegraph init yourself, because it changes the files of the project.
</precondition>
codegraph query <text>finds symbols by name.codegraph explore <question>gives the source and the call paths of an area.codegraph node <symbol>gives the source of one symbol with its callers and callees.codegraph callers <symbol>andcodegraph callees <symbol>list who calls a symbol and what it calls.codegraph impact <symbol> -d 5lists the code that a change to the symbol affects. The default depth of 2 misses some of it.codegraph affected <file>...lists the test files that a change to the files affects.codegraph filesshows the file tree from the index.</commands>
claude mcp add --scope user codegraph -- bunx @colbymchenry/codegraph@1.6.0 serve --mcp
The tools are in the tool list of the next session.
claudetto-codegraph-check --mcp prints this command and the command that removes the server.
</mcp>