skill-packs/codex-review/skills/codex-parallel-review/SKILL.md
Parallel independent review by 4 Claude agents + Codex, followed by merge, debate, and consensus report.
npx skillsauth add lploc94/codex_skill codex-parallel-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
5 reviewers analyze code simultaneously: 4 Claude agents (Correctness, Security, Performance, Maintainability) + 1 Codex. Findings merged, disagreements debated, consensus reported.
When you want independent dual-reviewer analysis with higher-confidence cross-validated findings.
RUNNER="{{RUNNER_PATH}}" SKILLS_DIR="{{SKILLS_DIR}}" json_esc() { printf '%s' "$1" | node -e 'let d="";process.stdin.on("data",c=>d+=c);process.stdin.on("end",()=>process.stdout.write(JSON.stringify(d)))'; }
printf '%s' "$PROMPT" | node "$RUNNER" ... -- NEVER echo. JSON via heredoc.init output must start with CODEX_SESSION:. start/resume must return valid JSON. CODEX_NOT_FOUND->tell user install codex.status === "completed" means Codex's turn is done -- NOT that the debate is over. MUST check Loop Decision table.failed->retry once (re-poll 15s). timeout->report partial, suggest lower effort. stalled+recoverable->stop->recovery resume->poll; not recoverable->report partial. Cleanup sequencing: finalize+stop ONLY after recovery resolves.finalize + stop, even on failure/timeout.Read references/protocol.mdMode: full-codebase/working-tree/branch. Auto-detect effort (<50 files=medium, 50-200=high, >200=xhigh).
Branch mode: validate base branch, clean working tree, bind BASE. Prepare FILES and DIFF per mode.
2a) Init + Start Codex:
Init: node "$RUNNER" init --skill-name codex-parallel-review --working-dir "$PWD"
Render: template=full-round1/working-tree-round1/branch-round1. Placeholders: USER_REQUEST, SESSION_CONTEXT, BASE_BRANCH (branch only).
Start: printf '%s' "$PROMPT" | node "$RUNNER" start "$SESSION_DIR" --effort "$EFFORT"
2b) Spawn 4 Claude Agents (same message as 2a, all run_in_background: true):
Poll Codex. Collect agent results as they finish. If agent fails, continue with remaining.
4a) Deduplicate Claude findings across agents -- same file + overlapping lines -> keep higher severity. 4b) Cross-match Claude vs Codex: agreed, claude-only, codex-only, contradiction. Prefer false-negatives over false-positives. 4c) Present merge summary: Claude (deduplicated), Codex, Agreed, Claude-only, Codex-only, Contradictions.
Apply agreed issues. Branch mode: commit fixes before debate.
Render template=debate, placeholders: CODEX_ONLY_WITH_REBUTTALS, CLAUDE_ONLY_FINDINGS, CONTRADICTIONS.
Resume + back to Poll. Parse RESPONSE-{N}: accept->apply, reject->reconsider, revise->evaluate. Remove resolved from next round. Branch: commit fixes before resume.
| # | Condition | Action | |---|-----------|--------| | 1 | All disputed/claude-only/codex-only resolved | EXIT -> step 6 | | 2 | convergence.stalemate === true | EXIT -> step 6 (stalemate) | | 3 | Unresolved findings remain | CONTINUE -> debate |
Reviewers: 5. Report: Claude/Codex findings, Agreed, Resolved via debate, Unresolved, Debate rounds, Verdict. Present: Consensus Issues by severity, Resolved Disagreements, Unresolved table, Risk Assessment.
finalize + stop. Always run. (-> references/protocol.md for error handling)
SKILL_START, PARALLEL_LAUNCH, POLL_WAITING, CODEX_RETURNED, PARALLEL_MERGE, APPLY_FIX, SEND_REBUTTAL, LATE_ROUND, APPROVE_VICTORY, STALEMATE_DRAW, FINAL_SUMMARY
development
Peer debate between Claude Code and Codex on any technical question. Both think independently, challenge each other, converge to consensus or explicit disagreement.
development
Security-focused code review using OWASP Top 10 and CWE patterns. Detects vulnerabilities through adversarial debate.
development
Peer debate between Claude Code and Codex on PR quality and merge readiness. No code modifications.
tools
Review/debate plans before implementation between Claude Code and Codex CLI. Can run in plan mode — debates the plan and edits the plan file to fix accepted issues.