From review-by-opp
Runs Codex as independent reviewer on git diff or changed files, parses findings into ledger. Use after code changes in review session.
npx claudepluginhub akshan-main/review-by-opp --plugin review-by-oppThis skill uses the workspace's default tool permissions.
You are running a Codex review round. Codex is the auditor - it reviews, you do not edit during this step.
Performs code reviews for PRs, audits, and changes using Codex MCP. Outputs severity-grouped findings and merge gates. Variants: fast (diff), full (lint/build checks), branch.
Performs structured code reviews checking requirements, quality, and security standards after changes or before merge. Uses git diffs, context snapshots, and blast radius for scope.
Reviews code changes using parallel personas for correctness, testing, maintainability, and conditional areas like security, performance, APIs. Merges into P0-P3 severity reports for PR prep and iterative feedback.
Share bugs, ideas, or general feedback.
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