Skip to content
Code Review
Skill

/build-graph

Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.

From plugin
code-review-graph
33k7 skills2 hooks1 MCP

Claude Code

$ npx -y skills add tirth8205/code-review-graph --skill build-graph --agent claude-code

SKILL.md

build-graph.SKILL.md
name: 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")`.
@tirth8205
Ships withcode-review-graph

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.

33k7 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
32.5k
Star history of tirth8205/code-review-graph on GitHub, a chart by star-history.com

Other skills on code-review-graph.

review-pr

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

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…

@alibaba@alibabaInstall Skill
hunk-extensions

hunk-extensions

Maps the `hunkdiff/extension` authoring surface for Hunk, the terminal diff viewer — hiding or reordering reviewed files, docked…

hunk2d9.8k
@modem-dev@modem-devInstall Skill
install-anti-slop

install-anti-slop

Install, configure, update, or upgrade vendored anti-slop Oxlint plugins. Use when adding anti-slop, picking up upstream rules or…

anti-slop4w5.8k
@dmmulroy@dmmulroyInstall Skill

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.