Guide
What you get: Typing /review gives you a structured review of your uncommitted changes (Bugs, Risky, Simplify) with file:line references and a ship / don't ship verdict, without touching your files. Best for Developers using Claude Code (or Codex via a skill) who want a quick, consistent self-review before committing..
Before you start
- A git repository with uncommitted changes
- Claude Code: save the file as .claude/commands/review.md
- Claude Code must be allowed to run git diff (we allowed Bash(git diff:*) and Bash(git status:*))
- Codex: save the body as .agents/skills/review/SKILL.md with name and description front matter
Worked example (Oct 17, 2026, Claude Code 2.1.296; Codex 0.151.0 (gpt-5.6-sol))
Input
A Next.js 16 page edited (unstaged) to render the ?q= query parameter with dangerouslySetInnerHTML. Ran /review in Claude Code and $review in Codex.
Result
Claude Code: "src/app/page.tsx:23 — cross-site scripting (XSS) through the q query parameter ... Verdict: don't ship." Codex: "Stored/reflected XSS — src/app/page.tsx:23 ... don't ship"
Both tools found the planted XSS, plus a 'Welcome back, undefined' bug and a loose searchParams type. git diff and git status were identical before and after both runs (no edits). Codex also ran npm run build on its own and correctly reported the change breaks the build under cacheComponents; Claude Code did not find that build failure. {{project_checks}} was filled with 'Next.js App Router conventions (server vs client components); keep TypeScript types strict.' After this test it also checks git status so new, untracked files get reviewed, and it may run git diff/status without asking.
How to check it worked
- Run git diff before and after /review; it should be unchanged
- Check that each finding points at a real file:line in your diff
- The reply ends with ship / ship after fixes / don't ship
Common problems
- git diff does not show brand-new untracked files, so new files are not reviewed unless you stage them (not tested here, follows from the git commands the template uses)
- In headless or locked-down permission modes the review cannot run unless git diff is allowed
- The agent may go beyond the template, e.g. Codex ran npm run build and tried npm run dev
Log in to join the discussion.