一键导入
review-by-oppreview
Run Codex as an independent reviewer against the current diff or changed files. Parses findings into the ledger. Use after making code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run Codex as an independent reviewer against the current diff or changed files. Parses findings into the ledger. Use after making code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Finalize the review session. Only succeeds if all blocking findings are resolved. Emits final verdict.
Address Codex review findings from the ledger. Shows open findings and guides resolution. Each finding must get an explicit resolution state.
Resume an existing review-by-opp session. Use when returning to a previous review session.
Start a guarded implementation + review session. Use when beginning work that should be reviewed by Codex before completion. Initializes the review ledger and configures the stop gate.
Show current review ledger status including round count, open findings, blocking items, agent configuration, and whether the session can be finalized.
Learn about review-by-opp - what it does, how to use it, and available commands
| name | review-by-opp:review |
| description | Run Codex as an independent reviewer against the current diff or changed files. Parses findings into the ledger. Use after making code changes. |
| user-invocable | true |
You are running a Codex review round. Codex is the auditor - it reviews, you do not edit during this step.
Verify session exists:
reviews/current.json. If missing, tell user: "No active session. Run /review-by-opp:start first."Determine review scope:
reviewScope in config (from reviews/current.json or .review-by-opp.json):
"diff" - include the git diff in the audit prompt for context"changed-files" - include full content of changed files"changed-files-plus-tests" - changed files plus related test files"full-repo" - review the entire repository (Codex reads all files via sandbox)diff, changed-files, and changed-files-plus-tests: check git diff --name-only first. If no changes, tell user: "No changes to review. Make code changes first."full-repo: skip the diff check - Codex reviews everythingIncrement round:
current_round in the ledgerWrite context file for Codex:
reviews/context.md so Codex has full project context despite being stateless. Include:
Build the audit prompt:
reviews/context.md for project context and previous findingsdiff scope: include the git diff output in the promptchanged-files scope: include the full file contents of changed filesfull-repo scope: instruct Codex to read and review all source files in the repository/review-by-opp:review I think the error handling in api.ts might be wrong/review-by-opp:review check if the rate limiter actually works under concurrency/review-by-opp:review is it ok to use eval here or is there a safer wayFINDING: {"title":"...","severity":"...","category":"...","file":"...","line":...,"description":"...","suggested_fix":"..."}Run Codex review:
npx @openai/codex exec --sandbox read-only "<audit prompt>"--model <model>-c model_reasoning_effort=<effort>Parse findings:
FINDING: and parse the JSONf-{round}-{short-uuid}openUpdate ledger:
reviews/current.jsonreviews/rounds/round-{N}.jsonreviews/summaries/summary-{N}.jsonRun verification checks (if configured):
rerunChecks is true in config, run available checks (test, lint, typecheck)Report results:
/review-by-opp:fix."/review-by-opp:finalize."CRITICAL: Do NOT edit any files during the review step. You are only gathering and recording Codex's findings.
$ARGUMENTS