Code Review Checklist
Skill9 starsChanged 8 months agoMITView on GitHub
Runs a systematic checklist review on any code diff or file, covering correctness, security, performance, and readability.
In this repository61 other files it gives its agents.
- Accessibility Audit HelperSkill
- Agent Context File WriterSkill
- Agent Evaluation Framework BuilderSkill
- AI Feature Spec WriterSkill
- API Documentation GeneratorSkill
- REST API Endpoint DesignerSkill
- Architecture ExplainerSkill
- Article RepurposerSkill
- Auth Flow PlannerSkill
- Blog Outline GeneratorSkill
- Breaking Change DetectorSkill
- Bug Root Cause AnalyzerSkill
- Caching Strategy AdvisorSkill
- Changelog CuratorSkill
- Database Schema ReviewerSkill
- Docker Compose GeneratorSkill
- Documentation Gap FinderSkill
- Edge Case DiscoverySkill
- Error Log SummarizerSkill
- FAQ GeneratorSkill
- Flaky Test AnalyzerSkill
- Form UX OptimizerSkill
- Git Commit WriterSkill
- Hallucination Risk ReviewerSkill
- Hybrid Search ArchitectSkill
- Incident Postmortem WriterSkill
- Issue to PR PlannerSkill
- Landing Page Copy ImproverSkill
- LangGraph State Machine DesignerSkill
- LLM Cost OptimizerSkill
- LLM Tracing and Observability SetupSkill
- MCP Integration AssistantSkill
- MCP Server BuilderSkill
- Migration Guide WriterSkill
- Newsletter Summary WriterSkill
- Observability ChecklistSkill
- Playwright Test BuilderSkill
- PR Description WriterSkill
- Prompt Injection Defense AuditorSkill
- Prompt RefinerSkill
- Prompt Version Control WorkflowSkill
- RAG Chunking Strategy AdvisorSkill
- RAG Workflow PlannerSkill
- React Component ReviewerSkill
- README WriterSkill
- Refactor PlannerSkill
- Release Notes GeneratorSkill
- Responsive Layout ReviewerSkill
- SDK Quickstart WriterSkill
- SEO Content OptimizerSkill
- SEO Metadata GeneratorSkill
- Social Post Thread WriterSkill
- Sprint Summary GeneratorSkill
- SQL Query OptimizerSkill
- Stack Trace AnalyzerSkill
- Technical Blog Post WriterSkill
- Tech Debt AuditorSkill
- Troubleshooting Guide BuilderSkill
- Unit Test ImproverSkill
- Unit Test WriterSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Use this before merging a PR, after a refactor, or any time you want a second opinion on code quality.
- Very specific: line 33
Add the contents of the "Prompt / Instructions" section below to your .cursorrules file, then open the file you want reviewed and ask …
- Distinctive: line 41
When asked to review code, work through each section of this checklist in order.
- Distinctive: line 89
After completing the checklist, output a summary with:
- Distinctive: line 94
If no issues are found in a section, write "✓ No issues found" for that section rather than skipping it.
- Distinctive: line 127
If the diff is large, focus on files with the most business logic first.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code Review Checklist
What this skill does
This skill directs the agent to perform a structured code review using a proven checklist. It catches bugs, security issues, performance problems, and readability concerns that are easy to miss in a quick scan. The output is a prioritized list of findings — not vague suggestions, but specific line-level feedback with clear explanations.
Use this before merging a PR, after a refactor, or any time you want a second opinion on code quality.
How to use
Claude Code / Cline
Copy this file to .agents/skills/code-review-checklist/SKILL.md in your project root.
Then ask the agent:
- "Review this file using the Code Review Checklist skill."
- "Run the Code Review Checklist skill on my PR diff."
Cursor
Add the contents of the "Prompt / Instructions" section below to your .cursorrules file, then open the file you want reviewed and ask Cursor to review it.
Codex
Paste the code and the instructions from the section below into the Codex chat.
The Prompt / Instructions for the Agent
When asked to review code, work through each section of this checklist in order. For every issue found, output:
- Severity:
critical|major|minor|nit - Location: file name and line number(s)
- Issue: one-sentence description
- Suggestion: what to do instead
1. Correctness
- Does the logic match the intended behavior (based on function name, comments, or context)?
- Are there off-by-one errors in loops or array accesses?
- Are all code paths handled, including edge cases (empty input, null, zero, negative numbers)?
- Are async operations properly awaited? Could there be race conditions?
- Are errors caught and handled appropriately, or silently swallowed?
2. Security
- Is any user input used in SQL queries, shell commands, or file paths without sanitization?
- Are secrets, API keys, or passwords hardcoded or logged?
- Are authentication and authorization checks in place before sensitive operations?
- Is output properly escaped before being rendered in HTML (XSS)?
- Are dependencies pinned to known-good versions?
3. Performance
- Are there any N+1 query patterns (a query inside a loop)?
- Is expensive work (network calls, heavy computation) done unnecessarily on every request?
- Are large data structures being copied when a reference would suffice?
- Are there obvious opportunities for caching or memoization?
4. Readability & Maintainability
- Are variable and function names descriptive and consistent with the surrounding codebase?
- Is any logic complex enough to warrant a comment but currently unexplained?
- Are there magic numbers or strings that should be named constants?
- Is the function doing more than one thing (violates single-responsibility)?
- Is there dead code, commented-out code, or TODO comments that should be resolved?
5. Tests
- Are the critical paths covered by tests?
- Do the tests actually assert meaningful behavior, or just that no error was thrown?
- Are edge cases (empty input, error states) tested?
After completing the checklist, output a summary with:
- Total findings by severity
- The top 3 issues to fix first (highest severity / most impactful)
- An overall assessment:
Approve|Approve with minor fixes|Needs changes
If no issues are found in a section, write "✓ No issues found" for that section rather than skipping it.
Example
Input to Agent:
"Use the Code Review Checklist skill on this function:
async function getUser(id: string) { const query = `SELECT * FROM users WHERE id = '${id}'`; const result = await db.raw(query); return result.rows[0]; } ```"
Output from Agent:
Correctness
- Major | Line 3 | No null check on
result.rows[0]— returnsundefinedif user not found, which may cause downstream errors. | Returnnullexplicitly or throw aNotFoundError.
Security
- Critical | Line 2 | SQL injection vulnerability —
idis interpolated directly into the query string. | Use a parameterized query:db.raw('SELECT * FROM users WHERE id = ?', [id]).
Performance
- Minor | Line 2 |
SELECT *fetches all columns even if only a few are needed. | Specify the columns you actually use.
Summary
- 1 critical, 1 major, 1 minor
- Top issues: SQL injection (critical), missing null check (major), over-fetching columns (minor)
- Assessment: Needs changes
Notes
- If the diff is large, focus on files with the most business logic first.
- For nitpicks (formatting, naming), group them at the end rather than interspersing them with real issues.
- This skill does not run linters or static analysis — it is a reasoning-based review. For automated checks, run your existing lint/test pipeline first.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

