| name | code-review |
| description | Code review standards for quality, security, and maintainability. Use when reviewing code changes, analyzing PRs, auditing code quality, or when asked to review, critique, or assess code. Triggers on any code review, PR analysis, or code quality assessment task. |
Code Review Standards
Apply when reviewing code changes, PRs, or refactoring.
Quick Reference
Quality Checks:
- Single Responsibility: Does each function/class do one thing?
- Naming: Are names descriptive and intention-revealing?
- Complexity: Can this be simplified without losing clarity?
Security Checks:
- Input validation at system boundaries
- No hardcoded secrets or credentials
- OWASP Top 10 awareness (injection, XSS, auth issues)
Maintainability:
- Matches surrounding code style
- Comments explain WHY, not WHAT
- No premature abstraction
See reference.md for detailed checklist.