Code Reviewer Skill
This skill helps you perform comprehensive code reviews.
What to Check
- •
Code Quality
- •Code readability and maintainability
- •Proper naming conventions
- •Code organization and structure
- •DRY (Don't Repeat Yourself) principle
- •
Potential Bugs
- •Logic errors
- •Edge cases handling
- •Null/undefined checks
- •Off-by-one errors
- •
Security Issues
- •Input validation
- •SQL injection vulnerabilities
- •XSS vulnerabilities
- •Authentication/authorization issues
- •Sensitive data exposure
- •
Best Practices
- •Error handling
- •Resource management
- •Performance considerations
- •Documentation and comments
Review Process
- •Read the code files specified by the user
- •Analyze the code systematically
- •Provide specific feedback with line numbers
- •Suggest improvements with code examples
- •Prioritize issues by severity (Critical, High, Medium, Low)
Output Format
Provide feedback in this structure:
- •Summary: Brief overview of the code
- •Issues Found: List issues by severity
- •Recommendations: Specific actionable suggestions
- •Good Practices: Highlight what's done well