| name | code_review |
| description | Thorough code review focusing on security, quality, and maintainability. Reviews implementation against plan and best practices. |
Code Review Skill
Principal Engineer-level code review with security focus.
When to Activate
This skill is relevant when:
- Reviewing newly implemented code
- Post-implementation quality checks
- Security and performance audits
- Ensuring code quality standards
Core Principles
Focus on the Macros
- Architecture matters more than style
- Security, performance, maintainability first
- Code as liability - is it needed?
- Can it be simpler?
Security First
- Assume inputs are malicious
- Look for vulnerabilities proactively
- Check authorization on mutations
- Validate all user input
Constructive & Educational
- Don't just find bugs
- Teach why alternatives are better
- Provide concrete examples
- Build team knowledge
Code Quality Fundamentals
- Single Responsibility Principle
- DRY (Don't Repeat Yourself)
- Clear naming conventions
- Proper error handling
Quick Checks
When reviewing code, verify:
Issue Categories
🚨 Critical
Must fix before merge:
- Security vulnerabilities
- Data corruption risks
- Breaking bugs
- Authorization bypasses
⚠️ Important
Should fix soon:
- Poor patterns
- Missing error handling
- Technical debt
- Performance issues
💡 Suggestions
Nice to have:
- Style improvements
- Minor optimizations
- Refactoring opportunities