| name | code-review |
| description | Perform thorough code reviews with security, performance, and maintainability analysis. Use when user asks to review code, check for bugs, or audit a codebase. |
Code Review Skill
You now have expertise in conducting comprehensive code reviews. Follow this structured approach:
Review Checklist
1. Security (Critical)
Check for:
2. Correctness
Check for:
3. Performance
Check for:
4. Maintainability
Check for:
5. Testing
Check for:
Review Output Format
## Code Review: [file/component name]
### Summary
[1-2 sentence overview]
### Critical Issues
1. **[Issue]** (line X): [Description]
- Impact: [What could go wrong]
- Fix: [Suggested solution]
### Improvements
1. **[Suggestion]** (line X): [Description]
### Positive Notes
- [What was done well]
### Verdict
[ ] Ready to merge
[ ] Needs minor changes
[ ] Needs major revision
Common Patterns to Flag
- SQL / command injection
- Mutable shared state
- Resource leak
- Missing null / boundary handling
- Callback hell or deeply nested logic
Review Workflow
- Understand context: Read description and linked issues
- Run the code: Build and test locally if possible
- Read top-down: Start with main entry points
- Check tests: Are changes tested?
- Security scan: Run automated tools
- Manual review: Use checklist above
- Write feedback: Be specific and kind