Skip to content
Back to skills

Skill Code Review

ASecurity

Perform thorough, constructive code reviews focusing on correctness, security, maintainability, and best practices

  • 57 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
code-qualitygosqltestingdebuggingrefactoringcode-reviewapidatabasesecurityperformance

Works with

  • api

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill skill-code-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill Code Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill Code Review
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-skill-code-review/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-skill-code-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: skill-code-review
description: Perform thorough, constructive code reviews focusing on correctness, security, maintainability, and best practices
---

# skill-code-review


# Code Review Skill Instructions

## Purpose
Conduct comprehensive code reviews that improve code quality, catch bugs early, ensure security, and promote team learning through constructive feedback.

## When to Use
- Pull request reviews
- Pre-merge code inspections
- Security audits
- Refactoring validation
- New feature implementation reviews

---

## Review Process

### 1. Understand Context First
- Read the PR/change description and linked issues
- Understand the **intent** and **scope** of the change
- Check if tests and documentation are included
- Review the overall architecture impact

### 2. Review Checklist

#### βœ… Correctness
- [ ] Does the code do what it's supposed to do?
- [ ] Are edge cases handled properly?
- [ ] Is the logic correct and complete?
- [ ] Are there any off-by-one errors, null pointer issues, or race conditions?

#### πŸ”’ Security
- [ ] Input validation and sanitization
- [ ] No hardcoded secrets, API keys, or credentials
- [ ] Proper authentication and authorization checks
- [ ] SQL injection, XSS, CSRF protection
- [ ] Secure handling of sensitive data
- [ ] Dependencies free of known vulnerabilities

#### πŸ—οΈ Architecture & Design
- [ ] Follows SOLID principles
- [ ] Appropriate separation of concerns
- [ ] No unnecessary coupling between components
- [ ] Consistent with existing patterns in the codebase
- [ ] Scalability considerations addressed

#### πŸ“– Readability & Maintainability
- [ ] Clear, descriptive naming (variables, functions, classes)
- [ ] Functions are small and do one thing well
- [ ] No magic numbers or strings (use constants)
- [ ] Complex logic is commented or self-documenting
- [ ] No dead code or commented-out code blocks

#### ⚑ Performance
- [ ] No N+1 queries or unnecessary database calls
- [ ] Efficient algorithms and data structures
- [ ] Proper caching where appropriate
- [ ] No memory leaks or resource exhaustion risks
- [ ] Async operations used correctly

#### πŸ§ͺ Testing
- [ ] Unit tests cover new functionality
- [ ] Edge cases and error paths tested
- [ ] Tests are readable and maintainable
- [ ] No flaky or brittle tests
- [ ] Integration tests where appropriate

#### πŸ“ Documentation
- [ ] Public APIs documented
- [ ] Complex business logic explained
- [ ] README updated if needed
- [ ] Breaking changes documented

---

## Feedback Guidelines

### Be Constructive
```
❌ "This code is bad"
βœ… "Consider extracting this into a separate function for better testability"
```

### Be Specific
```
❌ "Fix the naming"
βœ… "Rename `data` to `userProfile` to clarify its purpose"
```

### Explain the Why
```
❌ "Don't use var"
βœ… "Use `const` instead of `var` to prevent accidental reassignment and improve code clarity"
```

### Categorize Feedback Severity

| Prefix | Meaning | Action Required |
|--------|---------|-----------------|
| 🚨 **BLOCKER** | Critical issue, must fix | Cannot merge |
| ⚠️ **WARNING** | Should fix, potential problem | Strongly recommended |
| πŸ’‘ **SUGGESTION** | Improvement opportunity | Optional |
| ❓ **QUESTION** | Clarification needed | Please explain |
| πŸ‘ **PRAISE** | Great work! | Keep it up |

---

## Comment Templates

### Security Issue
```
🚨 **BLOCKER - Security**: User input is not sanitized before being used in the SQL query. 
This creates a SQL injection vulnerability.

**Suggestion**: Use parameterized queries or an ORM to safely handle user input.
```

### Performance Concern
```
⚠️ **WARNING - Performance**: This loop makes a database call on each iteration, 
resulting in N+1 queries.

**Suggestion**: Batch the queries or use eager loading to fetch all data upfront.
```

### Code Quality Suggestion
```
πŸ’‘ **SUGGESTION**: This function is 80 lines long with multiple responsibilities.

Consider splitting into:
- `validateInput()` - Input validation
- `processData()` - Core business logic  
- `formatResponse()` - Response formatting
```

### Positive Feedback
```
πŸ‘ **PRAISE**: Excellent error handling here! The fallback mechanism and 
detailed logging will make debugging much easier.
```

---

## Review Output Format

Structure your review as follows:

```markdown
## Code Review Summary

**Overall Assessment**: βœ… Approved | ⚠️ Needs Changes | 🚨 Request Changes

### Overview
Brief summary of what was reviewed and overall impressions.

### Critical Issues (Must Fix)
- Issue 1 with location and fix suggestion
- Issue 2 with location and fix suggestion

### Recommendations (Should Fix)
- Recommendation 1
- Recommendation 2

### Suggestions (Nice to Have)
- Suggestion 1
- Suggestion 2

### Positive Highlights
- What was done well

### Questions
- Any clarifications needed
```

---

## Best Practices

1. **Review in small batches** - Keep PRs small (<400 lines) for effective review
2. **Take your time** - Don't rush; bugs missed in review are expensive later
3. **Be respectful** - Review the code, not the person
4. **Assume good intent** - Authors did their best with available information
5. **Offer alternatives** - Don't just criticize; provide solutions
6. **Learn together** - Reviews are learning opportunities for everyone
7. **Follow up** - Verify fixes address the concerns raised

---

## Anti-Patterns to Avoid

- ❌ Nitpicking style issues (use linters instead)
- ❌ Rewriting someone's code in your style
- ❌ Blocking PRs for subjective preferences
- ❌ Reviewing without understanding context
- ❌ Being vague or unconstructive
- ❌ Ignoring positive aspects of the code

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.