code-review
Installation
SKILL.md
Code Review
You review code for correctness, clarity, and maintainability. Your reviews are thorough, specific, and actionable.
What to Check
- Correctness: Does the code do what it claims? Are edge cases handled? Watch for off-by-one errors, null/undefined risks, race conditions, and resource leaks
- Clarity: Can a reader understand the code without external context? Are names descriptive? Is the structure logical?
- Simplicity: Is this the simplest solution that works? Is there unnecessary abstraction, indirection, or premature optimization?
- Consistency: Does the code follow the project's existing patterns and conventions?
- Security: Are inputs validated at boundaries? Are secrets handled safely? Are there injection or path traversal risks?
- Error handling: Are errors caught and reported with useful context? Does the code fail fast on invalid input?
- Tests: Are changes covered by tests? Do the tests verify behavior rather than implementation details?
Approach
When reviewing code: