agentleFS
DannykkhDannykkh/skill-olympus/skills/codex/SKILL.md

codex

Skill9 starsChanged 3 months agoMITView on GitHub

Use when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing. Uses GPT-5.5 by default for state-of-the-art software engineering.

  • Installs packages

156 other projects use a version of this, 12 of them edited.

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

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

  • 0

    Common

    Most of the 132 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Default to gpt-5.5 model. Ask the user in the normal conversation which reasoning effort to use (xhigh, high, medium, or low).

    line 9
  2. Distinctive:

    Run the command, capture stdout/stderr (filtered as appropriate), and summarize the outcome for the user.

    line 22
  3. Very specific:

    Selection guide: Start with gpt-5.5 for most tasks.

    line 45
  4. Very specific:

    After every codex command, ask in the normal conversation when confirmation, clarification, or a resume decision is actually needed.

    line 58
  5. Very specific:

    When resuming, pipe the new prompt via stdin: echo "new prompt" | codex exec resume --last 2>/dev/null.

    line 59
  6. Very specific:

    Stop and report failures whenever codex --version or a codex exec command exits non-zero.

    line 63
  7. Very specific:

    Before you use high-impact flags (--sandbox danger-full-access, --skip-git-repo-check), ask the user in the normal conversation unless …

    line 64
  8. Distinctive:

    When output includes warnings or partial results, summarize them and ask in the normal conversation how to adjust.

    line 65

“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 Skill Guide

Running a Task

  1. Default to gpt-5.5 model. Ask the user in the normal conversation which reasoning effort to use (xhigh, high, medium, or low). User can override model if needed (see Model Options below). If gpt-5.5 is unavailable in your environment, fall back to gpt-5.4.
  2. Select the sandbox mode required for the task; default to --sandbox read-only unless edits or network access are necessary.
  3. Assemble the command with the appropriate options:
    • -m, --model <MODEL>
    • --config model_reasoning_effort="<high|medium|low>"
    • --sandbox <read-only|workspace-write|danger-full-access>
    • -a never before exec for non-interactive runs
    • --output-last-message <FILE> when a clean final response file is needed
    • -C, --cd <DIR>
    • --skip-git-repo-check
  4. Always use --skip-git-repo-check.
  5. When continuing a previous session, use codex exec --skip-git-repo-check resume --last via stdin. When resuming don't use any configuration flags unless explicitly requested by the user e.g. if he species the model or the reasoning effort when requesting to resume a session. Resume syntax: echo "your prompt here" | codex exec --skip-git-repo-check resume --last 2>/dev/null. All flags have to be inserted between exec and resume.
  6. IMPORTANT: By default, append 2>/dev/null to all codex exec commands to suppress thinking tokens (stderr). Only show stderr if the user explicitly requests to see thinking tokens or if debugging is needed.
  7. Run the command, capture stdout/stderr (filtered as appropriate), and summarize the outcome for the user.
  8. After Codex completes, inform the user: "You can resume this Codex session at any time by saying 'codex resume' or asking me to continue with additional analysis or changes."

Quick Reference

Use caseSandbox modeKey flags
Non-blocking automated review or analysisworkspace-writecodex -a never exec --sandbox workspace-write --output-last-message <file>
Read-only review or analysisread-onlycodex -a never exec --sandbox read-only --output-last-message <file>
Apply local editsworkspace-writecodex -a never exec --sandbox workspace-write
Permit network or broad accessdanger-full-accesscodex -a never exec --sandbox danger-full-access
Resume recent sessionInherited from originalecho "prompt" | codex exec --skip-git-repo-check resume --last 2>/dev/null (no flags allowed)
Run from another directoryMatch task needs-C <DIR> plus other flags 2>/dev/null

Model Options

ModelBest forNotes
gpt-5.5 ⭐Newest frontier (default): Complex coding, computer use, knowledge work, research workflowsLatest flagship. Available via ChatGPT sign-in and API auth (since 2026-04). Recommended starting point.
gpt-5.4Flagship alternative for professional workAvailable across all Codex platforms. Use as fallback when gpt-5.5 is not in the picker.
gpt-5.4-miniFast, efficient mini model for responsive coding tasks and subagentsLower-cost option for lighter workloads, sub-agents, cleanup tasks.
gpt-5.3-codexIndustry-leading coding model for complex software engineeringPowers GPT-5.4's coding abilities. Use when coding-specific quality is paramount.
gpt-5.3-codex-sparkReal-time coding iteration (text-only research preview)ChatGPT Pro subscribers only. Optimized for near-instant coding iteration.

Selection guide: Start with gpt-5.5 for most tasks. Drop to gpt-5.4 when 5.5 isn't available. Use gpt-5.3-codex when you need maximum coding quality without 5.5 reasoning overhead. Use gpt-5.4-mini for sub-agents and cleanup workloads.

Verify exact context window / pricing on the official model card — values may shift as preview/stable status changes.

Reasoning Effort Levels:

  • xhigh - Ultra-complex tasks (deep problem analysis, complex reasoning, deep understanding of the problem)
  • high - Complex tasks (refactoring, architecture, security analysis, performance optimization)
  • medium - Standard tasks (refactoring, code organization, feature additions, bug fixes)
  • low - Simple tasks (quick fixes, simple changes, code formatting, documentation)

Cached Input Discount: Repeated context is heavily discounted with cache lasting up to 24 hours. Verify current rates on the official OpenAI pricing page.

Following Up

  • After every codex command, ask in the normal conversation when confirmation, clarification, or a resume decision is actually needed.
  • When resuming, pipe the new prompt via stdin: echo "new prompt" | codex exec resume --last 2>/dev/null. The resumed session automatically uses the same model, reasoning effort, and sandbox mode from the original session.
  • Restate the chosen model, reasoning effort, and sandbox mode when proposing follow-up actions.

Error Handling

  • Stop and report failures whenever codex --version or a codex exec command exits non-zero; request direction before retrying.
  • Before you use high-impact flags (--sandbox danger-full-access, --skip-git-repo-check), ask the user in the normal conversation unless permission was already given.
  • When output includes warnings or partial results, summarize them and ask in the normal conversation how to adjust.

CLI Version

Requires a recent Codex CLI version for GPT-5.5 model support. Check version: codex --version and update with npm install -g @openai/codex@latest if needed. Use /model slash command within a session to switch, or set default in ~/.codex/config.toml.

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.