Code Review Checklist: Agent Skill (SKILL.md) for Claude Code, Codex and Cursor
Reviews a diff for correctness, security, performance and tests, and reports findings as file:line with a fix.
The prompt
Installs to .agents/skills/code-review-checklist-agent-skill-skill-md-for-claude-code-codex/
mkdir -p .agents/skills/code-review-checklist-agent-skill-skill-md-for-claude-code-codex && curl -sL "https://prompts-gpt.com/prompts/code-review-checklist-agent-skill-skill-md-for-claude-code-codex-and-cursor/raw" -o .agents/skills/code-review-checklist-agent-skill-skill-md-for-claude-code-codex/SKILL.md---
name: code-review-checklist
description: Reviews a diff for correctness, security, performance and tests, and reports findings as file:line with a fix. Use when asked to review a PR, a diff or changes before merge.
---
# Code review checklist
## Steps
1. Read the whole diff once to understand the change and its intent.
2. Check correctness: edge cases, null/empty inputs, error paths, off-by-one, concurrency.
3. Check security: auth on new routes, input validation, injection, secrets, unsafe deserialization.
4. Check performance: N+1 queries, unbounded loops or payloads, missing pagination or indexes.
5. Check tests: new branches covered, failure cases tested, no flaky timing.
6. Report each finding as `file:line — severity — what's wrong — the fix`, most severe first.
## Rules
- Only report what you can point to in the diff. Drop speculation.
- Say "no findings" when there are none; don't pad.Save as .claude/skills/code-review-checklist/SKILL.md in one project (or ~/.claude/skills/code-review-checklist/ for all of them); Codex reads .agents/skills/code-review-checklist/SKILL.md. Then ask for the job in plain words and the agent loads it. Or install with: npx skills add prompts-gpt/skills --skill code-review-checklist.
Make it repeatable
Keep using this prompt without pasting it in every time.
Prompt details
- By
- Prompts-GPT editors
- Published
Did this prompt work?
Keep exploring
More like this
AGENTS.md Writer: Agent Skill (SKILL.md) for Claude Code, Codex and Cursor
Writes or refreshes a repo's AGENTS.md or CLAUDE.md from what's actually in the code: verified build, test and lint commands, a directory map, conventions, do and don't lists, and gotchas, kept under about 150 lines.
Bug triage and fix plan: Multi-Step Agent Workflow for Claude Code, Codex or ChatGPT
Reproduces a reported bug, finds the cause in the repo, proposes a fix plan and waits for approval before editing code.
Domain Model And ADRs: Agent Skill (SKILL.md) for Claude Code, Codex and Cursor
Builds a glossary of the domain's terms from code and conversation, picks one canonical name for each concept, stress-tests the model against edge cases, writes architecture decision records (ADRs) for non-obvious choices, and flags code names that disagree.
Frontend Taste: Agent Skill (SKILL.md) for Claude Code, Codex and Cursor
Builds pages and components that don't look AI-generated: picks a design direction first, uses real copy, sets hierarchy, covers empty, loading and error states, and avoids common tells like purple gradients and emoji icons.
Systematic Debugging: Agent Skill (SKILL.md) for Claude Code, Codex and Cursor
Hunts down bugs whose cause isn't obvious: flaky or intermittent failures, 'works locally but fails in CI', regressions nobody can place, or a fix that didn't stick.
TDD In Vertical Slices: Agent Skill (SKILL.md) for Claude Code, Codex and Cursor
Implements a feature test-first, one small user-visible behavior at a time: write a failing test, confirm it fails for the right reason, write the least code to pass, refactor while green, checkpoint, and log each cycle.
- Verify Before Done: Agent Skill (SKILL.md) for Claude Code, Codex and Cursor
- Write An Implementation Plan: Agent Skill (SKILL.md) for Claude Code, Codex and Cursor
- Verify the Coding Agent's 'Done' Claim Against the Diff and Test Output
- Agent Session Handoff Brief with Resume Checklist and Verified State
- Pre-Merge Self-Review of a Git Diff: Correctness, Security, and Test Gaps
- Safe Refactor With Characterization Tests and Small Commits