code-review-pro
onewave-ai/claude-skills
Deep code analysis for security, performance, and best practices across any codebase.
What is code-review-pro?
Code Review Pro performs comprehensive analysis of submitted code, identifying security vulnerabilities, performance bottlenecks, maintainability issues, and refactoring opportunities. Use it when you need a thorough code audit, security assessment, or performance optimization review.
- Scans for security vulnerabilities (SQL injection, XSS, authentication flaws, credential exposure)
- Analyzes performance issues (N+1 queries, inefficient algorithms, memory leaks, unnecessary re-renders)
- Evaluates code quality and maintainability (duplication, function length, naming, error handling)
- Checks compliance with language idioms, framework conventions, and SOLID principles
- Identifies bugs and edge cases (logic errors, race conditions, null handling, timezone issues)
- Provides actionable fixes with before/after code examples and severity prioritization
How to install code-review-pro
npx skills add https://github.com/onewave-ai/claude-skills --skill code-review-proHow to use code-review-pro
- 1.Submit the code you want reviewed (paste directly or reference a file)
- 2.Specify the language and framework if not obvious from context
- 3.Optionally mention specific concerns (security, performance, maintainability)
- 4.Review the prioritized report organized by severity (Critical → High → Medium → Low)
- 5.Apply the suggested fixes with provided code examples and explanations
Use cases
- Request a security audit of authentication or API endpoint code
- Analyze a React component for performance issues like unnecessary re-renders
- Review database queries for SQL injection vulnerabilities and N+1 problems
- Audit legacy code for refactoring opportunities and technical debt
- Validate new code against best practices before merging to production
- Backend developers building APIs and services
- Frontend developers optimizing React, Vue, or other UI frameworks
- Security engineers performing code audits
- DevOps and platform engineers reviewing infrastructure code
- Development teams establishing code quality standards
code-review-pro FAQ
It supports all major languages (JavaScript, Python, Java, Go, Rust, etc.) and frameworks (React, Vue, Django, Spring, etc.). Provide context about your tech stack for best results.
Very detailed. It checks for OWASP top vulnerabilities including SQL injection, XSS, authentication/authorization flaws, secrets exposure, unsafe deserialization, path traversal, CSRF, input validation gaps, and insecure cryptography.
It can review any size code snippet, from a single function to entire files. Larger context helps identify architectural issues, but focused reviews of specific functions are equally valuable.
Both. It identifies issues with severity levels and provides specific before/after code examples showing exactly how to fix each problem, plus refactoring opportunities for larger improvements.
Findings are grouped by severity: Critical (fix immediately), High, Medium, and Low priority. Security issues are always highest priority, followed by performance and maintainability concerns.
Full instructions (SKILL.md)
Source of truth, from onewave-ai/claude-skills.
name: code-review-pro description: Comprehensive code review covering security vulnerabilities, performance bottlenecks, best practices, and refactoring opportunities. Use when user requests code review, security audit, or performance analysis.
Code Review Pro
Deep code analysis covering security, performance, maintainability, and best practices.
When to Use This Skill
Activate when the user:
- Asks for a code review
- Wants security vulnerability scanning
- Needs performance analysis
- Asks to "review this code" or "audit this code"
- Mentions finding bugs or improvements
- Wants refactoring suggestions
- Requests best practice validation
Instructions
-
Security Analysis (Critical Priority)
- SQL injection vulnerabilities
- XSS (cross-site scripting) risks
- Authentication/authorization issues
- Secrets or credentials in code
- Unsafe deserialization
- Path traversal vulnerabilities
- CSRF protection
- Input validation gaps
- Insecure cryptography
- Dependency vulnerabilities
-
Performance Analysis
- N+1 query problems
- Inefficient algorithms (check Big O complexity)
- Memory leaks
- Unnecessary re-renders (React/Vue)
- Missing indexes (database queries)
- Blocking operations
- Resource cleanup (file handles, connections)
- Caching opportunities
- Excessive network calls
- Large bundle sizes
-
Code Quality & Maintainability
- Code duplication (DRY violations)
- Function/method length (should be <50 lines)
- Cyclomatic complexity
- Unclear naming
- Missing error handling
- Inconsistent style
- Missing documentation
- Hard-coded values that should be constants
- God classes/functions
- Tight coupling
-
Best Practices
- Language-specific idioms
- Framework conventions
- SOLID principles
- Design patterns usage
- Testing approach
- Logging and monitoring
- Accessibility (for UI code)
- Type safety
- Null/undefined handling
-
Bugs and Edge Cases
- Logic errors
- Off-by-one errors
- Race conditions
- Null pointer exceptions
- Unhandled edge cases
- Timezone issues
- Encoding problems
- Floating point precision
-
Provide Actionable Fixes
- Show specific code changes
- Explain why change is needed
- Include before/after examples
- Prioritize by severity
Output Format
# Code Review Report
## Critical Issues (Fix Immediately)
### 1. SQL Injection Vulnerability (line X)
**Severity**: Critical
**Issue**: User input directly concatenated into SQL query
**Impact**: Database compromise, data theft
**Current Code:**
```javascript
const query = `SELECT * FROM users WHERE email = '${userEmail}'`;
Fixed Code:
const query = 'SELECT * FROM users WHERE email = ?';
db.query(query, [userEmail]);
Explanation: Always use parameterized queries to prevent SQL injection.
High Priority Issues
2. Performance: N+1 Query Problem (line Y)
[Details...]
Medium Priority Issues
3. Code Quality: Function Too Long (line Z)
[Details...]
Low Priority / Nice to Have
4. Consider Using Const Instead of Let
[Details...]
Summary
- Total Issues: 12
- Critical: 2
- High: 4
- Medium: 4
- Low: 2
Quick Wins
Changes with high impact and low effort:
- [Fix 1]
- [Fix 2]
Strengths
- Good error handling in X
- Clear naming conventions
- Well-structured modules
Refactoring Opportunities
- Extract Method: Lines X-Y could be extracted into
calculateDiscount() - Remove Duplication: [specific code blocks]
Resources
## Examples
**User**: "Review this authentication code"
**Response**: Analyze auth logic → Identify security issues (weak password hashing, no rate limiting) → Check token handling → Note missing CSRF protection → Provide specific fixes with code examples → Prioritize by severity
**User**: "Can you find performance issues in this React component?"
**Response**: Analyze component → Identify unnecessary re-renders → Find missing useMemo/useCallback → Note large state objects → Check for expensive operations in render → Provide optimized version with explanations
**User**: "Review this API endpoint"
**Response**: Check input validation → Analyze error handling → Test for SQL injection → Review authentication → Check rate limiting → Examine response structure → Suggest improvements with code samples
## Best Practices
- Always prioritize security issues first
- Provide specific line numbers for issues
- Include before/after code examples
- Explain *why* something is a problem
- Consider the language/framework context
- Don't just criticize—acknowledge good code too
- Suggest gradual improvements for large refactors
- Link to documentation for recommendations
- Consider project constraints (legacy code, deadlines)
- Balance perfectionism with pragmatism
- Focus on impactful changes
- Group similar issues together
- Make recommendations actionable
Related skills
More from onewave-ai/claude-skills and the wider catalog.
landing-page-copywriter
Write high-converting landing page copy using PAS, AIDA, and StoryBrand frameworks.
csv-excel-merger
Merge multiple CSV/Excel files with intelligent column matching, data deduplication, and conflict resolution. Handles different schemas, formats, and combines data sources. Use when users need to merge spreadsheets, combine data exports, or consolidate multiple files into one.
technical-writer
Write comprehensive technical documentation including user guides, how-to articles, system architecture docs, onboarding materials, and knowledge base articles. Creates clear, structured documentation for technical and non-technical audiences. Use when users need technical writing, documentation, tutorials, or knowledge base content.
screenshot-to-code
Convert UI screenshots into working HTML/CSS/React/Vue code. Detects design patterns, components, and generates responsive layouts. Use this when users provide screenshots of websites, apps, or UI designs and want code implementation.
social-media-content-repurposer
Convert content between platforms (blog to Twitter thread, article to LinkedIn post, etc.). Optimize for each platform's format, tone, and best practices. Use when user wants to adapt content for different social media platforms.