Help us improve
Share bugs, ideas, or general feedback.
From feature-design
Invoke OpenAI Codex CLI from inside a Claude session to get an independent response from a non-Claude model. Trigger when the user asks to "ask Codex", "get Codex's take", "have Codex review", "second opinion from Codex", "run this past Codex", or when running a multi-model crossfire that needs an independent OpenAI-side perspective. Sends a prompt to Codex via `codex exec` and returns the plain-text response. Used by the feature-design plugin's crossfire stages but also independently useful for any second-opinion task.
npx claudepluginhub choughton/feature-design-prompt-templates --plugin feature-designHow this skill is triggered — by the user, by Claude, or both
Slash command
/feature-design:codexThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Invokes OpenAI's Codex CLI in non-interactive mode to get an independent response from a non-Claude model. The skill shells out via the Bash tool, captures stdout, and returns the response cleanly.
Creates p5.js generative art with seeded randomness, noise fields, and interactive parameter exploration. Use for algorithmic art, flow fields, or particle systems.
Share bugs, ideas, or general feedback.
Invokes OpenAI's Codex CLI in non-interactive mode to get an independent response from a non-Claude model. The skill shells out via the Bash tool, captures stdout, and returns the response cleanly.
Do NOT trigger when:
Before this skill works, the user must have:
npm install -g @openai/codex (Node 20+) or via the official installer.codex login has been run (creates ~/.codex/auth.json), ORCODEX_API_KEY env var is set (note: not OPENAI_API_KEY — the exec subcommand specifically reads CODEX_API_KEY)If the user hasn't done this, the skill should tell them and stop, not try to proceed.
Run a quick sanity check via Bash:
command -v codex && codex --version
If the command fails or returns nothing, tell the user:
Codex CLI doesn't appear to be installed or on PATH. Install with
npm install -g @openai/codex(Node 20+ required), then runcodex loginto authenticate, then retry.
Stop. Do not attempt the call.
Decide what prompt to send Codex. For most uses this comes from:
If the prompt is long, write it to a temp file rather than passing it inline — long shell-arg strings have quoting hazards.
codex exec --skip-git-repo-check --sandbox read-only "$PROMPT" 2>/dev/null
Run from the project's working directory (typically the repo root) so Codex can read files referenced in the prompt. Crossfire reviewers don't just respond to inlined text — they read the project's PRD, Codex docs, code, etc. via the CLI's filesystem tools.
Flag rationale:
exec — non-interactive subcommand; required to avoid landing in the Codex REPL--skip-git-repo-check — Codex refuses to run outside a git repo by default; this disables the check (handy if the project happens to not be a git repo, though most are)--sandbox read-only — safest default for review work. Codex can read files; cannot write, edit, or hit network. Right shape for adversarial review.2>/dev/null — suppresses Codex's progress/thinking-token stream on stderr; the final response goes to stdoutFor long prompts, prefer reading from a file:
codex exec --skip-git-repo-check --sandbox read-only "$(cat /path/to/prompt.md)" 2>/dev/null
Capture stdout. The full response is the model's final message. Present it back to the user with light framing — typically:
Codex says:
If the response is long, summarize first and offer the full text on request.
--ephemeral — don't persist the session rollout to disk. Use for crossfire so review runs don't pollute the user's session history.-m <model> — pick a specific model. Default is fine for most uses; specify when the user asks for a particular Codex model.-o /path/last.md — also write the final response to a file. Useful when the parent flow wants the response saved alongside other crossfire artifacts.--json — return newline-delimited JSON events instead of plain text. Use only if the parent flow needs structured event output.| Symptom | Likely cause | Action |
|---|---|---|
command not found | Codex CLI not installed or not on PATH | Tell user to install per Setup section |
Authentication failed / 401 | codex login not run, or auth expired, or CODEX_API_KEY missing | Tell user to re-auth |
outside a git repo | Missing --skip-git-repo-check | Add the flag (this skill always passes it; if you see this, the invocation got mangled) |
| Hangs forever | Codex waiting on TTY input — happens when stdin is an empty pipe | Always pass the prompt as a positional arg, not via redirected stdin. See openai/codex#20919 |
| Empty stdout, content on stderr | 2>/dev/null was dropped or the run errored before producing output | Re-run without stderr suppression to see the actual error |
Codex CLI installs to the host OS (typically Windows in Cowork's case). Cowork's Bash tool runs in an isolated Linux sandbox. If the sandbox can't reach the host's codex binary, this skill will fail at the Step-1 sanity check. Workarounds in priority order:
npm install -g @openai/codex from within Bash) — auth files won't persist between sessions, so re-auth each session via CODEX_API_KEY env var.codex --version from within Bash; if it works, you're set.This is a known caveat to validate during first-time setup, not a blocker.