code-review
Analyze PR diffs and generate review comments from code quality, security, and performance perspectives. Use for code reviews, quality checks, and security analysis.
When & Why to Use This Skill
This Claude skill automates the code review process by analyzing pull request (PR) diffs to ensure high engineering standards. It provides comprehensive feedback on code quality, security vulnerabilities, and performance bottlenecks, helping development teams accelerate their shipping cycle while maintaining a clean and secure codebase.
Use Cases
- Automated Pull Request Auditing: Streamline the peer review workflow by automatically scanning code changes for logic errors, style inconsistencies, and maintainability issues.
- Security Vulnerability Detection: Proactively identify potential security risks such as SQL injection, improper authentication, or the exposure of sensitive data within the code diff.
- Performance Optimization: Detect inefficient code patterns, including N+1 database queries and potential memory leaks, to ensure application scalability and responsiveness.
- Technical Debt Management: Enforce the DRY (Don't Repeat Yourself) principle and coding best practices to reduce long-term technical debt and improve code readability.
| name | code-review |
|---|---|
| description | Analyze PR diffs and generate review comments from code quality, security, and performance perspectives. Use for code reviews, quality checks, and security analysis. |
Code Review Skill
Overview
Analyze PR changes and conduct reviews from the following perspectives:
- Code Quality (readability, maintainability, DRY principle)
- Security (injection, authentication, sensitive data)
- Performance (N+1 queries, memory leaks)
- Testing (coverage, edge cases)
Input
- PR diff (git diff format)
- Target file paths for review
Output
- List of review comments (filename, line number, issue description, severity)
Usage Examples
"Please review this PR" or "Check the code quality"