| name | code-review-checklist |
| description | Comprehensive checklist for conducting thorough code reviews covering functionality, security, performance, and maintainability |
| type | skill |
| created | 2026-02-27T00:00:00.000Z |
| domain | security |
| category | app-security |
| risk | unknown |
| source | community |
| tags | ["skill","security","app-security","code","review","checklist"] |
Code Review Checklist
Overview
Provide a systematic checklist for conducting thorough code reviews. This skill helps reviewers ensure code quality, catch bugs, identify security issues, and maintain consistency across the codebase.
When to Use This Skill
- Use when reviewing pull requests
- Use when conducting code audits
- Use when establishing code review standards for a team
- Use when training new developers on code review practices
- Use when you want to ensure nothing is missed in reviews
- Use when creating code review documentation
How It Works
Step 1: Understand the Context
Before reviewing code, I'll help you understand:
- What problem does this code solve?
- What are the requirements?
- What files were changed and why?
- Are there related issues or tickets?
- What's the testing strategy?
Step 2: Review Functionality
Check if the code works correctly:
- Does it solve the stated problem?
- Are edge cases handled?
- Is error handling appropriate?
- Are there any logical errors?
- Does it match the requirements?
Step 3: Review Code Quality
Assess code maintainability:
- Is the code readable and clear?
- Are names descriptive?
- Is it properly structured?
- Are functions/methods focused?
- Is there unnecessary complexity?
Step 4: Review Security
Check for security issues:
- Are inputs validated?
- Is sensitive data protected?
- Are there SQL injection risks?
- Is authentication/authorization correct?
- Are dependencies secure?
Step 5: Review Performance
Look for performance issues:
- Are there unnecessary loops?
- Is database access optimized?
- Are there memory leaks?
- Is caching used appropriately?
- Are there N+1 query problems?
Step 6: Review Tests
Verify test coverage:
- Are there tests for new code?
- Do tests cover edge cases?
- Are tests meaningful?
- Do all tests pass?
- Is test coverage adequate?
Examples
Example 1: Functionality Review Checklist
## Functionality Review
[ ] Code solves the stated problem
[ ] All acceptance criteria are met
[ ] Edge cases are handled
[ ] Error cases are handled
[ ] User input is validated
[ ] No logical errors or bugs
[ ] Conditions are correct (no off-by-one errors)
[ ] Loops terminate correctly
[ ] Recursion has proper base cases
[ ] State management is correct
[ ] Errors are caught appropriately
[ ] Error messages are clear and helpful
[ ] Errors don't expose sensitive information
[ ] Failed operations are rolled back
[ ] Logging is appropriate
\\`javascript
function createUser(email, password) {
// No validation!
return db.users.create({ email, password });
}
\\`
\\`javascript
function createUser(email, password) {
if (!email || !isValidEmail(email)) {