Build Graph

tirth8205/code-review-graph/skills/build-graph

by tirth82056b12d11625cbec3b6773e076cb3d136464fa90e5No licenseListed Oct 9, 2026Updated Oct 9, 2026

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

Instructions onlySoftware Development
AI-generated overview

Builds or incrementally updates a repository's code review knowledge graph via graph tools.

What it does
This skill instructs an agent to check graph statistics and then build or update the code review knowledge graph for a repository, either as a full rebuild or an incremental update. It reports the tool response status and summary, and notes that the graph database lives at .code-review-graph/graph.db in the repository root. It also documents that binary files, dependency and build directories, and .code-review-graphignore patterns are skipped.
When to use it
Use it for first-time setup of a repository, after a branch switch or large refactor, or when the graph appears stale. Manual runs are rarely needed because installed hooks update the graph after each edit and before each commit.
Requirements
Requires the graph tools (list_graph_stats_tool, build_or_update_graph_tool, and get_docs_section_tool for language documentation) and a repository with a .code-review-graph directory. Ships no scripts; instructions only.

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

Source and attribution

Source:tirth8205/code-review-graphinskills/build-graphat commit6b12d11

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal