jrajasekera/claude-skills/codex-review

Claude Code and agent skill by jrajasekera/claude-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Review non-trivial design docs or implementation plans with Codex before coding; validate feedback; fix critical plan issues; ask about non-critical choices. Also triggers when the user says "use codex-review", "ask Codex", or "get Codex feedback".

Install

npx vskill@latest install jrajasekera/claude-skills/codex-review

SKILL.md

Codex Review

Principle

Use Codex as an independent reviewer, not as an authority. Claude owns the plan, verifies every finding against the repository and user requirements, then decides what to change.

Trigger Rules

Run automatically after drafting or materially changing a plan for:

  • Multi-file implementation work.
  • New features, refactors, migrations, rollouts, or architecture decisions.
  • Security, auth, permissions, payments, billing, schemas, data handling, concurrency, performance-sensitive code, or dependency changes.
  • Any task where a flawed plan could waste significant implementation time.

Ask before running for trivial work:

  • Typos, small copy edits, simple config changes, docs-only edits, or a tiny single-file helper with no API/data-flow impact.

Never run if the user says to skip Codex review or proceed without additional review.

Before Invoking Codex

  1. Ensure the plan exists as a file. If it only exists in chat, write or update the plan file first.
  2. Ensure the plan has concrete repository details: file paths, modules, functions, commands, tests, migration steps, constraints, and non-goals.
  3. Determine:
  • PROJECT_ROOT: absolute path to the repository or project root.
  • PLAN_PATH: absolute path to the plan file. Its contents are inlined into the prompt (see below), so an absolute path keeps cat working regardless of the current directory.
  1. Remove secrets, tokens, credentials, private keys, and unrelated user data from the prompt.
  2. If the plan is vague, improve it before asking Codex to review it.

Where Codex Review Is Most (and Least) Useful

Codex is strongest at checking a plan against concrete code: whether file paths, frameworks, APIs, and patterns actually exist; missing or incompatible dependencies; architectural mismatches; and references to non-existent routes, models, or functions.

Codex adds little value — and may return shallow feedback — when the plan references external systems it cannot access (third-party APIs, databases, services), is highly abstract with few concrete code references, or targets a greenfield project with no existing code to compare against. If feedback comes back shallow, add concrete file paths, symbols, or snippets to the plan and re-run rather than trusting a thin review.

Select Model and Effort

Do not use the Codex defaults. Pick a review tier for every run by scoring the plan on two independent axes, then map to a model and reasoning effort.

Complexity — how hard the plan is to reason about:

LevelSignals
LowOne file or one small module, one obvious approach, no new dependencies, no cross-cutting behavior.
ModerateA few files inside one subsystem, some genuinely new logic or a new dependency, but follows established repo patterns.
SubstantialSeveral files crossing a subsystem boundary, a new component or interface other code will depend on, or logic with enough branching or state that correctness is not obvious by inspection.
HighMany files or several subsystems, new abstractions or architecture, concurrency/async, schema or data migration, multi-step rollout.
Extra-highCross-cutting redesign, distributed or stateful coordination, large migration with backfill, novel algorithm, or correctness that cannot be checked locally.
ExtremeSeveral extra-high signals at once, a design with no established pattern to copy in this repo or its ecosystem, or failure modes that cannot be enumerated up front.

Impact — what happens if the plan is wrong:

LevelSignals
MinorCaught immediately, trivially reversible, confined to local dev, docs, or tooling.
ModerateCosts rework or a broken feature branch; user-visible bug on a non-critical path; reversible with a normal fix.
SignificantBreaks a feature real users depend on, or forces a coordinated revert; recoverable within a normal release cycle but visible outside the team.
SevereProduction breakage, degraded experience for real users, hard-to-reverse interface or schema change, or significant wasted implementation time.
CriticalData loss or corruption, security/auth/privacy/payments exposure, irreversible migration, outage, or money and compliance consequences.
CatastrophicUnrecoverable data destruction, a breach exposing user data or secrets, or a failure whose blast radius reaches past this system to customers, partners, or regulators.

Tier mapping:

TierComplexity / ImpactModelEffort
1Low / Minorgpt-6-sollow
2Moderate / Moderategpt-6-solmedium
3Substantial / Significantgpt-6-solhigh
4High / Severegpt-6-astralow
5Extra-high / Criticalgpt-6-astramedium
6Extreme / Catastrophicgpt-6-astrahigh

Resolving the gray areas. The two axes rarely land on the same level, and plans rarely sit cleanly inside one description. Apply these rules in order:

  1. Score the axes independently, then take the higher of the two tiers. A simple change to a payments path is a high-impact review, not a low-complexity one.
  2. When a plan sits between two levels on an axis, round up. The cost of one tier too high is a slower review; the cost of one tier too low is a missed critical flaw.
  3. Impact overrides complexity at the top: critical impact is always at least tier 5, and catastrophic impact is always tier 6, no matter how small the diff looks.
  4. Anything touching auth, permissions, payments, billing, PII, secrets, data migrations, or destructive/bulk deletion is at least tier 3.
  5. Multi-file or multi-subsystem work is at least tier 2 — never send it to tier 1.
  6. Tier 1 is reserved for plans that were borderline worth reviewing at all (a trivial single-file change the user asked to review anyway). If you would have auto-run the review under the trigger rules, it is tier 2 or above.
  7. If the plan cannot be scored confidently — vague, unfamiliar subsystem, unclear blast radius — that uncertainty is risk. Use tier 3.
  8. An explicit user request for a specific model or effort wins over this whole section.

The floors in rules 4-7 are minimums, not ceilings. Score the axes first; a plan that scores higher than its floor uses the higher tier.

State the chosen tier and the one-line reason before invoking, e.g. Tier 5 (astra/medium): auth session schema change across 6 files.

Invoke Codex

Use the Bash tool with these settings:

  • timeout: 1200000
  • Foreground only: no &, nohup, disown, background subshells, or background task runners.
  • Capture stdout directly; do not write Codex feedback to a file.
  • Suppress stderr progress noise unless debugging a failure.

Run this from any directory; -C sets the Codex workspace root. --sandbox read-only keeps Codex read-only, so no approval flag is needed in exec mode. (If you ever need one, -a/--ask-for-approval is a top-level flag that must precede the exec subcommand: codex -a never exec ….)

Inline the plan's contents into the prompt via $(cat "$PLAN_PATH") — never ask Codex to open the plan by path itself, since it may silently read the wrong file and review the wrong content.

Pass the tier explicitly with -m and -c model_reasoning_effort=…. Both flags are required on every run so the review never silently inherits whatever is in ~/.codex/config.toml.

bash
PROJECT_ROOT="/absolute/path/to/project/root"
PLAN_PATH="/absolute/path/to/plan.md"
# From the tier table above. Never omit these two.
CODEX_MODEL="gpt-6-astra" # gpt-6-sol (t1-3) | gpt-6-astra (t4-6)
CODEX_EFFORT="medium" # low (t1) | medium (t2) | high (t3) | low (t4) | medium (t5) | high (t6)
cat <<CODEX_REVIEW_PROMPT | codex exec -C "$PROJECT_ROOT" \
-m "$CODEX_MODEL" \
-c model_reasoning_effort="$CODEX_EFFORT" \
--sandbox read-only \
--skip-git-repo-check \
--ephemeral \
- 2>/dev/null
You are reviewing an implementation plan for correctness, feasibility, and fit with the existing codebase.
Project root: $PROJECT_ROOT
Review tasks:
1. Read the plan provided at the end of this prompt (between the PLAN START / PLAN END markers).
2. Inspect the repository as needed.
3. Verify that the plan matches actual files, frameworks, APIs, naming, tests, and project conventions.
4. Find missing steps, incorrect assumptions, security risks, migration risks, rollout risks, test gaps, and references to non-existent code.
5. Do not modify files.
6. Do not ask follow-up questions.
7. Output only the final review in the format below.
Format:
## Critical
- [C1] Title — Issue, impact, evidence from the repo, and concrete fix. Use file paths or symbols when possible.
## Important
- [I1] Title — Issue, impact, evidence, and suggested fix.
## Optional
- [O1] Title — Improvement, tradeoff, and when it is worth doing.
## Looks Good
- Note sound parts of the plan. If there are no concerns, write: "No concerns found."
--- PLAN START ---
$(cat "$PLAN_PATH")
--- PLAN END ---
CODEX_REVIEW_PROMPT

Validate Feedback

For each Codex item, verify before acting:

  • Does the referenced file, symbol, route, command, test, schema, or dependency actually exist?
  • Does the concern follow from the codebase and the plan?
  • Does it conflict with explicit user requirements?
  • Is it critical, important, optional, invalid, or out of scope?

Ignore hallucinated or out-of-scope feedback. Do not change the plan just because Codex suggested it.

Triage and Action

BucketMeaningAction
CriticalLikely implementation failure, broken tests, data loss, security/privacy risk, migration failure, wrong architecture, or user-requirement violation.Fix the plan immediately.
ImportantValid improvement to correctness, maintainability, rollout safety, or test coverage, but not clearly blocking.Apply if obvious and low-risk; otherwise ask.
OptionalStyle, polish, alternative approach, extra hardening, or nice-to-have.Ask or leave as a recommendation.
Invalid / out of scopeHallucinated, already handled, irrelevant, or contrary to requirements.Ignore; mention briefly only if useful.

When applying feedback, edit the original plan/design doc. Do not create a separate feedback file.

Asking About Non-Critical Choices

Prefer one grouped question for non-critical choices:

text
Codex raised these non-critical options. Which should I apply?
1. [Short label] — [concrete change and tradeoff]
2. [Short label] — [concrete change and tradeoff]
3. Skip non-critical changes — Continue with critical fixes only.

Use AskUserQuestion if available; otherwise ask in chat. Use separate questions only for independent, high-impact choices. Always include a skip option.

Review Rounds

Default flow:

  1. Run round 1.
  2. Validate and triage feedback.
  3. Fix valid critical issues in the plan.
  4. Ask about non-critical choices if needed.
  5. Re-run only if valid critical issues were fixed.
  6. Stop when a round has no valid critical issues, or after 3 total rounds.

Rules:

  • Maximum 3 rounds total.
  • Re-use the round 1 tier for later rounds, with one exception: if the findings show the plan is riskier than you scored it (unnoticed migration, security surface, or blast radius), escalate one tier for the next round. Never de-escalate mid-review.
  • If the user requests a specific number of rounds, respect it but cap at 3.
  • Do not re-run for optional or stylistic feedback only.
  • If round 3 still has valid critical issues, stop and summarize the remaining risk.
  • Respect the task boundary: if the user asked for review only, do not proceed to implementation.

Failure Handling

If codex exec fails, times out, returns no usable stdout, or the CLI is unavailable:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
3

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 Mar 2026, 8 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jrajasekera/claude-skills/codex-review/badge)](https://verified-skill.com/skills/jrajasekera/claude-skills/codex-review)

Something wrong with this skill or its page? Tell us.