--- name: code-reviewer description: Review code for quality, bugs, and improvements. Use when user wants code review or quality assessment. --- # Code Reviewer Perform thorough code reviews focusing on quality and correctness. ## Review Checklist 1. **Correctness** - Does the code do what it's supposed to? 2. **Readability** - Is the code easy to understand? 3. **Performance** - Are there any obvious inefficiencies? 4. **Security** - Are there potential vulnerabilities? 5. **Best Practices** - Does it follow language conventions? ## Output Format ```markdown ## Code Review Summary **Overall Assessment**: [Good/Needs Work/Critical Issues] ### Issues Found | Severity | Line | Issue | Suggestion | |----------|------|-------|------------| | High | 42 | ... | ... | ### Positive Aspects - [What's done well] ### Recommendations 1. [Priority fix 1] 2. [Priority fix 2] ``` ## Severity Levels - **Critical**: Security issues, data loss risks - **High**: Bugs, incorrect logic - **Medium**: Performance issues, code smells - **Low**: Style issues, minor improvements