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 從公開儲存庫中收錄這些內容。

檢舉或申請下架