CO

Uses an external model to review code written by the primary agent for unbiased quality checks.

Install

mkdir -p .claude/skills/codex-review-hyperb1iss && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/19455" && unzip -o skill.zip -d .claude/skills/codex-review-hyperb1iss && rm skill.zip

Installs to .claude/skills/codex-review-hyperb1iss

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use this skill for code reviews using the Codex CLI from a Claude-hosted session. Activates on mentions of codex review, code review with codex, codex check, gpt review, codex exec review, run codex, review my code, review this PR, review changes, peer review, or second opinion.
279 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • Perform cross-model code reviews
  • Execute Codex CLI commands for validation
  • Review specific branches, commits, or working trees
  • Capture review output to files

How it works

The skill uses the Codex CLI to perform an independent code review, use a different architectural model to avoid self-review bias.

Inputs & outputs

You give it
Code diff or file path
You get back
Codex-generated review findings

When to use codex-review

  • Perform cross-model peer review
  • Check PRs for overlooked bugs
  • Get a second opinion on code logic
  • Verify code quality using external CLI

About this skill

Cross-Model Code Review with Codex CLI

Cross-model validation using the codex binary directly. Claude writes code, Codex reviews it. Different architecture, different training distribution, no self-approval bias.

Core insight: Single-model self-review is systematically biased. Cross-model review catches different bug classes because the reviewer has fundamentally different blind spots than the author.

Scope the independence claim honestly: a different model breaks self-review bias — nothing else. It does not catch shared-training staleness (version, SOTA, and ecosystem claims need live primary sources no matter how many models agreed) or intent misreads inherited from the brief (carry the user's verbatim ask into the prompt and ask the reviewer to challenge the interpretation).

How to read this skill: the patterns and decision tables below are guidelines. Pick what fits, blend when needed. The rules marked ⚠️ are different: they're real codex CLI behaviors, not procedural ceremony. Skipping the scope flag genuinely hangs the call; piping to tail genuinely loses output. Treat ⚠️ rules as facts about the tool, not opinions about workflow.

Prerequisite: The codex CLI must be installed and authenticated. Verify with codex --version. User defaults live in ~/.codex/config.toml; respect them.

On Pi: when the pi-nova xreview extension is installed, prefer /xreview — it wraps external codex exec --sandbox read-only with stdin closed and returns structured Verdict/Findings/Fix Queue. Manual bash calls from Pi follow the same ⚠️ rules below.

Direction: Claude → Codex only. For the bidirectional skill (also handles Codex → Claude with the claude -p gotchas around yield_time_ms and variadic flags), use /hyperskills:cross-model-review instead.


⚠️ Non-Negotiable Rule: Always pass a scope flag to codex review

A bare codex review (no scope) is the #1 cause of failures: it hangs or produces 100KB+ blob output. Always specify exactly one scope flag:

Want to reviewCommand
Branch since maincodex review --base main
Single commitcodex review --commit <SHA>
Working tree (unstaged)codex review --uncommitted

Scoped codex review also accepts custom instructions as a trailing [PROMPT] argument (as of Jul 2026: codex review --base main "focus on error handling"), so a focused pass keeps structured review behavior. Reach for codex exec "PROMPT" when the artifact isn't a diff at all — spec docs, single files outside version control, freeform investigations — never bare codex review.

If codex review output exceeds ~100KB, the diff is too large for one pass. Split per commit, or use codex exec with a narrower prompt ("Review error handling only"). Large codex exec transcripts are a different animal — see When the Review Hangs.

Pin the surface, freeze the target. On a dirty or multi-workstream branch, give an explicit file list or pipe the exact diff into codex exec — an unpinned reviewer wanders into diff tourism. Don't edit the reviewed code while the review runs; fill the wait with work that's read-only relative to the reviewed diff. Any edit after the verdict voids it: re-review exactly the delta, so the blocker is closed rather than hand-waved.


⚠️ Capture Output to a File: Don't Pipe to tail

Never pipe a review to | tail -N. Three failure modes:

  1. The pipe buffers until EOF. tail reads the whole stream before producing output, so the agent gets nothing until codex exits or times out, no progress signal mid-review.
  2. Reviews put the verdict near the top, not the bottom. Findings sort by severity (BLOCKER first), so tail -300 cuts exactly the part you want.
  3. A file lets a human watch progress live. tail -f /tmp/review.txt in another terminal streams the review in real time, completely independent of the agent's call.

Right pattern: pick a non-colliding filename, redirect, then read it back.

# mktemp so parallel/repeat reviews don't clobber each other.
# Bake the scope into the slug so it's self-describing under tail -f.
out=$(mktemp -t codex-review-pre-pr.XXXXXX) && echo "$out"

codex review --base main > "$out" 2>&1
codex exec --sandbox read-only "PROMPT" > "$out" 2>&1

If mktemp isn't handy: out=/tmp/codex-review-$$-$(date +%s).txt. Echo the path before the redirect so a human running tail -f knows where to look. After exit, Read (or cat) the file. It persists across turns, re-read instead of re-running.

Adjacent tool fact: under --sandbox read-only, Codex silently can't write a report file the prompt asks for. Capture via redirect or --output-last-message, never "write your report to X".


When the Review Hangs

Even correctly-scoped reviews hang — it's the top operational failure in the field. The output file is the liveness instrument: judge by growth and process state, never elapsed time. Slow with growing output is often a quality signal — a fast rubber stamp on a big surface is suspicious.

SignalMove
Output file growingKeep waiting; it's working
Empty file, process tree aliveWait one more window, then isolate variables (as of Jul 2026, wedged MCP servers and startup hooks are the usual culprits)
Empty file, process wedgedKill only that process tree; retry once with fewer degrees of freedom — exact diff on stdin, narrower file list, lower effort. Same question, less payload
Retry also sticksPre-declare the give-up, record the failed review honestly

Never spawn a duplicate alongside a live reviewer — reap the one you have. And size alone is not the failure signal: a 1MB+ codex exec transcript can be a successful deep exploration with the verdict at the tail — grep for verdict and severity markers instead of dumping the trace. The real failure shape is no output growth, or growth with no convergence toward a verdict.


Two Ways to Invoke Codex

ModeCommandBest For
codex reviewStructured diff review with prioritized findingsPre-PR reviews, commit reviews, WIP checks
codex execFreeform non-interactive deep-dive with full prompt controlSecurity audits, architecture, focused investigation, specs

Scope flags (codex review only)

FlagPurpose
--base <BRANCH>Diff against base branch
--commit <SHA>Review a specific commit
--uncommittedReview working tree changes

Sandbox & ergonomics flags (both modes)

FlagWhen
--sandbox read-onlyDefault for review work, no writes
--sandbox workspace-writeReview + apply suggested fixes
--full-autoAlias for --ask-for-approval never --sandbox workspace-write
--dangerously-bypass-approvals-and-sandboxLast resort; explicit user request only
-C <DIR> / --cd <DIR>Run in another worktree without cd
--skip-git-repo-checkRunning from /tmp or any non-repo dir (trips the git trust check)
--add-dir <DIR>Extend read access to another path
--ephemeralOne-shot session, no persistence
--json / --output-last-message <FILE>Capture structured output to a file
-c model_reasoning_effort="xhigh"Spec/RFC review only (see Effort Policy)

Effort override policy

ReviewingEffort flag
Code (commit / diff / PR / WIP)None, defer to ~/.codex/config.toml
Spec / RFC / design doc-c model_reasoning_effort="xhigh"

Specs are higher-stakes than diffs, a subtle architectural mistake compounds across the eventual implementation. Code diffs are smaller scope and the user's configured effort is fine.

Scope before effort. Effort amplifies whatever the scope is; the xhigh override applies to an already-scoped spec review. An unscoped "verify everything" prompt at xhigh diverges instead of deepening (observed: 80k lines of transcript, no verdict). When a review must converge, narrow the scope — and consider lower effort, not higher — with an explicit convergence budget in the prompt ("be surgical, converge to a verdi


Content truncated.

When not to use it

  • Formatting or linting tasks
  • Evaluating product direction or UX
  • Self-reviewing Claude's own code

Prerequisites

Codex CLI installed and authenticated

Limitations

  • Not a replacement for human review
  • 5–15% false positive rate
  • Output exceeding 100KB requires splitting

How it compares

It utilizes a separate model architecture for validation rather than relying on the primary model's self-assessment.

Compared to similar skills

codex-review side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
codex-review (this skill)014dReviewAdvanced
effective-go3239moNo flagsBeginner
architect-review1093moNo flagsAdvanced
resolve-conflicts818moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

effective-go

openshift

Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.

323536

architect-review

sickn33

Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural decisions.

109320

resolve-conflicts

antinomyhq

Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.

81334

solid-principles

SmidigStorm

Enforce SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) in object-oriented design. Use when writing or reviewing classes and modules.

57236

python-testing-patterns

wshobson

Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.

77204

codex

Lucklyric

Invoke Codex CLI for complex coding tasks requiring high reasoning capabilities. This skill should be invoked when users explicitly mention "Codex", request complex implementation challenges, advanced reasoning, or need high-reasoning model assistance. Automatically triggers on codex-related requests and supports session continuation for iterative development.

32238

Search skills

Search the agent skills registry