build-graph
Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.
Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.
$ npx -y skills add tirth8205/code-review-graph --skill review-delta --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/review-deltaContext preview
The summary Claude sees to decide when to auto-load this skill.
Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.
name: review-delta description: Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection. argument-hint: "[file or function name]"
Review only the changed code and its blast radius.
1. Call `get_minimal_context_tool(task="review changes")`. If it returns `status: not_ready`, call `build_or_update_graph_tool()` and continue. 2. Call `detect_changes_tool(detail_level="minimal")` for risk-scored changed functions, test gaps and affected flows. Changes come from `git diff` against `HEAD~1`; if the argument names a file, pass it in `changed_files`. 3. Call `get_review_context_tool(detail_level="minimal")` when you need source snippets for the changed areas and `review_guidance` (untested functions, wide blast radius, inheritance changes). 4. For each untested high-risk function, confirm with `query_graph_tool(pattern="tests_for", target="<function>")`. 5. Use `detail_level="standard"` only for a high-risk item the minimal output leaves unclear. Do not load whole files unless a snippet is not enough.
Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.
Repo: tirth8205/code-review-graph
Build or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.
Navigate and understand codebase structure using the knowledge graph
Perform a structured code review using change detection and impact
Review a PR or branch diff using the knowledge graph for full structural context. Outputs a structured review with blast-radius analysis.