code-review
Reviews code for quality issues, potential bugs, security vulnerabilities, and adherence to best practices. Provides actionable feedback with specific line references.
When & Why to Use This Skill
This Claude skill automates the code review process by analyzing source code for quality issues, security vulnerabilities, and performance bottlenecks. It provides developers with actionable, line-specific feedback to ensure adherence to best practices, improve maintainability, and prevent bugs before deployment.
Use Cases
- Automated Pull Request Auditing: Streamline the PR process by automatically identifying logic errors and style violations before human review.
- Security Vulnerability Scanning: Detect common security threats such as SQL injection, XSS, and improper resource handling in new code submissions.
- Performance Optimization: Identify inefficient code patterns like N+1 queries or unnecessary loops to improve application responsiveness.
- Standardization and Compliance: Ensure all team members follow project-specific conventions and established architectural patterns.
| name | code-review |
|---|---|
| description | Reviews code for quality issues, potential bugs, security vulnerabilities, and adherence to best practices. Provides actionable feedback with specific line references. |
| template | code-review |
code-review
Reviews code for quality issues, potential bugs, security vulnerabilities, and adherence to best practices. Provides actionable feedback with specific line references.
Rules
- Always cite specific line numbers when referencing code issues
- Categorize issues by severity: critical, warning, suggestion
- Check for common security vulnerabilities (SQL injection, XSS, etc.)
- Verify error handling is comprehensive and appropriate
- Ensure code follows the project's established patterns and conventions
- Look for performance issues like N+1 queries, unnecessary loops
- Check for proper resource cleanup (file handles, connections)
- Verify tests cover the critical paths of new code