Ship stable, tested, secure apps
in weeks with Codex.
A free playbook for OpenAI Codex: short rules for your AGENTS.md, plus a skill with the 16 chapters Codex follows. Your app goes from an empty repo to production and keeps running after launch.
What to put in AGENTS.md for Codex
Keep AGENTS.md short, and about how Codex should work: think before coding, change only what was asked, keep it simple, prove every change with a test. Codex reads it at the start of every run, and by default stops after 32 KiB. So the long rules (stack, tests, security, release) go in a skill that Codex opens when a task needs it.
Home, repo, folder
Codex reads ~/.codex/AGENTS.md for every project, then the one at your repo root, then one per folder down to where you run it. The closest file comes last, so it has the last word.
A size limit
By default Codex stops adding files after 32 KiB. The playbook's 16 chapters come to about 85 KB, more than two and a half times that, so they ship as a skill instead.
Read when a run starts
Codex builds its instructions when a run starts. Changed AGENTS.md? Start Codex again. An AGENTS.override.md in the same folder replaces it.
Source: OpenAI's Codex docs on AGENTS.md, checked 7 Nov 2026. The full guide, with a template: what to put in AGENTS.md.
What the rules tell Codex
They come with the playbook, ready to copy into your AGENTS.md. About 6 KB, roughly a sixth of what Codex reads.
- Follow the playbook. Read its chapter before working in an area, and ask before using tech outside its stack.
- Think before coding. State assumptions, name what's unclear, and ask instead of guessing.
- Keep it simple. The least code that solves the problem, and nothing nobody asked for.
- Change only what's asked. Touch what the task needs, clean up only its own mess.
- Prove it works. Turn every task into a check, such as a test, and loop until it passes.
- You decide. Plain words about money, users and risk, and you make the call.
- Git, always. Every change on a branch and through a pull request, never straight to main.
Set it up in Codex in four steps
In the Codex CLI, the IDE extension or the app; for a new project or one you've already started.
- step 1
Get the playbook
Leave your email below. The link opens right away.
- step 2
Copy the rules into AGENTS.md
At your repo root, or in
~/.codex/AGENTS.mdto use them in every project. - step 3
Hand it to Codex
Paste the one line from the playbook into Codex. It adds the playbook as a skill; type
$mvp-system-designto call it, or let Codex pick it when a task fits. - step 4
Ship to production
Codex builds in the playbook's order, from the first commit to launch.
Codex or Claude Code? Same playbook
The playbook doesn't depend on the agent. Codex reads AGENTS.md and keeps skills in .agents/skills; Claude Code reads CLAUDE.md and keeps them in .claude/skills. The rules and the 16 chapters are the same, so a team can use both. Building with Claude Code? Here's the playbook as a Claude Code skill.
16 chapters, from an empty repo to production
Plain rules: what to build, with what, and in which order.
- 01system design
- 02stack
- 03folders
- 04logs
- 05dev
- 06stage
- 07prod
- 08release
- 09cloud
- 10alerts
- 11tasks
- 12tests
- 13code quality
- 14UI
- 15security
- 16rate limits
- +AGENTS.md rules for Codex
Get the playbook
Free, no catch. You'll get the link as soon as you send the form.
- All 16 chapters, free forever
- Rules for your AGENTS.md, ready for Codex
- Use it on any project, commercial included
Questions
Does Codex read AGENTS.md by itself?
Yes. At the start of every run, Codex reads ~/.codex/AGENTS.md, then the AGENTS.md files from your repo root down to the folder you're in. There's nothing to switch on.
Why not paste the whole playbook into AGENTS.md?
By default Codex stops reading AGENTS.md files after 32 KiB, and the 16 chapters are about 85 KB. The short rules go in AGENTS.md; the chapters stay in the skill, which Codex opens when a task needs it.
Where does Codex keep the skill?
In an .agents/skills folder: inside your repo for one project, or in your home folder for all of them. Type $ in Codex to call a skill by name.
Which model should I use?
The playbook suggests GPT-6.1 Sol at medium effort or higher.
Is it really free?
Yes. Fill in the form on this page and it's yours, under the MIT license. Use it on any project, including commercial ones.
Do I need to be a developer?
No, but you should be comfortable in a terminal and with Codex. Codex does the heavy lifting; the playbook tells it what good looks like.
I've already started my app. Is it too late?
No. Ask Codex to align the project with the playbook. It closes the gaps step by step instead of rewriting everything.
Can you help me apply it?
Yes. In ProCode Extended you apply it to your own app with me and finish with it live in production. Or book a consultation.