跳到正文
Skillpedia
通用编程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 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我刚改了几个文件。能只审查这些修改以及它们所影响的部分吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体检查图谱是否就绪,将当前修改与上一次提交进行比较,检查风险和测试缺口,然后写出一份简短报告。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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
常见问题

它与什么比较?

它将你工作区中的修改与上一次提交比较,即 HEAD 减一。

报告包括什么?

包括摘要、风险等级、问题、影响范围和建议。

需要指定文件名吗?

不需要。如果你指定了文件名,技能会将审查范围限制在该文件内。

详情

作者的原始描述

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

repo: tirth8205/code-review-graph

热度

GitHub 星标
33k
排名
#9143
许可证
MIT
更新时间
2026/10/29

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能