@tirth8205/build-graph

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

View in AI SkillSafe app
Scanned · no findings
0 downloads
0 stars
0 demos
SKILL.md
namebuild-graph
descriptionBuild 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 persistent code knowledge graph for this repository.

Steps

  1. Check graph status by calling the list_graph_stats_tool MCP 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.
  2. Build the graph by calling the build_or_update_graph_tool MCP tool:

    • For first-time setup: build_or_update_graph_tool(full_rebuild=True)
    • For updates: build_or_update_graph_tool() (incremental by default)
  3. Verify by calling list_graph_stats_tool again 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-graphignore are skipped
  • Supported languages: Python, TypeScript/JavaScript, Vue, Go, Rust, Java, Scala, C#, Ruby, Kotlin, Swift, PHP, Solidity, C/C++

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@tirth8205/build-graph/verified)](https://skillsafe.ai/skill/@tirth8205/build-graph/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@tirth8205/build-graph/installs)](https://skillsafe.ai/skill/@tirth8205/build-graph/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@tirth8205/build-graph/scan)](https://skillsafe.ai/skill/@tirth8205/build-graph/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@tirth8205/build-graph/eval)](https://skillsafe.ai/skill/@tirth8205/build-graph/)