build-graph

build-graph is a skill for Claude Code from tirth8205/code-review-graph. It costs 27 tokens per session (296 once invoked), scanned A, original, MIT.

A guide for building or updating a repository’s persistent knowledge graph, which records relationships between code elements. It stores the graph in a SQLite database, a file-based database format, inside the repository.

In plain words
What is it for?
It is for creating the graph for the first time, updating it incrementally, checking repository statistics, and reporting parsed files, code relationships, detected languages, and errors.
Why use it?
It initializes the map used by code-review tools and keeps that map current after changes, refactoring, or branch switches.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit It is for creating the graph for the first time, updating it incrementally, checking repository statistics, and reporting parsed files, code relationships, detected languages, and errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tirth8205/code-review-graph/build-graph
About the project

code-review-graph is a local-first code intelligence graph that builds a persistent structural map of a codebase and supplies relevant context to AI coding tools through MCP and a CLI. It is used for code review and large-repository workflows, with catalogue add-ons providing integrations and instructions for operating it.

tirth8205/code-review-graph · 32,974 stars · on GitHub · code-review-graph.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tirth8205/code-review-graph --skill build-graph
Clone the repo
git clone --depth 1 https://github.com/tirth8205/code-review-graph

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/tirth8205/code-review-graph/build-graph/github.svg)](https://agentmods.dev/skills/tirth8205/code-review-graph/build-graph)
Your own site
<a href="https://agentmods.dev/skills/tirth8205/code-review-graph/build-graph"><img src="https://agentmods.dev/badge/skills/tirth8205/code-review-graph/build-graph/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for build-graph

Your own site · 80×15
<a href="https://agentmods.dev/skills/tirth8205/code-review-graph/build-graph"><img src="https://agentmods.dev/badge/skills/tirth8205/code-review-graph/build-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 296 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 16 Sept 2026
  • Snyk pass 11 Nov 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00296
Opus 5.5 $0.00011 $0.00118
Sonnet 5.5 $0.00005 $0.00059
Haiku 4.5 $0.00003 $0.00030

Measured 18d ago against content hash ddaaec32cdc8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

build-graph scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/build-graph/SKILL.md · 27 lines

What it actually says

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").
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed ddaaec32cdc8
  2. 19d ago Changed 1fda6dea130d
  3. 2mo ago Changed · -12 lines 4faf95f2ff33
  4. 3mo ago First seen · 39 lines · 27 tokens per session scan A 8bcb1a72064c

Subscribe to this mod's changes

build-graph is a skill published in the GitHub repository tirth8205/code-review-graph (32,974 stars, last pushed 13d ago), licensed MIT. It adds 27 tokens to every session and 296 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

build-graph compared with skills from other repositories

build-graph next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
build-graphtirth8205/code-review-graphSkill33k13d agoMITA27Claude Code
go-testingGentleman-Programming/gentle-aiSkill9.7kyesterdayMITA26Claude Code, Codex
find-simplificationsQwenLM/qwen-codeSkill31ktodayApache-2.0C103Claude Code, Codex
aoe-sandbox-boundaryagent-of-empires/agent-of-empiresSkill5.2ktodayMITA85Claude Code, Codex
cross-model-reviewhashgraph-online/awesome-codex-pluginsSkill1.6k2d agoApache-2.0A56Claude Code, Codex
gitnexushashgraph-online/awesome-codex-pluginsSkill1.6k2d agoApache-2.0A58Codex
swarm-pr-reviewZaxbyHub/opencode-swarmSkill549todayMITA91Claude Code