| 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]