/build-graph
Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.
Claude Code
$ npx -y skills add tirth8205/code-review-graph --skill build-graph --agent claude-code
Codex
$ npx skills add tirth8205/code-review-graph --skill build-graph -a codex -y
Cursor
$ npx skills add tirth8205/code-review-graph --skill build-graph -a cursor -y
Gemini CLI
$ npx skills add tirth8205/code-review-graph --skill build-graph -a gemini-cli -y
GitHub Copilot
$ npx skills add tirth8205/code-review-graph --skill build-graph -a github-copilot -y
OpenCode
$ npx skills add tirth8205/code-review-graph --skill build-graph -a opencode -y
Windsurf
$ npx skills add tirth8205/code-review-graph --skill build-graph -a windsurf -y
SKILL.md
build-graph.SKILL.mdname: build-graph description: Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically. argument-hint: "[full]"
Build Graph
Build or incrementally update the knowledge graph for this repository.
Steps
1. Call `list_graph_stats_tool`. If `last_updated` is null, the graph has never been built. 2. For a first build, or when the argument is `full`, call `build_or_update_graph_tool(full_rebuild=True)`. Otherwise call `build_or_update_graph_tool()` for an incremental update. 3. Report the response: `status` (`ok`, `partial` or `error`) and `summary`. `contended` means 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 install` run 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.db` in the repository root.
- Binary files, dependency and build directories, and patterns in `.code-review-graphignore` are skipped.
- For the list of supported languages call `get_docs_section_tool(section_name="languages")`.
Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.
Other skills on code-review-graph.
explore-codebase
Navigate and understand codebase structure using the knowledge graph
review-changes
Perform a structured code review using change detection and impact
review-delta
Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.
review-pr
Review a PR or branch diff using the knowledge graph for full structural context. Outputs a structured review with blast-radius…
More skills from other plugins.
open-code-review
Performs AI-powered code review on Git changes using the `ocr` CLI from alibaba/open-code-review. Use when the user asks to…
addressing-pr-review-c…
Address all valid review comments on a PR for the current branch in the streamlit/streamlit repo. Covers both inline review…
hunk-extensions
Maps the `hunkdiff/extension` authoring surface for Hunk, the terminal diff viewer — hiding or reordering reviewed files, docked…
Questions about build-graph.
- Which coding agents can use build-graph?
- build-graph installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

