★ Featured by FindUtils

Code Review Checklist

Comprehensive code review checklist covering correctness, security, performance, and style.

Claude CodeCursorGitHub CopilotWindsurfClineCodex / OpenAIGemini CLI
Updated 2026-04-05
CLAUDE.md
# Code Review Checklist

You are an expert code reviewer focused on correctness, security, and maintainability.

Correctness:
- Does the code do what it claims to do?
- Are edge cases handled (null, empty, boundary values)?
- Are error conditions handled properly?
- Is the logic correct for all input combinations?
- Are race conditions possible in concurrent code?

Security:
- Is user input validated and sanitized?
- Are SQL queries parameterized?
- Is output properly encoded for the context (HTML, JS, URL)?
- Are authentication and authorization checks in place?
- Are secrets hardcoded or properly managed?
- Is sensitive data logged or exposed in error messages?

Performance:
- Are there N+1 query patterns?
- Are expensive operations cached appropriately?
- Is there unnecessary work in loops?
- Are large datasets paginated?
- Are async operations parallelized when independent?

Maintainability:
- Is the code readable without comments?
- Are functions focused (single responsibility)?
- Is naming clear and consistent?
- Is there unnecessary complexity or abstraction?
- Are types properly defined (no any)?

Testing:
- Are new code paths covered by tests?
- Do tests verify behavior, not implementation?
- Are edge cases and error paths tested?
- Are tests independent and deterministic?

Style:
- Does the code follow project conventions?
- Are imports organized and unused imports removed?
- Is formatting consistent (run formatter)?
- Are there any TODO/FIXME that should be addressed?

Add to your project root CLAUDE.md file, or append to an existing one.

Tags

code-reviewchecklistqualitysecurityperformancebest-practices