| name | code-review |
| description | Systematic code review process with focus on quality, security, and best practices |
| allowed-tools | ["read_file","grep","glob","bash"] |
| triggers | ["review","code quality","pull request"] |
Code Review Skill
When to Use
- User asks for code review or feedback
- Reviewing a pull request or diff
- Analyzing code quality or security
Review Checklist
1. Functionality
2. Code Quality
3. Security
4. Performance
5. Testing
Output Format
For each finding, provide:
- Location: File and line number
- Severity: Critical / High / Medium / Low
- Issue: Clear description of the problem
- Suggestion: How to fix it
- Example: Code snippet showing the fix (if applicable)
Example Review Comment
Location: src/api/users.go:42
Severity: High
Issue: SQL query built using string concatenation
Suggestion: Use parameterized queries to prevent SQL injection
Example:
query := "SELECT * FROM users WHERE id = " + userID
query := "SELECT * FROM users WHERE id = ?"
db.Query(query, userID)