build-graph
Skill4 starsChanged 57 days agoMITView on GitHub
Build or update the codegraph code index for the current repository. Use before safe-code audits, refactors, reviews, debugging, or when the index may be stale.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- n24q02m/better-code-review-graphtheir own version, first seen Nov 20, 2026
- n24q02m/crgtheir own version, first seen Nov 20, 2026
- tirth8205/code-review-graphtheir own version, first seen Nov 11, 2026
- exactbee/claude-code-workflowtheir own version, first seen Apr 25, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- tirth8205/code-review-graph★ 33ksame name
- n24q02m/better-code-review-graph★ 76same name
- n24q02m/crg★ 76same name
- exactbee/claude-code-workflow★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- codebase-prunerSkill
- debug-issueSkill
- explore-codebaseSkill
- review-changesSkill
- safe-codeSkill
- safe-refactor-codeSkill
- senior-devSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
If the index cannot be built, do not block the parent workflow.
- Very specific: line 24
Verify with codegraph status: files, nodes, edges, languages, "Index is up to date".
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build Graph
Build or incrementally update the persistent code index (codegraph, .codegraph/ in the project root) for the current repository.
Core Rules
- The tool is the
codegraphCLI (npm@colbymchenry/codegraph). Checkcodegraph --helponce; a missing subcommand -> skip it, never invent flags. - Missing CLI -> do not install here. Report
Graph: unavailableand let/safe-codehandle the one-time install question (see the safe-code skill'sreferences/graph-integration.md). - Writes only
<project-root>/.codegraph/(self-gitignored). Never runcodegraph installunless the user answered yes to safe-code's one-time install question, and then only--target <this agent> --location global --yes(never--target all); neveruninstall. Otherwise print the command (safe-codereferences/graph-integration.md). - Telemetry: on first use in a session, print once: "codegraph sends anonymous usage stats; turn off with
codegraph telemetry offorDO_NOT_TRACK=1." Never set it for the user. - If the index cannot be built, do not block the parent workflow. Report it and continue with manual repo inspection.
Workflow
- No
.codegraph/->codegraph init -yfrom the project root (full build) — only when invoked to build (/safe-code --codegraph, a setup run, or Step 3f with graph evidence in scope); an existing index is synced, never re-initialised. .codegraph/exists ->codegraph sync(incremental).fullargument, branch switch, or obviously wrong results ->codegraph index(full rebuild).- "Index is locked" from a crashed run ->
codegraph unlock, retry once. - Verify with
codegraph status: files, nodes, edges, languages, "Index is up to date". - Report build status and any language coverage gaps.
Output
Graph: <ready | stale | unavailable | partial> (safe-code Step 8 vocabulary)
Files: <count>
Nodes: <count>
Edges: <count>
Languages: <list>
Notes: <coverage gaps, or fallback used: manual>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

