Review Delta

tirth8205/code-review-graph/skills/review-delta

作者 tirth82056b12d11625cbec3b6773e076cb3d136464fa90e5无许可证收录于 2026年10月9日更新于 2026年10月9日

Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.

AI 生成的概览

仅审查上次提交以来的代码改动,通过影响分析找出波及范围与测试缺口。

功能
该技能引导智能体进行节省令牌的增量代码审查。它调用图谱与变更检测工具,获取带风险评分的改动函数、测试缺口和受影响的流程,并在需要时拉取最小化的源码片段与审查指引。最终产出一份简短报告,包含摘要、低/中/高风险评级、问题、受影响的文件与函数范围以及建议。
适用场景
适用于审查近期代码改动,且希望只关注改动内容而非整个代码库的场景。也适合需要评估对依赖代码的影响和缺失测试的拉取请求式审查。
运行要求
需要指令中提到的图谱与变更检测工具(最小上下文、图谱构建/更新、变更检测、审查上下文、图谱查询),并能通过 git diff 对比 HEAD~1 访问 git 历史。不附带脚本,仅为指令。

Review Delta

Review only the changed code and its blast radius.

Steps

  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.

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

来源与署名

来源:tirth8205/code-review-graph位于skills/review-delta提交6b12d11

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架