agentleFS
shauryaaojhashauryaaojha/claude-code-delegate/skills/codex/SKILL.md

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.

79 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use minecraft-modpack-server, pokemon-player 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.
  • braxtonROSE4Skill

    minecraft-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

  • braxtonROSE4Skill

    pokemon-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 5 projects that use this

  • kevinnftSkill

    touchdesigner-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

  • john-data-chenSkill

    teams-meeting-pipeline

    Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.

    Also in 8 projects that use this

  • ayudaySkill

    setup-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 9 projects that use this

  • bergsideSkill

    sketch

    A friendly, hand-drawn sketch interface inspired by pencil illustrations on warm cream paper. Soft teal brand accents, hand-written display headings, rounded pill controls.

    Also in 9 projects that use this

  • +6 more from braxtonROSE4
  • Other versions79 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 79

    1. NousResearch/hermes-agent★ 267ksame name
    2. garrytan/gstack★ 143ksame name
    3. bergside/awesome-design-skills★ 3.1ksame name
    4. softaworks/agent-toolkit★ 2.5ksame name
    5. dzhng/jevgrep★ 2.3ksame name
    6. dzhng/skills★ 978same name
    7. bear2u/my-skills★ 931same name
    8. taracodlabs/aiden★ 846same name
    9. notque/vexjoy-agent★ 424same name
    10. glebis/claude-skills★ 387same name

    69 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 repository2 other files it gives its agents.

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 66 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
  1. Very specific:

    Keep decisions *made*, not open — codex cannot ask you questions in exec mode, it will guess.

    line 83
  2. Distinctive:

    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.

    line 108

“Common” is measured: kept by at least 6 in 10 of the 66 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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. Plain codex opens 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, then cat it. (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-only for review/analysis tasks; danger-full-access only 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-me when 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 (or nohup … &) and poll the log, so you are not blocked. There is no built-in timeout flag — use the Bash tool's timeout or wrap in timeout 50m.

Models

~/.codex/config.toml holds the default (currently gpt-5.6-terra, effort medium). Override per run:

whathow
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:

  1. Where — absolute working dir on the first line (You are working in C:/…/project).
  2. Read first — exact paths of spec, existing code and conventions it must match.
  3. Deliver — numbered list of files/features with concrete acceptance criteria (npm run build and npm test must pass; function signatures stay identical; etc.).
  4. Don't — what is not its job (e.g. "do not connect to any database"; "do not install X"; "do not touch app/api/**").
  5. Finish — "End with a concise summary: files written, build/test results, anything you were unsure about." That summary is what lands in -o and 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 equivalent

Typical 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.