Agent skill

Code Review Graph Builder

by tirth8205 in tirth8205/code-review-graph

Builds or incrementally updates the code-review knowledge graph for a repository and reports whether the build succeeded, partly or failed.

MITAuto-check passedDevelopment

Install Code Review Graph Builder

skills CLI
$ npx skills add tirth8205/code-review-graph --skill build-graph -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install tirth8205/code-review-graph build-graph --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/tirth8205/code-review-graph.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/build-graph .claude/skills/build-graph && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
build-graph
GitHub stars
32k
Token cost
~295 tokens
SKILL.md length
128 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Builds or incrementally updates the code-review knowledge graph for a repository and reports whether the build succeeded, partly or failed.

  • Works in 3 steps: Call list_graph_stats_tool. If… → For a first build, or when the argument… → Report the response: status (ok, partial…
  • Setting up the code-review graph in a repository for the first time
  • SKILL.md covers Steps, When to Use and Notes
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

The agent starts by asking for graph statistics; if `last_updated` is empty, the graph has never been built. A first build, or a request with the argument `full`, triggers a complete rebuild, and any other call performs an incremental update. The agent then reports the returned status (ok, partial or error) and summary.

Manual builds suit first setup, a branch switch, a large refactor or a graph that looks stale; hooks installed by `code-review-graph install` already refresh it after edits and before commits, so they are rarely needed. The graph is stored in `.code-review-graph/graph.db`, binary files, dependency and build directories and patterns in `.code-review-graphignore` are skipped, and supported languages can be listed through the docs tool.

When your agent uses it

  • Setting up the code-review graph in a repository for the first time
  • Refreshing the graph after switching branches or a large refactor
  • Rebuilding the graph from scratch when it looks stale

Example prompts

  • “Build the code review graph for this repo.”
  • “I just rebased onto main, so do a full rebuild of the graph.”
  • “Update the knowledge graph and tell me whether the build was partial.”

Requirements

  • code-review-graph installed, with its MCP tools available

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  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…
  3. Report the response: status (ok, partial or error) and summary.

What it can do on your machine

Read from SKILL.md and the folder at commit 6b12d11. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Review Graph Builder loads about 295 tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 128 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~34
When it runs · the whole SKILL.md, loaded when a task matches
~295

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from tirth8205/code-review-graph at commit 6b12d11, republished under its MIT licence (© tirth8205). 128 words, ~295 tokens.

Download SKILL.mdSave it as .claude/skills/build-graph/SKILL.md (or your agent's skills folder).
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.

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 and before each commit, 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, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/build-graph of tirth8205/code-review-graph.

Open the folder on GitHubat commit 6b12d11

Compare with similar skills

Code Review Graph Builder next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Review Graph Builder compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Review Graph Builder this skilltirth8205/code-review-graph32k—~295Automated safety check: PassMIT
Understand Diff AnalysisEgonex-AI/Understand-Anything85k1 repos~1.4kAutomated safety check: PassMIT
Large Codebase Knowledge Base BuilderTencent/teamai-cli5.1k—~4.4kAutomated safety check: PassCustom licence
Code ReviewOpenDCAI/DataMind406—~340Automated safety check: PassApache-2.0
PR Inline Commentssesori-ai/sesori_apps_monorepo125—~2.3kAutomated safety check: PassCustom licence
Graphxwtro0tk1t-cloud/harness265—~1.1kAutomated safety check: PassNone

Similar skills

  • Understand Diff Analysis

    Egonex-AI/Understand-Anything

    Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.

    85k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Compresses a large multi-repository codebase into a structured knowledge base through architecture reverse-engineering, a Graph RAG graph and AST analysis.

    5.1k GitHub stars~4.4k tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • Code Review

    OpenDCAI/DataMind

    Comprehensive code review guidance — process, checklist, feedback conventions.

    406 GitHub stars~340 tokensUpdated 17 days ago
    DevelopmentAuto-check passed
  • PR Inline Comments

    sesori-ai/sesori_apps_monorepo

    Fetch inline (code) review comments on a GitHub pull request, grouped into threads, with optional filtering by datetime.

    125 GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Graph

    xwtro0tk1t-cloud/harness

    Manage code knowledge graphs via code-review-graph (CRG). An agent skill from xwtro0tk1t-cloud/harness.

    265 GitHub stars~1.1k tokensUpdated 5 mo ago
    Knowledge ManagementAuto-check passed
  • Code Review

    managedcode/dotnet-skills

    Review .NET changes for bugs, regressions, architectural drift, missing tests, incorrect async or disposal behavior, and platform-specific pitfalls before you approve or merge them.

    486 GitHub stars~976 tokensUpdated today
    DevelopmentAuto-check passed

More from tirth8205/code-review-graph

  • Knowledge Graph PR Review

    tirth8205/code-review-graph

    Reviews a pull request or branch diff with a code knowledge graph and produces a structured review that includes blast-radius analysis.

    32k GitHub stars~452 tokensUpdated today
    Auto-check passed
  • Graph-Based Bug Tracing

    tirth8205/code-review-graph

    Traces a bug through a code knowledge graph, following callers, callees and execution flow before opening source files, within a small token budget.

    32k GitHub starsUsed in 1 repo~287 tokens
    Auto-check passed
  • Explore Codebase with Graph

    tirth8205/code-review-graph

    Navigates a codebase through the code-review-graph MCP tools: architecture overview, symbol search, caller and callee tracing, flows and oversized functions.

    32k GitHub starsUsed in 1 repo~335 tokens
    Auto-check passed
  • Graph-Guided Safe Refactoring

    tirth8205/code-review-graph

    Plans a refactor from a code dependency graph, previews renames before applying them and checks that the final impact matches the plan.

    32k GitHub starsUsed in 1 repo~332 tokens
    Auto-check passed
  • Graph-Based Change Review

    tirth8205/code-review-graph

    Reviews a change set using a code knowledge graph for risk scores, blast radius and test gaps, and ends with a merge recommendation.

    32k GitHub starsUsed in 1 repo~331 tokens
    Auto-check passed
  • Review Delta

    tirth8205/code-review-graph

    Reviews only the code changed since the last commit, using a code-graph MCP server to find risk-scored changes, test gaps and the blast radius, then writes a short report.

    32k GitHub stars~325 tokensUpdated today
    Auto-check passed

Questions about Code Review Graph Builder

What does Code Review Graph Builder do?

Builds or incrementally updates the code-review knowledge graph for a repository and reports whether the build succeeded, partly or failed. The agent starts by asking for graph statistics; if `last_updated` is empty, the graph has never been built. A first build, or a request with the argument `full`, triggers a complete rebuild, and any other call performs an incremental update.

When should I use Code Review Graph Builder?

Code Review Graph Builder fits situations like: setting up the code-review graph in a repository for the first time; refreshing the graph after switching branches or a large refactor; rebuilding the graph from scratch when it looks stale.

How do I install Code Review Graph Builder in Claude Code?

Run `npx skills add tirth8205/code-review-graph --skill build-graph -a claude-code`. Or copy the skill folder (skills/build-graph in tirth8205/code-review-graph) into .claude/skills/build-graph in your project. Claude Code loads it when a task matches its description.

How do I install Code Review Graph Builder in Codex?

Run `npx skills add tirth8205/code-review-graph --skill build-graph -a codex`. Or copy the skill folder (skills/build-graph in tirth8205/code-review-graph) into .agents/skills/build-graph in your project. Codex loads it when a task matches its description.

Can I use Code Review Graph Builder in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add tirth8205/code-review-graph --skill build-graph -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/build-graph, .gemini/skills/build-graph, .github/skills/build-graph and .opencode/skills/build-graph in your project.

What does Code Review Graph Builder need to run?

SKILL.md names no scripts, command-line tools or credentials: Code Review Graph Builder is instructions for the agent only. Our summary lists: code-review-graph installed, with its MCP tools available.

Does Code Review Graph Builder access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Code Review Graph Builder safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Review Graph Builder use?

Code Review Graph Builder is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Review Graph Builder use?

About 295 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Review Graph Builder?

Skills that share tags, products or a category with Code Review Graph Builder: Understand Diff Analysis (Egonex-AI/Understand-Anything, 85k stars), Large Codebase Knowledge Base Builder (Tencent/teamai-cli, 5.1k stars), Code Review (OpenDCAI/DataMind, 406 stars) and PR Inline Comments (sesori-ai/sesori_apps_monorepo, 125 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Review Graph Builder?

tirth8205 (a GitHub user) maintains it in tirth8205/code-review-graph, which has 31,943 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 6, 2026.

Source: tirth8205/code-review-graph on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.