From codex-opinion
Pipe your plan or diff to Codex for a second opinion. Invoke with /codex-opinion:codex-opinion.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codex-opinion:codex-opinionThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Get a second opinion from OpenAI Codex on your current work. Codex uses your configured model and settings.
Get a second opinion from OpenAI Codex on your current work. Codex uses your configured model and settings.
Two options — pick whichever fits:
Use when you need Codex's response before proceeding.
echo "<gathered context>" | python3 ${CLAUDE_PLUGIN_ROOT}/skills/codex-opinion/scripts/ask_codex.py
Use when you want to keep working while Codex analyzes. Run the same command directly via Monitor — do NOT use TaskCreate, do NOT monitor a file, do NOT sleep+cat. Monitor runs the command itself and notifies you when output arrives.
echo "<gathered context>" | python3 ${CLAUDE_PLUGIN_ROOT}/skills/codex-opinion/scripts/ask_codex.py
Set Monitor timeout to at least 600 seconds. Codex can take several minutes.
If there are uncommitted changes:
git diff HEAD | python3 ${CLAUDE_PLUGIN_ROOT}/skills/codex-opinion/scripts/ask_codex.py
If there are also untracked files that matter, include them:
{ git diff HEAD; echo "--- Untracked files ---"; git ls-files --others --exclude-standard | while read f; do echo "=== $f ==="; cat "$f"; done; } | python3 ${CLAUDE_PLUGIN_ROOT}/skills/codex-opinion/scripts/ask_codex.py
If the tree is clean, gather context yourself:
echo "Review this codebase. Key files: ..." | python3 ${CLAUDE_PLUGIN_ROOT}/skills/codex-opinion/scripts/ask_codex.py
With a custom instruction (from user text after /codex-opinion:codex-opinion):
echo "<context>" | python3 ${CLAUDE_PLUGIN_ROOT}/skills/codex-opinion/scripts/ask_codex.py "user's instruction"
Never pipe an empty string. If git diff HEAD would be empty, use echo with gathered context instead.
One Codex session per project, persisted across Claude Code sessions. Follow-up calls resume the prior Codex thread so it keeps its accumulated codebase knowledge. If the session has expired server-side, the script logs a notice and starts fresh.
Tell the user what Codex found.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub ehzawad/codex-opinion --plugin codex-opinion