| name | code-review |
| description | Structured code review with security, performance, and quality checks |
Code Review
Review code changes against a structured checklist covering security, performance, architecture, and correctness.
When to use
- "Review this PR"
- "Check my code"
- "Code review for #123"
- Before merging any PR
How to execute
Step 1: Load the changes
gh pr diff <PR_NUMBER>
git diff main...HEAD
Step 2: Review checklist
Go through each category:
Security
Correctness
Performance
Architecture
Tests
Step 3: Report findings
Format: severity + file + line + description
[CRITICAL] src/auth.py:42 — SQL query built with string concatenation
[WARNING] src/api.py:108 — Missing error handling for network timeout
[SUGGESTION] src/utils.py:15 — Could use list comprehension for clarity
Step 4: Summary
Provide:
- Overall assessment (approve / request changes / needs discussion)
- Critical issues (must fix before merge)
- Suggestions (nice to have)
Parameters
| Parameter | Description | Default |
|---|
| PR number | GitHub PR to review | current branch diff |
--focus security | Focus on security checks only | all checks |
Related skills
git-workflow — merge after review passes