| name | code-review |
| description | Review code against story acceptance criteria and quality standards. Use when the user says 'review this code', 'review my PR', or 'check this implementation'. |
Code Review Workflow
Goal
Evaluate code for correctness (meets ACs), quality, security, and maintainability. Produce a structured review with actionable feedback.
Activation
Ask:
- What is being reviewed? (PR, branch, file, or paste)
- Which story / ACs does it implement? (load story if given ID)
- Review depth: Quick / Standard / Deep-dive
Review Dimensions
Evaluate across 5 dimensions:
1. Correctness — Does it meet the ACs?
For each AC in the story:
Blockers: Any unmet AC is a blocker — cannot ship.
2. Tests
Blockers: Missing AC tests, or tests that always pass regardless of code.
3. Security (OWASP Top 10 scan)
Any finding here is a blocker.
4. Code Quality
5. Architecture Conformance
Review Output Format
## Code Review — {story_id} / {branch_name}
**Overall Status:** ✅ Approved | ⚠️ Approved with Comments | 🔴 Needs Work | 🚫 Blocked
### Blockers (must fix before merge)
- [BLOCKER] {specific issue + location + how to fix}
### Required Changes
- [REQUIRED] {issue + location + suggested fix}
### Suggestions (optional but recommended)
- [SUGGEST] {improvement + rationale}
### Positives
- {things done well — always include at least 2}
### AC Coverage
| AC | Implemented | Test Exists | Notes |
|----|-------------|-------------|-------|
| AC-1 | ✅ | ✅ | |
| AC-2 | ✅ | ⚠️ | Partial coverage |
### Security Scan
| Check | Status |
|-------|--------|
| Input validation | ✅ |
| No hardcoded secrets | ✅ |
| Auth checks | ✅ |
Completion
- If Approved: Ask if they want to create a PR (
github-create-pr) or update JIRA
- If Needs Work: List top 3 priorities to fix, then offer to re-review
- If Blocked: Clearly name the blocker and what must change — do not soften