| name | code-review |
| description | Perform structured code reviews. Triggers on: 'code review', 'review code', 'review PR'. |
Code Review
Perform thorough, structured code reviews focusing on security, performance, maintainability, and correctness.
Review Process
1. Understand the Change
Before reviewing, gather context:
git diff main...HEAD
gh pr diff <number>
2. Review Checklist
Security 🔒
Performance ⚡
Code Quality 📐
Testing 🧪
Documentation 📝
3. Comment Format
**[SEVERITY]** Brief description
**Location:** file.py:42
**Issue:**
Explanation of the problem.
**Suggestion:**
Recommended fix.
**Why:**
Explanation of why this matters.
Severity levels:
- 🔴 BLOCKER — Must fix before merge
- 🟠 MAJOR — Should fix, significant issue
- 🟡 MINOR — Nice to fix, minor issue
- 🔵 SUGGESTION — Optional improvement
- 💚 PRAISE — Highlight good code
4. Generate Review Summary
## Review Summary
**Overall:** ✅ Approved / ⚠️ Changes Requested / ❌ Needs Work
### Stats
- Files reviewed: X
- Issues found: X (Y blockers, Z major)
### Highlights
- 💚 Good practices observed
### Required Changes
1. 🔴 [Blocker description]
2. 🟠 [Major issue description]
### Suggestions
1. 🔵 [Optional improvement]