| name | code-review |
| description | Review code for quality, security, and maintainability. Use when reviewing pull requests, examining code changes, doing QA checks, architecture review, or CTO review. Also trigger for COMPLEX tasks affecting more than 5 files, API contract changes, or data migrations. |
| allowed-tools | Read, Grep, Glob |
| model | sonnet |
| user-invocable | true |
Code Review
QA Checklist
Code Quality
Naming Standards
| Type | Convention | Example |
|---|
| Files (components) | PascalCase | ComponentName.tsx |
| Files (utils) | camelCase | utilName.ts |
| Functions | camelCase | functionName() |
| Components | PascalCase | ComponentName |
| Constants | UPPER_SNAKE | CONSTANT_NAME |
JTBD Verification (user-facing features)
Feedback Format
- CRITICAL: Must fix before merge — blocks deployment
- SUGGESTION: Consider improving — improves maintainability
- NICE TO HAVE: Optional enhancement — polish
CTO Review (for COMPLEX tasks)
Apply when: change affects 5+ files, API contract changes, data migration, new architectural pattern.
See detailed template: references/CTO-REVIEW.md
Key areas:
- Scope — What changed and why
- Risk Assessment — What could break
- Alternatives — Were other approaches considered
- Recommendation — Approve / Request changes / Escalate
- Rollback Plan — How to revert if needed