second-opinionlisted
Install: claude install-skill guyaga/second-opinion
# Second Opinion (Claude ⇄ Codex relay)
Consult the locally installed Codex CLI (`codex exec`, non-interactive) as an independent reviewer, then run a short debate. Both sides share their reasoning: Claude writes its thinking into the brief; Codex is asked to return a verdict plus reasoning. The goal is a better final answer, not agreement for its own sake.
## When to use
- The user explicitly asks for a second opinion / Codex's view on something Claude produced or proposed (a generation prompt, an architecture, copy, a plan, a diff).
- High-stakes or taste-driven decisions where an independent model genuinely helps.
Do NOT invoke on your own for routine work; it costs a real Codex turn (~30–90s each round).
## Setup facts
- Command: `codex exec` (non-interactive). Verified on codex-cli 0.144.x; flags are identical on Windows, macOS, and Linux.
- **OS detection**: read the platform from the session environment — `win32` → use the PowerShell variants below; `darwin`/`linux` → use the bash variants. Never ask the user which OS they're on.
- Codex's default model + reasoning effort come from `~/.codex/config.toml` (currently a GPT-5.x model at high effort). Only pass `-m <model>` if the user names a model.
- Codex loads the user's Claude skills from `~/.agents/skills` at startup — you can tell it by name which skill to consult.
- A round's stdout transcript can be 100KB+ (Codex dumps files it reads). ALWAYS redirect the transcript to a log file and capture the final answer w