codex-review

Run OpenAI Codex code review on current changes or review a plan/design. Use when user asks to review code, review implementation, or run codex review.

7 stars

Best use case

codex-review is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Run OpenAI Codex code review on current changes or review a plan/design. Use when user asks to review code, review implementation, or run codex review.

Teams using codex-review should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/codex-review/SKILL.md --create-dirs "https://raw.githubusercontent.com/ifokeev/airbrowser-mcp/main/.claude/skills/codex-review/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/codex-review/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How codex-review Compares

Feature / Agentcodex-reviewStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Run OpenAI Codex code review on current changes or review a plan/design. Use when user asks to review code, review implementation, or run codex review.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# Codex Code Review

Run OpenAI Codex CLI to review code changes or implementation plans.

## Mode Detection

Determine which mode to use based on what the user wants reviewed:

### Mode A — Code Diff Review (`codex review`)

Use when the user wants to review **actual code changes** (committed or uncommitted).

Indicators: "review my changes", "review this PR", "review the diff", or no specific context (default).

### Mode B — Plan / Design Review (`codex exec`)

Use when the user wants to review **a plan, design, or suggested implementation** that exists in conversation context — NOT as code diffs.

Indicators: "review the suggested implementation", "review this plan", "review the design", "review what was proposed", or when there are no relevant code changes on the branch.

## Compact Prompt

Always pass a compact-output instruction via heredoc stdin to reduce context window usage. `codex review` does NOT accept a prompt as a positional argument alongside flags, but it does read from stdin via heredoc.

```
COMPACT_PROMPT="Be concise. For each finding output ONLY: severity (critical/warning/info), file:line, and a one-line description. Group by severity. No code snippets unless critical. No preamble or summary paragraph."
```

## Mode A — Code Diff Review

1. Run `git status` to check for uncommitted changes
2. Choose the appropriate review target:

   **Uncommitted changes** (staged, unstaged, or untracked):
   ```bash
   codex review --uncommitted <<'EOF'
   $COMPACT_PROMPT
   EOF
   ```

   **Specific commit SHA**:
   ```bash
   codex review --commit <SHA> <<'EOF'
   $COMPACT_PROMPT
   EOF
   ```

   **Base branch comparison**:
   ```bash
   codex review --base <BRANCH> <<'EOF'
   $COMPACT_PROMPT
   EOF
   ```

   **No uncommitted changes** — review latest commit:
   ```bash
   codex review --commit HEAD <<'EOF'
   $COMPACT_PROMPT
   EOF
   ```

3. Present the output and offer to help fix issues

## Mode B — Plan / Design Review

Use `codex exec` in read-only sandbox mode. Pipe the plan text via stdin.

1. Collect the plan/design text from the conversation context
2. Write it to a temp file, then run:

   ```bash
   codex exec --sandbox read-only -o /dev/stdout - <<'PLAN_EOF'
   Review the following implementation plan for a codebase at $PWD.
   Identify issues, missing edge cases, security concerns, and incorrect assumptions.
   Be concise. List issues as bullet points with severity (critical/warning/info).

   --- PLAN ---
   <paste plan text here>
   PLAN_EOF
   ```

   Or if the plan references files that already exist, let codex read them:
   ```bash
   codex exec --sandbox read-only "$REVIEW_PROMPT"
   ```

   Where `$REVIEW_PROMPT` includes the plan text and instructions to read relevant files.

3. Present the output and offer to help address issues

## Custom Instructions

If the user provides arguments (e.g. "focus on security"), prepend them to the compact prompt in the heredoc:

```bash
# Mode A
codex review --uncommitted <<'EOF'
Focus on security. $COMPACT_PROMPT
EOF

# Mode B
codex exec --sandbox read-only "focus on security. $REVIEW_PROMPT"
```

## Notes

- The `codex` CLI must be installed and authenticated (`codex login`)
- Timeout should be generous (up to 5 minutes) as reviews can take time
- The compact prompt keeps output short; if the user wants full verbose output, they can say `/codex-review --verbose` and you should omit the heredoc
- For Mode B, always use `--sandbox read-only` since no writes are needed

Related Skills

pr

7
from ifokeev/airbrowser-mcp

Create pull requests with conventional titles using gh CLI. Use when creating PRs, opening pull requests, or pushing branches for review.

commit

7
from ifokeev/airbrowser-mcp

Create conventional commit messages without co-author labels. Use when committing code changes or formatting git history.

flutter-dart-code-review

144923
from affaan-m/everything-claude-code

库无关的Flutter/Dart代码审查清单,涵盖Widget最佳实践、状态管理模式(BLoC、Riverpod、Provider、GetX、MobX、Signals)、Dart惯用法、性能、可访问性、安全性和整洁架构。

DevelopmentClaude

security-review

144923
from affaan-m/everything-claude-code

Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.

SecurityClaude

addressing-pr-review-comments

44152
from streamlit/streamlit

Address all valid review comments on a PR for the current branch in the streamlit/streamlit repo. Covers both inline review comments and general PR (issue) comments. Use when a PR has reviewer feedback to address, including code changes, style fixes, and documentation updates.

Developer ToolsClaude

lightning-architecture-review

31392
from sickn33/antigravity-awesome-skills

Review Bitcoin Lightning Network protocol designs, compare channel factory approaches, and analyze Layer 2 scaling tradeoffs. Covers trust models, on-chain footprint, consensus requirements, HTLC/PTLC compatibility, liveness, and watchtower support.

Blockchain & Crypto AnalysisClaude

gha-security-review

31392
from sickn33/antigravity-awesome-skills

Find exploitable vulnerabilities in GitHub Actions workflows. Every finding MUST include a concrete exploitation scenario — if you can't build the attack, don't report it.

Security AuditClaude

gh-review-requests

31392
from sickn33/antigravity-awesome-skills

Fetch unread GitHub notifications for open PRs where review is requested from a specified team or opened by a team member. Use when asked to "find PRs I need to review", "show my review requests", "what needs my review", "fetch GitHub review requests", or "check team review queue".

Developer ToolsClaude

fix-review

31392
from sickn33/antigravity-awesome-skills

Verify fix commits address audit findings without new bugs

Security AuditingClaude

error-debugging-multi-agent-review

31392
from sickn33/antigravity-awesome-skills

Use when working with error debugging multi agent review

Code ReviewClaude

django-perf-review

31392
from sickn33/antigravity-awesome-skills

Django performance code review. Use when asked to "review Django performance", "find N+1 queries", "optimize Django", "check queryset performance", "database performance", "Django ORM issues", or audit Django code for performance problems.

Code OptimizationClaude

django-access-review

31392
from sickn33/antigravity-awesome-skills

django-access-review

Security AnalysisClaude