codex
Skill1 starsChanged 5 days agoApache-2.0View on GitHub
Bridge to the local OpenAI Codex CLI (GPT-6.x family) as a sub-agent. Use when the user asks to send work to Codex/GPT/OpenAI, wants a second opinion from a different model family, needs something Claude cannot do natively (image generation or image editing — see the codex-image skill for the brief format), wants bulk mechanical data cleanup on a cheap lane, wants a Codex code review of a repo/diff, or wants several Codex lanes run in parallel (a 'codex fleet'). Also load whenever the orchestration skill routes a lane to gpt-6.1-sol, gpt-6-astra or gpt-6-luna.
- Reads credentials
138 other projects use a version of this.
Adopted by
Most recently taken up by
- mjeffrey18/skillstheir own version, first seen Nov 15, 2026
- rodos4312/Meu-Agenttheir own version, first seen Nov 15, 2026
- holylight1979/AtomicMemory-ClaudeCodetheir own version, first seen Nov 8, 2026
- mxrsv/agents-skillstheir own version, first seen Nov 8, 2026
- hemal08ce094/DesignSkillsSwiftUItheir own version, first seen Nov 8, 2026
- choughton/feature-design-prompt-templatestheir own version, first seen Nov 8, 2026
Used with
Projects with it also use ios-sync, compare-screenshots and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Saqlain-811Skillios-sync
Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)
Also in 6 projects that use this
transitive-bullshitSkillcompare-screenshots
Compare screenshots against the intended design, distinguishing approved references from historical baselines. Use for iterative implementation matching, before/after visual review, objective image telemetry, or checking a lone capture for flat, empty, or badly framed content.
Also in 5 projects that use this
dzhngSkillimplement-spec-with-codex
Run [implement-spec](../implement-spec/SKILL.md) with Codex doing the implementation passes while you orchestrate, integrate, and review. Use when the user asks to implement a spec with Codex, or to run implement-spec with Codex as the implementer.
Also in 4 projects that use this
Saqlain-811Skillios-clean
Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)
Also in 5 projects that use this
john-data-chenSkilltouchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
Also in 7 projects that use this
math-incSkillminecraft-modpack-server
Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.
Also in 5 projects that use this
- +1 more from Saqlain-811
Other versions138 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 138
- NousResearch/hermes-agent★ 262ksame name
- garrytan/gstack★ 141ksame name
- dzhng/jevgrep★ 3.2ksame name
- ispc/ispc★ 3ksame name
- bergside/awesome-design-skills★ 2.9ksame name
- dataplat/dbatools★ 2.9ksame name
- Lilac-Labs/gini-agent★ 1.9ksame name
- Open-Curiosity/gini-agent★ 1.9ksame name
- dzhng/skills★ 1.5ksame name
- clice-io/clice★ 1.4ksame name
128 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
- codex-imageSkill
- geminiSkill
- orchestrationSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 114 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Always call it through the wrapper script — it handles stdin prompts (UTF-8, no quoting problems), the JSON event stream, sandbox choice, …
- Very specific: line 17
Use the PowerShell tool (or Bash with pwsh -NoProfile -File ...).
- Very specific: line 33
Check the live roster with codex debug models if a model is rejected (the account decides what is available).
- Distinctive: line 84
Treat the answer as peer review: weigh it, disagree on evidence, tell the user where the models differ.
- Distinctive: line 99
A Codex report is a claim: Check the diff, run the tests, open the output file, or look at the image (Read the PNG) before telling the user …
- Very specific: line 101
Default sandbox is read-only.
- Distinctive: line 103
Do not send secrets, credentials or private data the user has not cleared into a brief — the brief goes to OpenAI.
“Common” is measured: kept by at least 6 in 10 of the 114 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex sub-agent bridge
Codex CLI (codex exec) runs non-interactively on this machine, signed in with the user's ChatGPT account.
Always call it through the wrapper script — it handles stdin prompts (UTF-8, no quoting problems), the
JSON event stream, sandbox choice, per-mode model defaults, session resume, and copying generated images
out of Codex's private folder.
pwsh -NoProfile -File "$HOME\.claude\skills\codex\scripts\codex.ps1" -Mode <mode> -PromptFile <brief.md> [options]Use the PowerShell tool (or Bash with pwsh -NoProfile -File ...). Runs take 20 s – several minutes:
set timeout to 600000, or run_in_background: true for long tasks and fleets.
Modes and lanes
| Mode | Default model / effort | Sandbox | Use for |
task | gpt-6.1-sol / high | read-only; -Write → workspace-write in -Cd | Execution: code changes, scripts, file generation, done by GPT |
image | gpt-6.1-sol / high | read-only (image comes out via the script) | Image generation / editing → load codex-image first |
opinion | gpt-6-astra / high | read-only | Second opinion, out-of-the-box angle, peer review of a plan |
bulk | gpt-6-luna / low | read-only; -Write to let it write outputs | Large mechanical cleanup: normalize, dedupe, classify, extract |
ask | gpt-6.1-sol / medium | read-only | Quick factual/technical question to the GPT family |
review | gpt-6.1-sol / high | read-only | codex exec review on a git repo (-Uncommitted, -Base main, -Commit <sha>) |
Override with -Model (gpt-6.1-sol, gpt-6.1-terra, gpt-6-sol, gpt-6-astra, gpt-6-luna) and
-Effort low|medium|high|xhigh. Use xhigh only for an explicitly heavy lane.
Check the live roster with codex debug models if a model is rejected (the account decides what is available).
Other options: -Cd <dir> working root · -Images a.png,b.png attach images · -Out <file> save final
message (or image path in image mode) · -Schema schema.json force a JSON-shaped final answer ·
-Session <thread-id> continue a previous conversation · -Count N image variants ·
-ImageProfile <role> image role preset from image-profiles.json · -Transparent transparent background.
Subscription only. Codex runs on the user's ChatGPT Pro sign-in. Never set or ask for OPENAI_API_KEY
and never use Codex's image "CLI fallback" (it bills the API). On this path the built-in image tool has
no model/quality/size parameter, so a specific image model (e.g. GPT Image 2.6 Sunburst/Flare) cannot be
selected — say so if asked, and use role profiles + a precise brief instead.
Output contract
The script prints Codex's final message, then machine-readable lines:
CODEX_IMAGE=C:\...\out.png (image mode, one per image)
CODEX_ERROR=... (if any)
CODEX_TOKENS=in:.. out:..
CODEX_THREAD_ID=01a1... (pass to -Session for follow-ups/iterations)
CODEX_STATUS=ok|error (exit code 1 on error)How to brief each lane (this is the quality ceiling)
Long briefs always go in a file (scratchpad), passed with -PromptFile. Never squeeze a detailed brief
into a one-line -Prompt.
gpt-6.1-sol (task/image) — detailed, complete, step by step. Sol does exactly what the brief says, nothing skipped, nothing added. Anything unsaid will not happen. Decide open design questions yourself first; hand it decisions, not dilemmas. Use this skeleton:
# Goal <one paragraph: what and why> # Context <facts it cannot discover: stack, conventions, related files, prior decisions> # Steps 1. <action with exact path/command> — Acceptance: <how to check this step> 2. ... # Edge cases - <case> → <what to do> # Out of scope / do not touch - ... # Deliverable <exact files/format expected; what the final reply must contain>- gpt-6-astra (opinion) — a peer question. Give the problem, the evidence, the options you see and where you are unsure; ask what you may be missing. Do NOT hand it your conclusion to rubber-stamp. Treat the answer as peer review: weigh it, disagree on evidence, tell the user where the models differ.
- gpt-6-luna (bulk) — one exact rule set. State the rules mechanically with 2–3 input → output examples. Split data into batches small enough that a bad batch is cheap to redo; one output file per batch; spot-check samples before merging. Never ask luna to decide what the rules should be.
Fleet (parallel lanes)
For independent pieces, write one brief file per lane with the model stamped in it, then launch each as a
separate background command (run_in_background: true), each with its own -Out file and, for writers,
its own -Cd folder or worktree. Two writing lanes must never share files. Collect results when the
notifications arrive; verify each before merging.
Rules
- A Codex report is a claim. Check the diff, run the tests, open the output file, or look at the image (Read the PNG) before telling the user it is done.
- Default sandbox is read-only. Grant
-Writeonly fortask/bulkand only inside the intended folder. Never use--dangerously-bypass-approvals-and-sandbox. - Do not send secrets, credentials or private data the user has not cleared into a brief — the brief goes to OpenAI.
- Small things (one file, a handful of tool calls) do yourself; a delegation costs more than it saves.
- On
CODEX_STATUS=error: readCODEX_ERROR.model_not_found→ pick another model fromcodex debug models; auth errors → ask the user to runcodex login; never loop retries blindly. - Iterating on the same work → reuse
-Session <thread-id>so Codex keeps its context.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

