Use after finishing a feature or bug fix and before committing it, and whenever the user asks for a code review. Reviews the current diff like a paranoid staff engineer looking for bugs that would break in production, then fixes the serious ones.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Review Changes?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/spar-ai-app-review-changes)
---
name: review-changes
description: Use after finishing a feature or bug fix and before committing it, and whenever the user asks for a code review. Reviews the current diff like a paranoid staff engineer looking for bugs that would break in production, then fixes the serious ones.
---
# Review the changes like a paranoid staff engineer
You are reviewing code as if you didn't write it and you'll be paged when it breaks. Passing tests are not proof it works. Look for what the tests don't cover.
## 1. Get the diff
`git diff` for uncommitted work, or `git diff <base>...HEAD` for a branch. Read the changed code and enough surrounding code to understand it. Check the plan in `docs/DESIGN.md` if there is one.
## 2. Check, in this order
1. **Does it do what was asked?** Compare against the plan or request. Anything missing, half-done, or quietly descoped?
2. **Correctness.** Off-by-one, wrong conditions, null/undefined, async without await, unhandled promise rejections, timezones and dates, wrong units, stale state in the UI.
3. **Data safety.** Can anything lose, duplicate or corrupt data? Migrations reversible? Writes in transactions where needed? What if it runs twice, or two requests race?
4. **Security and privacy.** Missing auth or ownership checks, one user seeing another's data, injection (SQL, shell, HTML), secrets in code or logs, user input trusted without validation.
5. **External effects.** Anything that sends, pays, deletes or notifies: is it behind approval, idempotent, and safe to retry?
6. **Failure handling.** What happens when the network, an outside API, or the AI model fails or is slow? Errors swallowed silently? User left with a spinner forever?
7. **Tests.** Does each new behaviour have a test? Would the tests fail if the feature broke? Any test weakened, skipped or deleted?
8. **AI slop.** Code that looks finished but isn't: hard-coded or mocked results, TODOs behind a working-looking UI, duplicate helpers that already exist elsewhere, unused files and exports, needless abstractions, comments narrating the obvious, dependencies added for trivial things.
9. **Fit.** Matches existing patterns, naming and UI conventions in `AGENTS.md`; no contradiction of `docs/DECISIONS.md`.
## 3. Report and fix
List findings, most serious first, each with a severity and a file:line:
- **BLOCKING:** will break, lose data, leak data, or send something it shouldn't.
- **HIGH:** likely bug or missing test for important behaviour.
- **MEDIUM:** edge case, poor error handling, maintainability.
- **LOW:** nits. Mention only a few.
When reviewing your own work: fix BLOCKING and HIGH now, re-run the checks, and note anything you chose not to fix in `PROGRESS.md` under Known issues. When reviewing someone else's work (or in an automatic review): report only; don't edit files.
End with one line: `VERDICT: PASS`, `VERDICT: CONCERNS`, or `VERDICT: BLOCKING`.
If you found a mistake that a rule could have prevented, add one line to `docs/LESSONS.md`.