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.
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
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/codex-review/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How codex-review Compares
| Feature / Agent | codex-review | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/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
Cursor vs Codex for AI Workflows
Compare Cursor and Codex for AI coding workflows, repository assistance, debugging, refactoring, and reusable developer skills.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
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
Create pull requests with conventional titles using gh CLI. Use when creating PRs, opening pull requests, or pushing branches for review.
commit
Create conventional commit messages without co-author labels. Use when committing code changes or formatting git history.
flutter-dart-code-review
库无关的Flutter/Dart代码审查清单,涵盖Widget最佳实践、状态管理模式(BLoC、Riverpod、Provider、GetX、MobX、Signals)、Dart惯用法、性能、可访问性、安全性和整洁架构。
security-review
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.
addressing-pr-review-comments
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.
lightning-architecture-review
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.
gha-security-review
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.
gh-review-requests
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".
fix-review
Verify fix commits address audit findings without new bugs
error-debugging-multi-agent-review
Use when working with error debugging multi agent review
django-perf-review
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.
django-access-review
django-access-review