
Build Graph
This builds a SQLite knowledge graph of your codebase by parsing files and extracting relationships between functions, classes, and imports. You run it once to initialize, then hooks keep it updated automatically on edits and commits. It skips binaries and respects a .code-review-graphignore file, supports about a dozen languages from Python to Solidity. The graph lives in .code-review-graph/graph.db at your repo root. Honest take: the auto-update hooks mean you'll probably run this manually once at setup and maybe again after big refactors or branch switches, but otherwise forget it exists. The incremental updates are the real value here.
- skills.sh installs
- 1.3K
- GitHub stars
- 32.7K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add tirth8205/code-review-graph --skill build-graph --agent claude-codeInstalls into .claude/skills of the current project.
Files
Build Graph
Build or incrementally update the knowledge graph for this repository.
Steps
- Call
list_graph_stats_tool. Iflast_updatedis null, the graph has never been built. - For a first build, or when the argument is
full, callbuild_or_update_graph_tool(full_rebuild=True). Otherwise callbuild_or_update_graph_tool()for an incremental update. - Report the response:
status(ok,partialorerror) andsummary.contendedmeans another build of this repository is running; retry once it finishes.
When to Use
- First set-up of a repository, or after a branch switch or large refactor.
- When the graph looks stale. Hooks installed by
code-review-graph installrun an update after each edit, before each commit and after a branch switch, merge or rebase, so manual builds are rarely needed.
Notes
- The database is
.code-review-graph/graph.dbin the repository root. - Binary files, dependency and build directories, and patterns in
.code-review-graphignoreare skipped. - For the list of supported languages call
get_docs_section_tool(section_name="languages").
Sponsors
Details
- Repository
- github.com/tirth8205/code-review-graph
- Categories
- Frontend Development, DevOps & CI/CD, Git & Pull Requests, Code Review & Quality
- First seen
- Jun 3, 2026