agentleFS
AlphaSaleAidanAlphaSaleAidan/pierce-skill-kit/skills/codex/SKILL.md

codex

Skill0 starsChanged 28 days agoMITView on GitHub

Hand a build, refactor, test sweep, or adversarial code review to an OpenAI model through the Codex CLI while Claude keeps the brief, secrets, MCP steps, verification and the report. Use for "/codex", "send this to codex", a substantial build or mechanical grind you want off Claude's usage, or a second-model review of any diff touching payments, email, deploys, DNS or auth.

156 other projects use a version of this.

Adopted by

Most recently taken up by

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-811Skill

    ios-sync

    Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)

    Also in 7 projects that use this

  • dzhngSkill

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

  • dzhngSkill

    implement-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-incSkill

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

  • math-incSkill

    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 6 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 22 projects that use this

  • +1 more from math-inc

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 132 edited versions we read keep these.

  • 3

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Keep a small table of the Codex models you have access to, by job.

    line 12
  2. Very specific:

    Write it as an md file (<repo>/docs/handoff/<slug>.md or your scratchpad).

    line 27
  3. Distinctive:

    Never put API keys, secret-file contents, or customer data in the prompt.

    line 39
  4. Very specific:

    Never --dangerously-bypass-approvals-and-sandbox.

    line 61
  5. Very specific:

    Read codex-last.md, then git -C <repo> diff --stat.

    line 65
  6. Distinctive:

    Never write the marker without a review.

    line 72

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

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

/codex — Claude leads and verifies, a Codex model builds

Usage: /codex <task> · /codex review (adversarial review of the current diff) · /codex fix <failing thing>

0. Pick the model (always pass -m)

Keep a small table of the Codex models you have access to, by job. Example shape (fill in your own model names — they change often):

Job-meffort
Money/auth/email/DNS/deploy review<strongest model>high
Look matters (site, deck, motion), image-to-code, new system<strongest model>medium
Feature in an existing pattern, numbered fix round, refactor, parallel lane<workhorse model>medium
Lint, deps, renames, test sweep, format conversion, log triage<cheap/fast model>low

Unsure → workhorse. The workhorse misses the same symptom twice → strongest. Effort flag: -c model_reasoning_effort=<low|medium|high>.

1. Write the brief (the Codex model has no memory of this session)

Write it as an md file (<repo>/docs/handoff/<slug>.md or your scratchpad); a one-liner for a cheap model can be inline. Self-contained, in this shape:

REPO: <abs path>            BRANCH: <name>        DO NOT COMMIT.
GOAL: <one sentence — what "done" looks like>
CONTEXT: <2–5 lines: what exists, entry points, file paths, how it's run/tested>
CONSTRAINTS: <brand palette / no emoji / keep files <500 lines / don't touch X / match existing style>
DELIVER: <files to create or change> + <how to prove it works: test cmd, screenshot, curl>
REPORT: end with a ≤10-line summary: files touched, how you verified, anything unsure.

Never put API keys, secret-file contents, or customer data in the prompt.

2. Run it

codex exec -m <model> -c model_reasoning_effort=<effort> -C <repo> -s workspace-write \
  --skip-git-repo-check -o <scratchpad>/codex-last.md "$(cat <brief.md>)" < /dev/null
  • < /dev/null is mandatory — without it codex hangs on "Reading additional input from stdin".
  • Long runs: run in the background and read the -o file when it exits; don't poll in a loop.
  • Needs the network (npm install, fetch a URL)? add -c sandbox_workspace_write.network_access=true.
  • Review: use Codex's native reviewer, not a hand-rolled prompt: cd <repo> && codex review -c model=<model> --uncommitted < /dev/null (--base main for a branch). Gotchas: NO -C flag — cd first; --uncommitted/--base CANNOT be combined with a custom prompt — a prompt only works as codex review "<instructions>" on the whole tree.
  • Shared skills: symlink the design/build skills you want Codex to use into ~/.codex/skills/ and name the skill in the brief ("follow the website-build skill") — it loads it itself.
  • MCP servers registered for Codex that need approval (paid generation etc.) are auto-denied under plain codex exec. Use Codex's approval-routing option for those runs instead of -s, and tell the model in the brief that the server IS configured ("list your MCP tools first") — it sometimes claims a server isn't installed.
  • Never --dangerously-bypass-approvals-and-sandbox. Never pkill -f a codex pattern — kill by PID.

3. Verify before reporting (Claude's half)

Read codex-last.md, then git -C <repo> diff --stat. Then actually prove it: run the tests, curl the endpoint, screenshot the element. If the diff touches files outside the brief's scope, say so and offer git checkout -- <file>. Do NOT commit on Codex's behalf.

Optional review gate: for apps where a bad deploy costs money, have a PreToolUse hook refuse the restart/deploy command unless a fresh marker file exists (e.g. /tmp/codex-review-<app> under 90 minutes old), and only touch that marker after /codex review comes back with no high-severity findings. Never write the marker without a review.

Parallel lanes: independent components → separate codex exec runs in the background (distinct -o files and slugs). Claude does MCP/verification work while they run; never wait idle.

4. Report in ≤5 lines, then log the lesson

What changed, how it was verified, anything Codex flagged, what's left for the human. Append ONE line to a playbook notes file (date · task · what worked/failed · the brief or flag change that fixes it) and read it before writing the next brief.

When NOT to use

Design direction and taste calls, anything that needs Claude's own MCP tools, anything that reads secrets, and any outbound send (email, messages, posts) — those stay with Claude and the human.

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.