This builds a SQLite knowledge graph of your codebase by parsing files and extracting relationships between functions, classes, and imports. You run it once to initialize, then hooks keep it updated automatically on edits and commits. It skips binaries and respects a .code-review-graphignore file, supports about a dozen languages from Python to Solidity. The graph lives in .code-review-graph/graph.db at your repo root. Honest take: the auto-update hooks mean you'll probably run this manually once at setup and maybe again after big refactors or branch switches, but otherwise forget it exists. The incremental updates are the real value here.

skills.sh installs
1.3K
GitHub stars
32.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add tirth8205/code-review-graph --skill build-graph --agent claude-code

Installs into .claude/skills of the current project.

Files

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. contended means another build of this repository is running; retry once it finishes.

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, before each commit and after a branch switch, merge or rebase, 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").

Sponsors

Details

Repository
github.com/tirth8205/code-review-graph
Categories
Frontend Development, DevOps & CI/CD, Git & Pull Requests, Code Review & Quality
First seen
Jun 3, 2026

More from tirth8205/code-review-graph

All 7
1quodsoler avatarue-physics-collisionquodsoler/unreal-engine-skillsUse when implementing collision detection, trace queries, physics simulation, or physical interactions in Unreal Engine. Triggers on: 'collision', 'trace', 'Lin1.3Kskills.sh installs
2hyva-themes avatarhyva-render-media-imagehyva-themes/hyva-ai-toolsGenerate responsive image code for Hyvä Theme templates using the Media view model. This skill should be used when the user wants to render images in a Hyvä tem1.3Kskills.sh installs
3joeseesun avatardefuddlejoeseesun/defuddle-skillExtract clean article content from web pages or local HTML files. Removes clutter (ads, sidebars, nav) and returns readable content with metadata.1.3Kskills.sh installs
4cap-go avatarcapacitor-accessibilitycap-go/capgo-skillsAccessibility guide for Capacitor apps covering screen readers, semantic HTML, focus management, and WCAG compliance. Use this skill when users need to make the1.3Kskills.sh installs
5kostja94 avatarhero-generatorkostja94/marketing-skillsWhen the user wants to design, optimize, or audit hero sections (above-the-fold main visual area). Also use when the user mentions "hero," "hero section," "hero1.3Kskills.sh installs
6neolabhq avatartest-promptneolabhq/context-engineering-kitUse when creating or editing any prompt (commands, hooks, skills, subagent instructions) to verify it produces desired behavior - applies RED-GREEN-REFACTOR cyc1.3Kskills.sh installs