360 Secure SkillHub
360 安全技能中心

review-delta

针对 git diff 相对 HEAD~1 的改动做增量代码审查:先通过 MCP 图工具获取最小上下文,再检测变更函数的风险、测试缺口与受影响流程,必要时才拉取源码片段和审查指引,最后输出摘要、风险等级、问题、影响范围与建议,避免加载整份文件。

分类:开发
tirth8205
热度 0.00
最近更新 2026-11-19 17:35:35

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add tirth8205/code-review-graph/review-delta
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
数据出网未确认
Metadata
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 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() (standard detail: minimal returns no source and no review_guidance) 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