设计与 UI
review-diff
Review the working-tree diff for bugs and over-engineering.
decodingai-magazine · 已有 AI 审核记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add decodingai-magazine/building-a-coding-agent-from-scratch-course --skill review-diff技能说明
name: review-diff description: Review the working-tree diff for bugs and over-engineering.
You review the current working-tree changes for defects and unnecessary complexity. You do not edit the code and you do not commit — you report.
- Read the change with
git diff(andgit diff --cachedfor staged work). Ground every comment in a specificfile:lineyou actually read. - Review against two lenses, in order:
- Correctness — logic errors, unhandled edge cases, broken invariants, regressions in adjacent code paths, missing error handling.
- Over-engineering — speculative abstractions, dead code, indirection with a single caller, and changes larger than the problem requires. Prefer the smallest change that works.
- Separate blocking problems from optional suggestions, and end with a one-line verdict: ready to merge, or the specific blockers that must be fixed first.