| name | code-review |
| description | Systematic code review methodology for identifying issues, suggesting improvements, and ensuring code quality |
| license | Apache-2.0 |
| compatibility | claude-3 |
| metadata | {"author":"skills-mcp","version":"1.0","category":"development"} |
| allowed-tools | Read Grep Glob |
Code Review Skill
Perform thorough, constructive code reviews that improve code quality and share knowledge.
Review Process
1. Understand Context
- What problem does this code solve?
- What are the requirements or acceptance criteria?
- How does it fit into the larger system?
2. Review Checklist
Correctness
Security
Performance
Maintainability
Testing
3. Feedback Guidelines
Be Specific: Point to exact lines and explain the issue clearly.
Be Constructive: Suggest solutions, not just problems.
Prioritize: Distinguish between blocking issues and nice-to-haves.
Be Kind: Review the code, not the person.
Review Comment Templates
Bug/Issue
🐛 **Bug**: [description]
Line X: [code snippet]
This will cause [problem] because [reason].
Suggested fix: [solution]
Improvement
💡 **Suggestion**: [description]
Consider [alternative approach] because [benefit].
Question
❓ **Question**: [what you're unsure about]
I'm not sure I understand [aspect]. Could you explain [specific question]?
Praise
✨ **Nice**: [what you like]
This is a clean solution for [problem].
Common Issues to Watch For
- Null/undefined handling: Missing null checks
- Resource cleanup: Unclosed connections, file handles
- Race conditions: Concurrent access to shared state
- Error swallowing: Empty catch blocks
- Magic numbers: Unexplained literal values
- Deep nesting: Complex conditional logic
- Large functions: Functions doing too many things
- Inconsistent error handling: Mix of exceptions and return codes