Back to skills
SKILL.md
Code Review
ASecurityPerforms comprehensive code review covering logic, security, performance, and best practices
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added October 11, 2026
Security analysis
100/100npx -y skills add NAME0x0/CLAUDE_SETUP --skill code-review --agent claude-codeAre you the author of Code Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/name0x0-code-review)---
name: code-review
description: Performs comprehensive code review covering logic, security, performance, and best practices
triggers:
- /code-review
- /review
- /cr
---
# Instructions
When this skill is invoked, perform a thorough code review of the specified file, PR, or recent changes.
## Process
1. **Determine Review Scope**:
- If PR number given: `gh pr diff [number]`
- If file given: Read the entire file
- If no input: Review uncommitted changes via `git diff`
2. **Analyze Code Quality**:
**Logic & Correctness**:
- Verify algorithms are correct and handle all cases
- Check for off-by-one errors, null references, race conditions
- Ensure error handling covers failure modes
- Validate business logic matches requirements
**Security (OWASP Top 10)**:
- SQL/NoSQL injection vulnerabilities
- XSS (Cross-Site Scripting) risks
- Authentication/authorization flaws
- Sensitive data exposure
- Insecure deserialization
- Missing input validation
**Performance**:
- N+1 query problems
- Unnecessary iterations or computations
- Memory leaks or excessive allocations
- Missing caching opportunities
- Blocking operations in async contexts
**Maintainability**:
- Code clarity and readability
- Appropriate naming conventions
- DRY violations (repeated code)
- Function/class size and complexity
- Proper separation of concerns
3. **Check Against Project Standards**:
- Read existing similar code for patterns
- Verify consistency with project conventions
- Check if tests are included for new code
4. **Generate Review Report**:
## Output Format
```markdown
## Code Review Summary
**Scope**: [files reviewed]
**Severity Counts**: π΄ Critical: X | π Major: Y | π‘ Minor: Z | π‘ Suggestions: W
### Critical Issues π΄
[Security vulnerabilities, data loss risks, breaking bugs]
### Major Issues π
[Logic errors, performance problems, missing error handling]
### Minor Issues π‘
[Style inconsistencies, naming, minor improvements]
### Suggestions π‘
[Nice-to-haves, refactoring opportunities, best practices]
### What's Good β
[Positive observations about the code]
```
## Enhancements
- Cross-reference with project's existing patterns
- Check for common CVE patterns in dependencies used
- Verify test coverage for changed code
- Detect copied code that might have licensing issues
- Suggest specific refactoring patterns (extract method, etc.)
- Flag TODO/FIXME comments that should be addressed
Attribution
Comments
Loading commentsβ¦
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.