通用编程33k · #9143
review-delta
它能做什么
这个技能指导智能体使用 code-review-graph 工具,以节省令牌的方式审查最近的修改。适合想快速审查刚完成修改的开发者。
适用场景
- ✓当你刚做完一组编辑,想在提交前快速审查时。
- ✓当你想查看一个小修改的影响范围时。
- ✓当你想检查你的编辑是否影响了未经测试的函数时。
技能链接
https://github.com/tirth8205/code-review-graph/blob/staging/skills/review-delta/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/tirth8205/code-review-graph/blob/staging/skills/review-delta/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add tirth8205/code-review-graph --skill review-delta
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/tirth8205/code-review-graph/staging/skills/review-delta/SKILL.md -o SKILL.md
可以这样问 AI
“我刚改了几个文件。能只审查这些修改以及它们所影响的部分吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体检查图谱是否就绪,将当前修改与上一次提交进行比较,检查风险和测试缺口,然后写出一份简短报告。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
常见问题
它与什么比较?
它将你工作区中的修改与上一次提交比较,即 HEAD 减一。
报告包括什么?
包括摘要、风险等级、问题、影响范围和建议。
需要指定文件名吗?
不需要。如果你指定了文件名,技能会将审查范围限制在该文件内。
详情
作者的原始描述
Review only changes since last commit using impact analysis. Token-efficient delta review with automatic blast-radius detection.
热度
- GitHub 星标
- 33k
- 排名
- #9143
- 许可证
- MIT
- 更新时间
- 2026/10/29
评论
- …