build-graph
What it does
This skill runs the code-review-graph tool to index a code repository. It is for developers who want the agent to understand their codebase structure before reviewing or searching it.
When to use it
- ✓When you set up code-review-graph for a repository for the first time.
- ✓When you switch branches or do a large refactor and the graph may be out of date.
- ✓When you want to refresh the graph after a set of code changes.
Skill link
https://github.com/tirth8205/code-review-graph/blob/staging/skills/build-graph/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you build the code review graph for this repository so we can start reviewing faster?”
5 new skills a week. 1 minute to read.
How it works
The agent checks the graph's status, runs a full build or a quick update, and reports whether the process succeeded.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
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 and before each commit, 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").
FAQ
Where is the graph stored?
The skill says it is stored in a database file inside the repository's .code-review-graph folder.
Are some files skipped?
Yes. Binary files, dependency folders and patterns in the ignore file are skipped.
Do I need to run it often?
Usually not. The skill says hooks keep the graph updated automatically.
Details
Original description by the author
Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.
Popularity
- GitHub stars
- 33k
- Ranking position
- #9138
- License
- MIT
- Updated
- 10/29/2026
Comments
- …
More skills from this repository
debug-issue
33kHelps your agent trace a bug through a code knowledge graph, following the call chain before reading the source code.
explore-codebase
33kHelps your agent find its way around an unfamiliar codebase by searching the code knowledge graph for modules and relationships.
refactor-safely
33kHelps your agent plan a code refactor using dependency analysis, and apply renames only after checking a preview.
review-changes
33kHelps your agent review a set of code changes with risk scores, test gaps and the blast radius, grouped by risk level.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.