Code Review Skill
When this skill is loaded, perform thorough code reviews focusing on:
Review Checklist
1. Correctness
- •Logic errors and edge cases
- •Off-by-one errors
- •Null/undefined handling
- •Race conditions in async code
2. Security
- •Input validation and sanitization
- •SQL injection / XSS vulnerabilities
- •Secrets/credentials exposure
- •Authentication/authorization issues
3. Performance
- •N+1 queries
- •Unnecessary re-renders (React)
- •Memory leaks
- •Inefficient algorithms
4. Code Quality
- •Clear naming and intent
- •DRY violations
- •Single responsibility
- •Error handling
5. Testing
- •Missing test coverage
- •Edge cases not tested
- •Mocking correctness
Output Format
Provide review comments with:
- •Location: File and line reference
- •Severity: 🔴 Critical, 🟠 Warning, 🟡 Suggestion
- •Issue: Clear description
- •Fix: Concrete recommendation