Repo graph init
Set up or rebuild the structural graph for a repo — on first use, after a big refactor, or to wire repo-graph into a project permanently.From its SKILL.md
npx -y skills add James-Chahwan/repo-graph --skill repo-graph-initAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.1 KB, as published. Nobody here has run it
repo-graph init
Build the graph so the other skills have something to read.
When to use
- First time using repo-graph in a repo (no graph yet).
- After a large refactor or branch switch — the graph is stale.
Steps
-
First use: call
refresh(optionallyrepo_path=<local path or git URL>). It scans with tree-sitter, runs the cross-stack resolvers, and caches the result. (The server also builds the graph automatically on first connect, so this is only needed to force it.) -
After code changes: call
refreshagain — incremental, so only changed files re-parse. Addfull=trueto force a clean reparse. Routine edits are picked up automatically by the file watcher. -
To add repo-graph to a project for good, drop an
.mcp.jsonat the repo root:{"mcpServers":{"repo-graph":{"command":"uvx","args":["mcp-repo-graph","--repo","."]}}} -
Call
orientto confirm it loaded.