build-graph
Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.
How do I install this agent skill?
npx skills add https://github.com/tirth8205/code-review-graph --skill build-graphIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is designed to initialize and maintain a local code knowledge graph using integrated tools. It performs routine repository analysis without external network access, sensitive data exposure, or obfuscated code.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- ZeroLeakspass
Score: 93/100 · 2 sections analyzed
What does this agent skill do?
Build Graph
Build or incrementally update the persistent code knowledge graph for this repository.
Steps
-
Check graph status by calling the
list_graph_stats_toolMCP tool.- If the graph has never been built (last_updated is null), proceed with a full build.
- If the graph exists, proceed with an incremental update.
-
Build the graph by calling the
build_or_update_graph_toolMCP tool:- For first-time setup:
build_or_update_graph_tool(full_rebuild=True) - For updates:
build_or_update_graph_tool()(incremental by default)
- For first-time setup:
-
Verify by calling
list_graph_stats_toolagain and report the results:- Number of files parsed
- Number of nodes and edges created
- Languages detected
- Any errors encountered
When to Use
- First time setting up the graph for a repository
- After major refactoring or branch switches
- If the graph seems stale or out of sync
- The graph auto-updates via hooks on edit/commit, so manual builds are rarely needed
Notes
- The graph is stored as a SQLite database (
.code-review-graph/graph.db) in the repo root - Binary files, generated files, and patterns in
.code-review-graphignoreare skipped - Supported languages: Python, TypeScript/JavaScript, Vue, Go, Rust, Java, Scala, C#, Ruby, Kotlin, Swift, PHP, Solidity, C/C++
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/tirth8205/code-review-graph/build-graph">View build-graph on skillZs</a>