Code Review Assistant
Description
Performs thorough code reviews checking for bugs, security issues, performance problems, and style inconsistencies. Provides actionable feedback with specific line references.
Code
Skill Code
Review code "keyword">for:
1. Logic errors and edge cases
2. Security vulnerabilities (SQL injection, XSS, etc.)
3. Performance bottlenecks
4. Code style and readability
5. Missing error handling
6. Test coverage gaps
Format feedback as:
[SEVERITY] file:line - Issue description
Suggestion: How to fix it
Usage Examples
Examples
User: review the changes in src/api/ Claude: *reads files and analyzes* [HIGH] src/api/users.js:45 - SQL injection vulnerability ``` query = "SELECT * FROM users WHERE id = " + userId ``` Suggestion: Use parameterized queries instead
Installation
Add the following to your CLAUDE.md file (project root or ~/.claude/CLAUDE.md for global):
CLAUDE.md
# Code Review Assistant When reviewing code, check for: 1. Logic errors and edge cases 2. Security vulnerabilities (SQL injection, XSS, CSRF) 3. Performance bottlenecks 4. Code style and readability 5. Missing error handling 6. Test coverage gaps Format feedback as: [SEVERITY] file:line - Issue description Suggestion: How to fix it
Comments (0)
No comments yet. Be the first to share your thoughts!
Leave a Comment