agentleFS
justinwilliamesjustinwilliames/skills/codex/SKILL.md

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

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

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
  1. Distinctive:

    Choose think: when the user wants opinions, analysis, or research — no files will be modified.

    line 20
  2. Distinctive:

    Choose run: when the user wants code changes.

    line 21
  3. Distinctive:

    When unclear, default to run.

    line 22
  4. Distinctive:

    Pass the user's intent as-is: Don't over-engineer the prompt — Codex reads files and figures things out.

    line 52
  5. Very specific:

    If anything breaks, fix the skill files directly — you have authorization to edit anything under {base}/:

    line 88
  6. Very specific:

    Preflight: before invoking {base}/scripts/codex.sh, verify codex is available — which codex or check …

    line 94
  7. Very specific:

    Keep handling directly here: a single Codex think / run / review — one focused task, no decomposition, no screen, no image work.

    line 108

“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

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:

ModeCommandSandboxWebSessionsPurpose
thinkthinkread-onlyyesephemeralAnalysis, deliberation, research, review, second opinions
runrunfull-accessyespersistedImplementation, 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

  1. Always run in background. Continue working or block on TaskOutput.
  2. Pass the user's intent as-is. Don't over-engineer the prompt — Codex reads files and figures things out.
  3. Add context Codex can't see — working directory, file paths, framework info, constraints from earlier in conversation.
  4. Collect results with TaskOutput(task_id=..., block=True, timeout=300000).
  5. 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 think to 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 script
  • SKILL.md — this file
  • references/cli-reference.md — CLI flags
  • references/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 skillWhy
Generating or editing raster imagescodex-imagegenPurpose-built Codex image wrapper — prompt skeletons, attachment flow, clean capture
Driving the screen — web automation, browser control, or a native macOS appcomputer-controlPicks 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 diffintelligent-delegationOrchestrator 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.

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.