一键导入
codex-review
Send the current plan to OpenCode CLI with GPT-5.3-Codex for iterative review. Claude and OpenCode go back-and-forth until the plan is approved.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Send the current plan to OpenCode CLI with GPT-5.3-Codex for iterative review. Claude and OpenCode go back-and-forth until the plan is approved.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | codex-review |
| description | Send the current plan to OpenCode CLI with GPT-5.3-Codex for iterative review. Claude and OpenCode go back-and-forth until the plan is approved. |
| user_invocable | true |
Send the current implementation plan to OpenCode (using GPT-5.3-Codex) for review. Claude revises the plan based on feedback and re-submits until approved. Max 5 rounds.
/codex-review during or after plan modeWhen invoked, perform the following iterative review loop:
Generate a unique ID to avoid conflicts with other concurrent Claude Code sessions:
REVIEW_ID=$(uuidgen | tr '[:upper:]' '[:lower:]' | head -c 8)
Use this for all temp file paths: /tmp/claude-plan-${REVIEW_ID}.md and /tmp/opencode-review-${REVIEW_ID}.md.
Write the current plan to the session-scoped temporary file. The plan is whatever implementation plan exists in the current conversation context (from plan mode, or a plan discussed in chat).
git remote get-url origin 2>/dev/null to get the repo URL. If working in a subdirectory, note the relative path./tmp/claude-plan-${REVIEW_ID}.md with repo context at the top:## Repository Context
- **Repo:** https://github.com/org/repo (or local path if no remote)
- **Working directory:** /path/to/current/dir
- **Branch:** current-branch-name
---
## Implementation Plan
[The actual plan content here]
Run OpenCode CLI in non-interactive mode to review the plan:
opencode run \
-m openai/gpt-5.3-codex \
"Review the implementation plan in /tmp/claude-plan-${REVIEW_ID}.md.
The plan includes repository context at the top — use this to understand the codebase. You can browse the repo for additional context if needed.
Focus on:
1. Correctness - Will this plan achieve the stated goals?
2. Risks - What could go wrong? Edge cases? Data loss?
3. Missing steps - Is anything forgotten?
4. Alternatives - Is there a simpler or better approach?
5. Security - Any security concerns?
6. Codebase fit - Does this align with existing patterns in the repo?
Be specific and actionable. If the plan is solid and ready to implement, end your review with exactly: VERDICT: APPROVED
If changes are needed, end with exactly: VERDICT: REVISE" > /tmp/opencode-review-${REVIEW_ID}.md 2>&1
Capture the OpenCode session ID from the output. OpenCode displays session info that can be used with --session to continue. Store this as OPENCODE_SESSION_ID.
Notes:
-m openai/gpt-5.3-codex as the default model. If the user specifies a different model (e.g., /codex-review anthropic/claude-sonnet-4), use that instead./tmp/opencode-review-${REVIEW_ID}.md## OpenCode Review — Round N (model: openai/gpt-5.3-codex)
[OpenCode's feedback here]
Based on OpenCode's feedback:
/tmp/claude-plan-${REVIEW_ID}.md with the revised version.### Revisions (Round N)
- [What was changed and why, one bullet per issue addressed]
Continue the existing OpenCode session so it has full context of the prior review:
opencode run \
-m openai/gpt-5.3-codex \
--session ${OPENCODE_SESSION_ID} \
"I've revised the plan based on your feedback. The updated plan is in /tmp/claude-plan-${REVIEW_ID}.md.
Here's what I changed:
[List the specific changes made]
Please re-review. If the plan is now solid and ready to implement, end with: VERDICT: APPROVED
If more changes are needed, end with: VERDICT: REVISE" > /tmp/opencode-review-${REVIEW_ID}.md 2>&1
Note: If session continuation fails (e.g., session expired), fall back to a fresh opencode run call with context about the prior rounds included in the prompt.
Then go back to Step 4 (Read Review & Check Verdict).
Once approved (or max rounds reached):
## OpenCode Review — Final (model: openai/gpt-5.3-codex)
**Status:** ✅ Approved after N round(s)
[Final feedback / approval message]
---
**The plan has been reviewed and approved. Ready for your approval to implement.**
If max rounds were reached without approval:
## OpenCode Review — Final (model: openai/gpt-5.3-codex)
**Status:** ⚠️ Max rounds (5) reached — not fully approved
**Remaining concerns:**
[List unresolved issues from last review]
---
**OpenCode still has concerns. Review the remaining items and decide whether to proceed or continue refining.**
Remove the session-scoped temporary files:
rm -f /tmp/claude-plan-${REVIEW_ID}.md /tmp/opencode-review-${REVIEW_ID}.md
Round 1: Claude sends plan → OpenCode reviews → REVISE?
Round 2: Claude revises → OpenCode re-reviews (session continue) → REVISE?
Round 3: Claude revises → OpenCode re-reviews (session continue) → APPROVED ✅
Max 5 rounds. Each round preserves OpenCode's conversation context via session continuation.
openai/gpt-5.3-codex. Accept model override from the user's arguments (e.g., /codex-review anthropic/claude-sonnet-4)curl -fsSL https://opencode.ai/install | bashInteract with local Chrome browser session (only on explicit user approval after being asked to inspect, debug, or interact with a page open in Chrome)
Create a new Cloudflare Workers project with modern tooling. Use when the user wants to start a new Cloudflare Worker, create a Workers project, or scaffold a CF worker.
Fetch PR/MR review comments (GitHub or GitLab), plan fixes, get Codex review, then implement, verify, commit and push.
Set up a git worktree for a repo in ~/Documents/Github, branch off origin/main, research context, then plan and implement together with the user.