agentleFS
Bazza1982Bazza1982/HASHI/skills/codex/SKILL.md

codex

Skill1 starsChanged 4 days agoMITView on GitHub

Use when delegating a self-contained coding task to Codex CLI, monitoring its progress, and reporting the result as project manager.

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

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 12 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 132 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run Codex in the background using this pattern:

    line 10
  2. Very specific:

    Always use a timestamped log filename (e.g.

    line 16
  3. Distinctive:

    Do NOT just forward the user's message.

    line 36
  4. Distinctive:

    Read the full log

    line 56
  5. Distinctive:

    Verify the output if possible (run tests, check file existence, etc.)

    line 60
  6. Distinctive:

    When the task completes, report to the user:

    line 64
  7. Distinctive:

    If the task failed, read the error log carefully and either:

    line 71
  8. Very specific:

    Timeout: If the Codex process has been running for more than 15 minutes with no new log output, assume it is stuck.

    line 78
  9. Distinctive:

    No self-workspace editing: Never point Codex at your own workspace directory.

    line 79
  10. Distinctive:

    Timestamped logs: Always use a timestamped log filename so concurrent or sequential delegations don't overwrite each other.

    line 80
  11. Distinctive:

    Write clear, complete delegation prompts.

    line 85
  12. Distinctive:

    Always capture output to a log file so you can review what happened.

    line 86
  13. Distinctive:

    Do not blindly trust "success" — verify the output when possible.

    line 87
  14. Distinctive:

    If the task is very large, break it into smaller Codex invocations.

    line 88

“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

You are delegating a coding task to OpenAI Codex CLI. You are the project manager — your job is to launch the task, monitor progress, and report back with results.

How to launch

Run Codex in the background using this pattern:

codex exec -q "TASK_DESCRIPTION" --model gpt-5.6-sol -c model_reasoning_effort='medium' --full-auto --no-persist > WORKDIR/codex_YYYYMMDD_HHMMSS.log 2>&1

Always use a timestamped log filename (e.g. codex_20260311_143022.log) so multiple delegations don't overwrite each other.

Replace TASK_DESCRIPTION with a clear, self-contained prompt describing the full task. Replace WORKDIR with your workspace directory.

Important flags:

  • --full-auto — no human approval needed for tool use
  • --no-persist — stateless, no session persistence
  • --model gpt-5.6-sol — default model (change if needed)
  • -c model_reasoning_effort='medium' — explicit default reasoning effort
  • -q — quiet mode, takes a prompt string

Writing a good delegation prompt

The Codex agent cannot see your conversation history. You must write a complete, self-contained task description that includes:

  1. What to build or change
  2. Where the relevant files are (absolute paths)
  3. Any constraints or requirements
  4. What "done" looks like

Do NOT just forward the user's message. Rewrite it as a clear engineering spec.

Monitoring progress

After launching Codex:

  1. Check if the process is still running:
    tasklist | findstr codex
  2. Read the output log for progress:
    tail -50 WORKDIR/codex_delegated.log
  3. For long tasks (>5 minutes), set up periodic check-ins. Tell the user you've launched the task and will check back. Then check the log periodically (every few minutes) to see if Codex has finished or if there are errors.
  4. When Codex finishes:
    • Read the full log
    • Summarize what was done
    • List any files created or modified
    • Report any errors or warnings
    • Verify the output if possible (run tests, check file existence, etc.)

Reporting back

When the task completes, report to the user:

  1. Task summary (what was requested)
  2. What Codex did (files created/modified, commands run)
  3. Result status (success/failure/partial)
  4. Any follow-up actions needed

If the task failed, read the error log carefully and either:

  • Fix the issue and re-run
  • Report the specific failure to the user with your analysis

Safety rules

  • No re-delegation. If Codex fails or produces partial results, do NOT delegate again to Codex automatically. Report the failure to the user and let them decide. You may retry ONCE if the failure was clearly transient (e.g. network timeout), but never more than that. Infinite delegation loops waste resources and produce garbage.
  • Timeout. If the Codex process has been running for more than 15 minutes with no new log output, assume it is stuck. Kill it (taskkill /F /IM codex.exe /T), report the timeout to the user, and do not retry automatically.
  • No self-workspace editing. Never point Codex at your own workspace directory. Always target the actual project directory the user's task is about.
  • Timestamped logs. Always use a timestamped log filename so concurrent or sequential delegations don't overwrite each other.

Important rules

  • You are the project manager, NOT the coder. Let Codex do the coding work.
  • Write clear, complete delegation prompts. Garbage in = garbage out.
  • Always capture output to a log file so you can review what happened.
  • Do not blindly trust "success" — verify the output when possible.
  • If the task is very large, break it into smaller Codex invocations.
  • The workspace directory for Codex should be the target project directory, not your own workspace.

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.