跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
设计与 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.

  1. Read the change with git diff (and git diff --cached for staged work). Ground every comment in a specific file:line you actually read.
  2. 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.
  3. 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.