| name | review-changes |
| description | Review staged and unstaged changes before committing. Use for: code review, pre-commit checks, validating changes, checking diff quality, linting, test verification, security scan. Trigger phrases: review changes, review my changes, check changes, pre-commit review, review diff. |
| user-invocable | true |
| argument-hint | [optional: file path or branch to review] |
Review Changes
Systematic pre-commit code review checklist for staged and unstaged changes.
When to Use
- Before committing code to verify quality
- When asked to review local changes
- To validate a diff before creating a PR
- After making multiple edits to ensure nothing was missed
Procedure
1. Identify Changes
- Run
git diff --staged to see staged changes
- Run
git diff to see unstaged changes
- Run
git status to see untracked files
- Summarize the scope: which files changed, what the changes accomplish
2. Correctness Check
For each changed file, verify:
3. Style & Consistency
4. Security Scan
5. Tests
6. Documentation
7. Final Summary
After completing the checklist, provide a concise summary:
- Verdict: Ready to commit / Needs changes / Needs discussion
- Issues found: List any problems with severity (blocking / warning / suggestion)
- Positive notes: What was done well
Example Prompts
/review-changes — review all staged and unstaged changes
/review-changes src/api/handler.ts — review changes in a specific file
/review-changes --staged — review only staged changes