mcpField
B
build-graph

build-graph

github.com/tirth8205Testing & quality32.5k1.3k installsUpdated 2w ago
Repository

About build-graph

A skill for building or incrementally updating a repository’s code knowledge graph. It guides agents through checking graph status, selecting a rebuild mode, and reporting the result.

Key features

  1. 01Check graph build status
  2. 02Full or incremental graph updates
  3. 03Report build status and summary
  4. 04Skip binary and ignored paths

Use cases

  1. 01Build a graph during repository setup
  2. 02Refresh after a branch switch or refactor
  3. 03Update a graph that appears stale

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/tirth8205/code-review-graph --skill build-graph

After installing, type/build-graphin Claude Code to confirm it loaded.

Details

From the project README

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

Comments

Markdown supported