codex
Skill1 starsChanged 5 months agoMITView on GitHub
Delegate tasks to OpenAI Codex (GPT-5.6 Sol) as background tasks for precision coding, code review, deliberation, and complex implementation. Always launch in background (run_in_background=true), continue working, then collect results with TaskOutput when needed.
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.
In this repository28 other files it gives its agents.
- advanced-prd-writerSkill
- calendar-reviewSkill
- challenge-before-buildSkill
- claude-build-hardeningSkill
- claude-memorySkill
- claude-product-demo-videoSkill
- codex-imagegenSkill
- coding-craftSkill
- computer-controlSkill
- context-disciplineSkill
- disk-cleanupSkill
- image-generation-craftSkill
- infinite-working-skillSkill
- intelligent-delegationSkill
- linkedin-post-writerSkill
- okr-structuringSkill
- operator-standardSkill
- posthog-design-customizationSkill
- self-performance-reviewSkill
- session-namerSkill
- session-recallSkill
- skill-hardeningSkill
- slack-statusSkill
- slack-writerSkill
- subagent-briefSkill
- testing-standardsSkill
- verification-gatesSkill
- writing-craftSkill
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 132 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 20
Choose think: when the user wants opinions, analysis, or research — no files will be modified.
- Distinctive: line 21
Choose run: when the user wants code changes.
- Distinctive: line 22
When unclear, default to run.
- Distinctive: line 52
Pass the user's intent as-is: Don't over-engineer the prompt — Codex reads files and figures things out.
- Very specific: line 88
If anything breaks, fix the skill files directly — you have authorization to edit anything under {base}/:
- Very specific: line 94
Preflight: before invoking {base}/scripts/codex.sh, verify codex is available — which codex or check …
- Very specific: line 108
Keep handling directly here: a single Codex think / run / review — one focused task, no decomposition, no screen, no image work.
“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
Paths below use
{base}as shorthand for this skill's base directory, provided automatically at the top of the prompt when the skill loads.
Codex is GPT-5.6 Sol — a different model with a different reasoning manifold than Claude. It catches things you miss, thinks about problems differently, and arrives at solutions from a different angle. Use it as a genuine second brain, not just a subprocess. Its opinions, reviews, and implementations carry independent signal — when Codex disagrees with your approach, that disagreement is valuable.
Two modes of operation:
| Mode | Command | Sandbox | Web | Sessions | Purpose |
| think | think | read-only | yes | ephemeral | Analysis, deliberation, research, review, second opinions |
| run | run | full-access | yes | persisted | Implementation, coding, refactoring, bug fixes |
Choose think when the user wants opinions, analysis, or research — no files will be modified. Choose run when the user wants code changes. When unclear, default to run.
Usage
# Think (read-only + web search)
{base}/scripts/codex.sh think "prompt" --dir /path/to/project
{base}/scripts/codex.sh think "prompt" --image screenshot.png --dir /project
# Run (full-access + web search)
{base}/scripts/codex.sh run "prompt" --dir /path/to/project
{base}/scripts/codex.sh run "prompt" --image mockup.png --dir /project
{base}/scripts/codex.sh run "prompt" --schema schema.json --dir /project
{base}/scripts/codex.sh run "prompt" --add-dir /other/path --dir /project
# Review (read-only, specialized)
{base}/scripts/codex.sh review --base main "Focus on security"
{base}/scripts/codex.sh review --commit abc123
{base}/scripts/codex.sh review --uncommitted
# Resume a previous run session
{base}/scripts/codex.sh resume --last "follow-up instruction"
{base}/scripts/codex.sh resume --session <SESSION_ID> "follow-up"Flags: --dir, --model, --effort, --sandbox, --image, --ephemeral, --schema, --add-dir
How to Invoke
- Always run in background. Continue working or block on
TaskOutput. - Pass the user's intent as-is. Don't over-engineer the prompt — Codex reads files and figures things out.
- Add context Codex can't see — working directory, file paths, framework info, constraints from earlier in conversation.
- Collect results with
TaskOutput(task_id=..., block=True, timeout=300000). - After run mode, check
git status— Codex may have modified files.
Bash(command='{base}/scripts/codex.sh think "Is this auth design scalable?" --dir /project',
run_in_background=True)
# → task_id
TaskOutput(task_id="...", block=True, timeout=300000)
# → SESSION: <uuid>\n---\n<response>For complex tasks, add structure (see references/prompt-engineering.md for templates). For simple asks, just describe what you need.
When Codex Shines
- Second opinion — its different training means it spots different bugs, suggests different patterns, and flags things you'd overlook
- Adversarial review — use
thinkto challenge your own implementation. A different model questioning your code is more valuable than self-review - Parallel expertise — while you work on feature A, Codex implements feature B or researches approach C
- Deep reasoning tasks — xhigh effort on complex algorithms, security analysis, architecture decisions
When NOT to Use Codex
- Simple edits, typos, trivial changes — do them yourself
- Multi-file orchestration — you coordinate better across many files
- Conversational responses or explanations
- Tasks requiring mid-execution user interaction
Parallelism
Launch multiple Codex tasks at once. Peek without blocking: TaskOutput(task_id=..., block=False, timeout=0).
Self-Healing
If anything breaks, fix the skill files directly — you have authorization to edit anything under {base}/:
scripts/codex.sh— wrapper scriptSKILL.md— this filereferences/cli-reference.md— CLI flagsreferences/prompt-engineering.md— prompt templates
Preflight: before invoking {base}/scripts/codex.sh, verify codex is available — which codex or check /Applications/Codex.app/Contents/Resources/codex. If neither is found, stop and tell the user to install Codex CLI before continuing.
TaskOutput timeout escalation: the default collect call uses timeout=300000 (300s). If TaskOutput returns a timeout error, check {base}/scripts/codex.sh's last output file or session log for partial output and surface what's there. If no partial output is available, retry once with timeout=600000 (600s). If that also times out, report the failure and let the user decide whether to resume via codex.sh resume --last.
Companion skills — route here instead when the task fits
This skill delegates single-focus work to Codex (one coding task, one review, one deliberation). Three shapes of work are better served by a purpose-built sibling skill — hand off rather than driving raw Codex yourself:
| If the task is… | Route to skill | Why |
| Generating or editing raster images | codex-imagegen | Purpose-built Codex image wrapper — prompt skeletons, attachment flow, clean capture |
| Driving the screen — web automation, browser control, or a native macOS app | computer-control | Picks the right engine between Claude-in-Chrome and Codex Computer Use |
| A large multi-part build needing decomposition, parallel fan-out, QA, and a unified diff | intelligent-delegation | Orchestrator that fans work across Sonnet/Haiku/Codex and runs the QA gate (it calls this skill as one of its runners) |
Keep handling directly here: a single Codex think / run / review — one focused task, no decomposition, no screen, no image work.
These siblings are separate skills and must be installed to be available — see README → Companion skills for the one-line install of each.
Sync homes
Canonical: ~/.claude/skills/codex (private, live). Public sanitized twin: ~/code/skills/codex → github.com/justinwilliames/skills. Sanitization is a sync step — never push private paths/names.
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.

