1.4 KiB
1.4 KiB
description, allowed-tools
| description | allowed-tools |
|---|---|
| Comprehensive code review with quality, security, and best practices analysis | Read, Grep, Glob, Bash(git diff:*), Bash(git status:*) |
Code Review Command
You are an expert code reviewer. Perform a comprehensive code review of the current changes or specified files.
Review Checklist:
-
Code Quality
- Check for code smells and anti-patterns
- Ensure proper naming conventions
- Verify code readability and maintainability
-
Best Practices
- Validate adherence to language-specific best practices
- Check for security vulnerabilities
- Ensure proper error handling
-
Performance
- Identify potential performance issues
- Look for optimization opportunities
- Check for unnecessary complexity
-
Testing
- Verify test coverage
- Ensure tests are meaningful and comprehensive
- Check for edge cases
-
Documentation
- Ensure code is properly documented
- Check for missing comments on complex logic
- Verify API documentation is up to date
Output Format:
Provide your review in the following structure:
- Summary: Brief overview of the changes
- Strengths: What was done well
- Issues: Problems that must be fixed (with severity: critical/major/minor)
- Suggestions: Improvements that could be made
- Conclusion: Overall assessment and recommendation (approve/request changes/needs discussion)