coding-agent-playbook-codex
AGENTS.md3 starsChanged 3 months agoMITView on GitHub
This repository is a public playbook for Codex custom instructions, reference documents, skills, and custom subagent definitions. Follow the host's instruction hierarchy first. Within the same authority level, apply repository-specific guidance where it is more specific than global guidance. This repo is mostly Markdown and TOML. Before finalizing meaningful changes:
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository33 other files it gives its agents.
- aws-local-preflightSkill
- design-taste-frontendSkill
- feature-branch-lifecycleSkill
- handoffSkill
- humanizerSkill
- impeccableSkill
- legacy-path-retirementSkill
- local-ci-preflightSkill
- multi-role-repo-reviewSkill
- multi-session-coordinationSkill
- platform-documentationSkill
- production-api-integrationSkill
- production-architecture-reviewSkill
- production-code-qualitySkill
- production-database-integritySkill
- production-devops-releaseSkill
- production-documentation-onboardingSkill
- production-pass-orchestratorSkill
- production-performance-reviewSkill
- production-readiness-reportSkill
- production-reliability-observabilitySkill
- production-security-reviewSkill
- production-testing-qaSkill
- production-ux-accessibilitySkill
- reference-doc-routingSkill
- senior-code-reviewSkill
- session-cleanupSkill
- subagent-orchestrationSkill
- task-graph-orchestrationSkill
- taste-new-websiteSkill
- taste-redesign-websiteSkill
- technical-debt-auditorSkill
- worktree-lifecycleSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
20 rules. About 0 are common, 19 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Follow the host's instruction hierarchy first.
- Distinctive: line 9
Keep the playbook useful for many teams and codebases.
- Distinctive: line 10
Keep global guidance tool-agnostic and durable.
- Distinctive: line 11
Keep repository-specific, machine-specific, and workflow-specific details out of global instructions.
- Distinctive: line 12
Prefer concise, practical guidance over long theory.
- Very specific: line 14
Keep the Codex subagent model aligned around planner, engineer, reviewer, tester, and docs.
- Distinctive: line 15
Use subagents sparingly, only when their concrete benefit justifies context, coordination, and review costs or an independent-assistance …
- Distinctive: line 17
Keep the default delegation structure flat: root assigns bounded work directly, and bundled helpers do not spawn descendants.
- Distinctive: line 19
Keep one profile per bundled role under its standard name.
- Distinctive: line 24
Do not include sensitive access material, private local paths, internal-only URLs, full thread transcripts, or long incident logs.
- Distinctive: line 25
Do not hardcode project names, organization-specific workflows, or local machine quirks in global guidance.
- Distinctive: line 26
Do not add instructions tied to a specific issue tracker, review tool, package manager, shell, or hosting provider unless the file is …
- Distinctive: line 27
Use Codex terminology, paths, TOML agent schemas, model identifiers, reasoning-effort fields, and thread concepts in Codex-specific files.
- Distinctive: line 28
Do not copy configuration paths, file names, agent formats, model identifiers, or command vocabulary from another coding-agent environment …
- Distinctive: line 29
Prefer terms like "safety", "access control", and "sensitive access material" when public documentation does not need product-specific …
- Distinctive: line 30
Keep templates reusable and clearly marked as templates.
- Distinctive: line 31
Use STE-inspired clarity for instructions: direct actions, explicit actors and conditions, and consistent terms.
- Distinctive: line 32
Treat the companion Claude Code playbook as independently maintained.
- Distinctive: line 55
Keep Codex policy internally consistent and document Codex-specific capability assumptions where they affect behavior.
- Distinctive: line 56
Search the final diff for paths, schemas, model names, and commands that belong to another coding-agent environment.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repository Coding Agent Instructions
This repository is a public playbook for Codex custom instructions, reference documents, skills, and custom subagent definitions.
Follow the host's instruction hierarchy first. Within the same authority level, apply repository-specific guidance where it is more specific than global guidance.
Repository Goals
- Keep the playbook useful for many teams and codebases.
- Keep global guidance tool-agnostic and durable.
- Keep repository-specific, machine-specific, and workflow-specific details out of global instructions.
- Prefer concise, practical guidance over long theory.
- Make the main agent accountable for planning, any delegation it chooses, validation, and final reporting.
- Keep the Codex subagent model aligned around
planner,engineer,reviewer,tester, anddocs. - Use subagents sparingly, only when their concrete benefit justifies context, coordination, and review costs or an independent-assistance requirement applies.
- Give every bundled profile an explicit approved model and reasoning default. Select actual delegated routes by task: GPT-6.1 Sol at Light, Medium, or High, or GPT-6 Astra at Extra High. Light uses
lowin configuration. Preserve the main agent's user-selected configuration. - Keep the default delegation structure flat: root assigns bounded work directly, and bundled helpers do not spawn descendants.
- Subagent progress and result messages must preserve parent and peer settings; never attach worker model or reasoning overrides to reports.
- Keep one profile per bundled role under its standard name. Defaults do not replace task-based selection, and profile precedence must not silently override the chosen route.
- Separate reusable role perspectives from delegated-execution rules. Direct main-agent use preserves its configuration, authority, and ownership and does not count as independent verification.
Content Rules
- Do not include sensitive access material, private local paths, internal-only URLs, full thread transcripts, or long incident logs.
- Do not hardcode project names, organization-specific workflows, or local machine quirks in global guidance.
- Do not add instructions tied to a specific issue tracker, review tool, package manager, shell, or hosting provider unless the file is explicitly an example or template.
- Use Codex terminology, paths, TOML agent schemas, model identifiers, reasoning-effort fields, and thread concepts in Codex-specific files.
- Do not copy configuration paths, file names, agent formats, model identifiers, or command vocabulary from another coding-agent environment into this repository.
- Prefer terms like "safety", "access control", and "sensitive access material" when public documentation does not need product-specific terminology.
- Keep templates reusable and clearly marked as templates.
- Use STE-inspired clarity for instructions: direct actions, explicit actors and conditions, and consistent terms. Preserve technical identifiers, approval gates, exceptions, and required evidence. This is an authoring approach, not a claim of ASD-STE100 compliance.
- Treat the companion Claude Code playbook as independently maintained. Do not edit it from this repository or claim current parity without separately verified evidence.
Validation
This repo is mostly Markdown and TOML. Before finalizing meaningful changes:
- Review Markdown headings and fenced code blocks for correctness.
- Confirm TOML files are syntactically valid when a TOML parser is available.
- Confirm every
agents/*.tomlfile explicitly definesmodelandmodel_reasoning_effort. - Confirm each of the five bundled roles has one profile under its standard name, with an explicit model/effort pair from the approved task-routing table.
- Confirm profiles retain clear scope and stop conditions; helpers report route issues, and only the main agent may reassign within approved routes and execution authority.
- Confirm helper-specific scope, escalation, reporting, and launch settings apply only to delegated execution; direct role use adds no mandatory sequence or separate reports.
- Confirm reporting guidance uses team messages or normal returns and omits destination-setting overrides from any separately authorized task report.
- Confirm each
SKILL.mdhas YAML frontmatter withnameanddescription. - Confirm
local-ci-preflightretains its self-contained templates and default global route, preserves project and remote acceptance boundaries, and treats unconfigured or skipped required checks as gaps rather than passes. Retire an exact superseded standalone route only after canonical installation and source parity are verified; preserve customized or ambiguous blocks. - Confirm links and paths in
README.mdmatch the repository tree. - Confirm install docs and scripts reference the current Codex agent files; installed-profile validation checks the current managed profiles without imposing playbook routing on unrelated user agents.
- Confirm the Python installer and thin PowerShell/Bash launchers default normal installs and updates to full mode, create a marked global section on first install, maintain the managed-file manifest, retire only unchanged formerly managed files, and preserve customized or unrelated files.
- Confirm installer validation covers
skills/worktree-lifecycle/references/worktrees.md,skills/worktree-lifecycle/references/templates/worktree-manifest.md, and every skill-local resource path. - Confirm the feature-branch lifecycle remains a self-contained skill, detects repository-specific branch names, preserves approval gates for remote deletion and production promotion, and is not conflated with worktree lifecycle.
- Confirm legacy-path retirement requires dependency evidence or explicit retention requirements, separates code retirement from data disposal, preserves correctness safeguards, and does not treat uncertain dependency coverage as permission to remove behavior.
- Confirm design guidance reviews the whole affected flow, improves existing implementations by default, and requires evidence of significant benefit before a substantial replacement.
- Confirm retained behavioral tests are E2E only and every created unit test is temporary, regardless of purpose. No created unit test remains in a completed change; remove them and exclusively used support code once corresponding E2E coverage passes, with required assertions, failure cases, and repository gates preserved. Existing non-E2E migration stays within authorized scope; build, lint, type checking, and static validation remain valid checks.
- Keep Codex policy internally consistent and document Codex-specific capability assumptions where they affect behavior.
- Search the final diff for paths, schemas, model names, and commands that belong to another coding-agent environment; remove any accidental contamination before merging.
License
This repository is MIT licensed. See LICENSE. Do not change the license without an explicit maintainer decision.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

