Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.
Install
npx skills add https://github.com/tirth8205/code-review-graph --skill review-deltaSKILL.md
Review Delta
Review only the changed code and its blast radius.
Steps
- Call
get_minimal_context_tool(task="review changes"). If it returnsstatus: not_ready, callbuild_or_update_graph_tool()and continue. - Call
detect_changes_tool(detail_level="minimal")for risk-scored changed functions, test gaps and affected flows. Changes come fromgit diffagainstHEAD~1; if the argument names a file, pass it inchanged_files. - Call
get_review_context_tool(detail_level="minimal")when you need source snippets for the changed areas andreview_guidance(untested functions, wide blast radius, inheritance changes). - For each untested high-risk function, confirm with
query_graph_tool(pattern="tests_for", target="<function>"). - 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.
Report
- Summary: one line
- Risk: low, medium or high, from the blast radius
- Issues: bugs, missing tests, style
- Blast radius: impacted files and functions
- Recommendations
Related skills
build-graphtirth82051.2KBuild or update the code review knowledge graph. Run this first to initialize, or let hooks keep it updated automatically.debug-issuetirth8205Systematically debug issues using graph-powered code navigationexplore-codebasetirth8205Navigate and understand codebase structure using the knowledge graphrefactor-safelytirth8205Plan and execute safe refactoring using dependency analysis