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
SKILL.md
Preview
---
name: code-review-checklist-agent-skill-skill-md-for-claude-code-codex
description: "Reviews a diff for correctness, security, performance and tests, and reports findings as file:line with a fix."
---

# 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.

## Prompt

```
---
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.
```

## Usage Notes

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.

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
How prompts are written and checked

Did this prompt work?

Keep exploring

More in AI Coding Agents