codex
Skill2 starsChanged 2 months agoMITView on GitHub
Delegate coding work to the OpenAI Codex CLI (`codex exec`, non-interactive). Use this whenever the user says "codex", "codex se karwa", "spawn codex", "delegate to codex", asks you to "make codex build/fix/scaffold X", wants to change the codex model or reasoning effort, or wants a large build/scaffold/refactor task offloaded to another coding agent while you orchestrate. Also use it for a second opinion on a diff via `codex exec review`, and when the user has previously said coding should go through codex and a new implementation task comes up.
156 other projects use a version of this.
Adopted by
Most recently taken up by
- openamer-max/max-scriptstheir own version, first seen Nov 29, 2026
- Ertinox7711/SGRR-AGI-V2their own version, first seen Nov 29, 2026
- aakash1552005/universal-agent-skillstheir own version, first seen Nov 29, 2026
- mphaxise/gstack-port-for-codextheir own version, first seen Nov 29, 2026
- Dannykkh/skill-olympustheir own version, first seen Nov 29, 2026
- tenaya-ui/claude-skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use ios-sync, audit-decisions 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 7 projects that use this
dzhngSkillaudit-decisions
Audit the decisions an implementing agent made, not its diff — a pure audit that traces the session's history into a decisions ledger, changes no code, and never blocks an unsupervised run. Working code still embeds architecture the user never chose; surface it because future work inherits it. Use when the user wants to review the decisions the AI made on their behalf, before merging or committing AI-implemented work, when integrating a delegated subagent's pass, or when a fix "works" but might be a point fix.
Also in 4 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
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 6 projects that use this
math-incSkillpokemon-player
Play Pokemon games autonomously via headless emulation. Starts a game server, reads structured game state from RAM, makes strategic decisions, and sends button inputs — all from the terminal.
Also in 6 projects that use this
ayudaySkillsetup-deploy
Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".
Also in 22 projects that use this
- +1 more from math-inc
Other versions156 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 156
- NousResearch/hermes-agent★ 267ksame name
- garrytan/gstack★ 143ksame 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
- math-inc/OpenGauss★ 1.3ksame name
146 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.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 132 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 83
Keep decisions *made*, not open — codex cannot ask you questions in exec mode, it will guess.
- Distinctive: line 108
If codex stops early or its quota dies mid-task, finish the remaining items yourself — don't leave the user with a half-built tree.
“Common” is measured: kept by at least 6 in 10 of the 132 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 — delegating coding tasks to the Codex CLI
codex exec runs one autonomous coding turn in a workspace and exits. You stay the
orchestrator: you write the spec, spawn codex, verify its output (build/tests/diff), and
fix or re-prompt. Codex does the bulk of the typing.
The command
codex exec "$(cat "<task-file>")" \
--cd "<absolute-project-dir>" \
--sandbox workspace-write \
--dangerously-bypass-approvals-and-sandbox \
--model gpt-5.6-terra \
-o "<last-message-file>"Or use the bundled runner, which does the same thing with less quoting risk:
bash ~/.claude/skills/codex/scripts/run_codex.sh <task-file> <project-dir> [model] [effort]Why each flag matters:
exec— non-interactive. Plaincodexopens a TUI and hangs your shell."$(cat task-file)"— put the prompt in a file, never inline. Multi-line prompts with backticks,$, quotes or heredocs break bash quoting (unexpected EOF) and PowerShell mangles them worse. Write the file with the Write tool, thencatit. (codex exec -reads the prompt from stdin, which also works:codex exec - < task.md.)--cd— the working root. Codex creates files relative to this dir, so point it at the exact repo you want changed.--sandbox workspace-write— lets it edit files in the workspace but not the wider machine.read-onlyfor review/analysis tasks;danger-full-accessonly when it must touch things outside the repo.--dangerously-bypass-approvals-and-sandbox— no approval prompts (nobody can answer them in a background run). Confirm with the user the first time in a session; after that it is implied. Prefer--approve-for-mewhen you want the sandbox kept on.--model/-c model_reasoning_effort=…— pick explicitly (see below). Ask the user only if they have not stated a preference; otherwise reuse the last one they named.-o <file>— writes the agent's final message to a file. Handy when stdout is long: read that file instead of scrolling the log.--json— JSONL event stream, if you need to parse progress programmatically.--skip-git-repo-check— only when the target is not a git repo.- Long runs: launch with the Bash tool's
run_in_background: true(ornohup … &) and poll the log, so you are not blocked. There is no built-in timeout flag — use the Bash tool'stimeoutor wrap intimeout 50m.
Models
~/.codex/config.toml holds the default (currently gpt-5.6-terra, effort medium).
Override per run:
| what | how |
| different model | --model <id> |
| more/less thinking | -c model_reasoning_effort=high (minimal/low/medium/high) |
| local/OSS model | --oss --local-provider ollama |
Raise effort for design-heavy or algorithmic work; leave it at medium for mechanical edits. If a run dies on quota or rate limits, switch model rather than retrying the same one, and tell the user what you switched to.
Writing the task file
Codex starts cold — it has none of your conversation context. The task file is its entire brief, so write it like a handoff to a competent contractor who has never seen the repo:
- Where — absolute working dir on the first line (
You are working in C:/…/project). - Read first — exact paths of spec, existing code and conventions it must match.
- Deliver — numbered list of files/features with concrete acceptance criteria
(
npm run buildandnpm testmust pass; function signatures stay identical; etc.). - Don't — what is not its job (e.g. "do not connect to any database"; "do not install X"; "do not touch app/api/**").
- Finish — "End with a concise summary: files written, build/test results, anything
you were unsure about." That summary is what lands in
-oand on stdout; it is your only view into the run besides the diff.
Keep decisions made, not open — codex cannot ask you questions in exec mode, it will
guess. See references/task-template.md for a fill-in template.
Reviewing instead of building
codex exec review --cd "<project-dir>" --sandbox read-only "Review the uncommitted diff for correctness bugs."Useful as a second opinion on a diff you or another agent wrote. Read-only: it reports, it does not edit.
After the run — always verify
Codex reports success optimistically. Before telling the user it is done:
git status --short # what it actually touched
npm run build && npm test # or the project's equivalentTypical leftovers to fix yourself (faster than a re-prompt): unused imports, stubbed
helpers left as TODO, a file written to the wrong folder, tests it "fixed" by weakening.
Re-prompt codex (new task file, or codex exec resume --last "…" to continue with its
context) only for substantial gaps.
If codex stops early or its quota dies mid-task, finish the remaining items yourself — don't leave the user with a half-built tree.
Other modes
codex exec resume --last "<follow-up>"— continue the previous session with context.codex exec fork --last "…"— branch off a session without disturbing it.codex exec --worktree …— run in a managed git worktree, so the main tree stays clean.codex apply— apply the last agent-produced diff to the working tree.codex -i <image> …— attach screenshots (e.g. a broken UI) to the prompt.
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.

