Code Review
Use /code-review before merge or final handoff.
When to use
- Changes are complete and ready for review
- You need a second opinion before shipping
- You want to catch regressions, security issues, or scope drift
Steps
- Read the diff —
git difffor unstaged,git diff --stagedfor staged, orgit diff main...HEADfor branch diff - Check for blockers — bugs, logic errors, missing error handling, broken contracts
- Check for security — secrets in code, injection risks, auth gaps, unsafe defaults
- Check for regressions — does the change break existing tests or documented behaviour?
- Check for scope drift — does the change do more or less than requested?
- Run tests if they exist and haven't been run
Rules
- Only flag issues that genuinely matter — no style nits, no formatting opinions
- If the code works, tests pass, and scope is right, say so clearly
- Flag anything you'd reject in a PR review
Output
Verdict— PASS / NEEDS_CHANGES / BLOCKERBlocking— issues that must be fixed before mergeNon-blocking— suggestions or observationsEvidence reviewed— what was checked (diff, tests, build)
Source: damian87x/oh-my-copilot — distributed by TomeVault.