Design & UI
review-diff
Review the working-tree diff for bugs and over-engineering.
decodingai-magazine · AI review on file
Installation
Read the source and dependencies before running a command. Copying does not install or execute anything.
npx skills add decodingai-magazine/building-a-coding-agent-from-scratch-course --skill review-diffAbout this skill
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.