원클릭으로
codex-review
Independent adversarial code review via Codex CLI to eliminate Claude self-review bias
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Independent adversarial code review via Codex CLI to eliminate Claude self-review bias
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Single entry point for frontend work. Classify intent, create a plan, and run the minimal agent workflow.
Find reusable components with compact output before UI work
Create a task branch after plan approval
Create scoped Conventional Commits after reviewer PASS
Create an issue for failed tests or tracked follow-up work
Push the branch and create a PR with a compact generated summary
| name | codex-review |
| description | Independent adversarial code review via Codex CLI to eliminate Claude self-review bias |
Trigger: called by front-agent after reviewer PASS
Purpose: Run an independent review using Codex (OpenAI) to catch issues Claude's self-review may have missed.
Claude reviews code it just wrote. Same model, same biases, same blind spots. Codex is a different model with no shared context — it will catch different things.
Build the review prompt from two sources:
| Field | Source | Include |
|---|---|---|
| Task goal | plan.md → ## Goal | Always — one-line summary |
| Previous reviewer notes | reviewer output → ### Notes | Only when present |
constraints.md | — | Never — Codex judges independently |
| Full file contents | — | Never — git diff is sufficient |
Scoped diff — only the current task's files
--uncommitted and --base main both review ALL changes in the repo, not just the current task. Instead, generate a diff scoped to changed_files from the handoff and pass it directly to codex:
# 1. Generate diff for only the files changed in this task
# Route through rtk-wrap so `rtk git diff` compresses output when the mode is on.
DIFF=$(bash hooks/rtk-wrap.sh git diff HEAD -- src/features/login/LoginForm.tsx src/features/login/LoginForm.test.tsx)
# 2. Pass scoped diff inline to codex
codex -m o3 "
Task: [plan.md Goal in one line]
Previous reviewer (Claude opus) PASS notes: [reviewer Notes section, or 'none']
Files changed in this task:
- src/features/login/LoginForm.tsx
- src/features/login/LoginForm.test.tsx
Diff:
\`\`\`diff
$DIFF
\`\`\`
Review independently. Be adversarial. Focus on: correctness, security, type safety, and edge cases. Look for what the previous reviewer missed."
If o3 is unavailable or rate-limited, omit -m to fall back to the user's default model.
No git repository or empty diff: If the working directory is not a git repo, or changed_files is empty, skip codex-review and warn the orchestrator — do not block the workflow.
FAIL if any of the following:
PASS for everything else. Style preferences, minor suggestions, and non-blocking observations do not cause FAIL.
Do not auto-fix. Surface the issues to the user with a clear decision prompt:
"Codex review found blocking issues:
- [file:line] — [issue]
Options: a) Fix — send issues to the implementation agent and re-review b) Override — proceed to git-commit as-is"
developer / ui-builder)reviewercodex-review (one attempt only)git-issue and report to user — do not retry againProceed to git-commit as-is. Record the override decision in the handoff block:
- decisions: codex-review FAIL overridden by user — [issue summary]
## Codex Review Verdict: PASS / FAIL
### Blocking Issues (if FAIL)
1. [file:line] — [issue] → [suggested fix]
### Notes (non-blocking)
- [observation]
reviewer (opus) has already given PASSchanged_files from the handoff — never use --uncommitted or --base main (those include unrelated changes)constraints.md or full file contentscodex is not installed, not authenticated, or the working directory is not a git repo: skip and warn the orchestrator — do not block the workflowgit-commitgit diff through bash hooks/rtk-wrap.sh git diff ... (see CLAUDE.md → RTK Wrapping)