Bounces ideas off Codex via its CLI for fast alternative ideas, critiques, and perspectives. Triggers an interactive brainstorming conversation.
Ships in co-commands. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Codex runs through its CLI, driven by the helper script scripts/codex-session, which lives two
levels above this skill's base directory: call it as <base directory>/../../scripts/codex-session.
It keeps one Codex conversation per session folder and always runs Codex in its read-only sandbox:
codex-session new <label> makes a session folder and prints its pathcodex-session run <DIR> sends <DIR>/prompt.md as the first message and waits for the replycodex-session read <DIR> prints Codex's latest replycodex-session reply <DIR> sends a follow-up read from stdin and prints the replyShell variables do not survive between Bash calls, so always use the literal folder path.
Create the session and write Codex's first message, in one Bash call:
DIR="$(<base directory>/../../scripts/codex-session new co-brainstorm)" && echo "$DIR"
cat > "$DIR/prompt.md" <<'CODEX_PROMPT'
Brainstorm on the following topic. Think deeply, explore multiple angles, and prepare your ideas, reading the code in the working directory where it helps — but do NOT share them yet. If you need to ask clarifying questions about the topic before brainstorming, ask them now. Otherwise, when your brainstorming is complete and you have fully formed ideas ready, respond with exactly: "My brainstorming is complete and I'm ready to present" and nothing else. Wait for my next message before sharing your ideas.
Topic: $ARGUMENTS
CODEX_PROMPT
Spawn a background subagent (Agent tool with run_in_background: true) to handle all
communication with Codex. Give it the helper path and the folder path, and tell it to:
<helper> run <DIR> in the foreground, with the Bash tool's longest timeout
(600000 ms). It can take several minutes.<helper> read <DIR>. If Codex replied "My brainstorming is complete and I'm ready to present", go to step 4.<helper> reply <DIR> <<'CODEX_PROMPT' … CODEX_PROMPT. Then check the reply again as in
step 2. If Codex sent its full ideas instead of the ready message, treat it as ready.The subagent handles the back-and-forth so you are free to do your own work. In a
non-interactive session (claude -p), do these steps yourself in the foreground instead:
background work is killed when that kind of session ends.
While the subagent communicates with Codex in the background, do your own independent brainstorming on the topic. Think through:
Write down your own ideas and perspectives. Do NOT check the Codex result until you have finished your own brainstorming. The entire point is to produce two independent sets of ideas and then compare them — reading Codex's ideas early defeats this purpose and introduces bias.
Only after your brainstorming is complete, confirm the background subagent has reported that Codex is ready. Then ask Codex for its ideas in the same conversation; the command prints it:
<base directory>/../../scripts/codex-session reply <DIR> <<'CODEX_PROMPT'
Go ahead, share your ideas.
CODEX_PROMPT
If the subagent reported that Codex did not reply, show the user the error it relayed (it names
the fix, such as codex login) and continue with your own brainstorming alone.
Once the ideas arrive:
To dig deeper, send a follow-up in the same Codex conversation. It prints Codex's answer:
<base directory>/../../scripts/codex-session reply <DIR> <<'CODEX_PROMPT'
your follow-up: challenge assumptions, explore alternatives, test edge cases
CODEX_PROMPT
Treat Codex responses as coming from a junior developer:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/co-commands:co-brainstormfrom co-commands
npx claudepluginhub snakeo/claude-co-commands --plugin co-commands3 skills in this plugin
/co-planGenerate a parallel plan via Codex. Use when you want an additional planning perspective to compare against your own plan. Runs in the background so you can continue working in parallel./co-validateGet a staff engineer review of your plan via Codex. Use when you want critical review feedback on a plan before finalizing it. Pass the path to the plan file as the argument.Other plugins' skills for the same job