name: code-review description: Use when reviewing code for security, performance, or quality issues. Provides checklists and patterns for thorough code review. version: 1.0.0
Code Review Skill
Comprehensive knowledge for reviewing code. Use the checklists below and reference detailed guides for specific domains.
Review Process
- Understand context - What does this code do? What problem does it solve?
- Check correctness - Does it work? Are there logic errors?
- Check security - Any vulnerabilities? See security checklist
- Check performance - Any bottlenecks? See performance patterns
- Check maintainability - Is it readable? Testable? Well-organized?
Quick Security Checklist
- Input validation on all user data
- No SQL/NoSQL injection vectors
- No XSS vulnerabilities (output encoding)
- Authentication checked on protected routes
- Authorization verified for data access
- No hardcoded secrets or credentials
- Sensitive data not logged
- CSRF protection where needed
Quick Performance Checklist
- No N+1 queries
- Expensive operations are cached or memoized
- No unnecessary re-renders (React)
- Database queries use indexes
- No memory leaks (cleanup in effects)
- Large lists are virtualized or paginated
Quick Quality Checklist
- Clear naming (functions, variables, files)
- Single responsibility principle
- Error handling covers failure modes
- No dead code or debug statements
- Tests cover critical paths
- Types are accurate (no
anyabuse)
Severity Levels
| Level | Criteria | Action |
|---|---|---|
| CRITICAL | Security vulnerability, data loss risk, crash | Must fix before merge |
| HIGH | Bug, significant performance issue, bad UX | Should fix before merge |
| MEDIUM | Code quality, maintainability concern | Fix soon |
| LOW | Style, minor improvement | Optional |
Output Format
## Code Review: [file/feature]
### Summary
One paragraph overall assessment.
### Critical Issues
- **[SEVERITY]** file:line - Description
- Why it's a problem
- Suggested fix
### Recommendations
- Improvement suggestions
### What's Good
- Positive observations
Detailed References
- Security Checklist - Full security review guide
- Performance Patterns - Performance anti-patterns and fixes
chat Comments (0)
Sign in to join the discussion and leave a comment.
Skill Details
GitHub Stars
5
GitHub Forks
1
Created
Jan 2026
Last Updated
il y a 5 mois
tools
tools automation tools
Related Skills
Build your own?
Join 12,000+ developers contributing to the Claude ecosystem.
No comments yet. Be the first to share your thoughts!