AI-Engineering-Playbook
AGENTS.md2 starsChanged 8 months agoMITView on GitHub
This repository contains governance documentation, review workflows, and reusable skills for Codex and similar AI coding agents. It is not application runtime code. Agents should treat this repository as a reusable framework for: The files under skills/ are internal reasoning tools for Codex and similar AI coding agents. Required workflow: To support portable shorthand triggers (for example /codex-install) across repositories, define explicit slash-command aliases in AGENTS.md. Recommended pattern: Example alias: Behavior clarification: Implementation note for adopters: Operating constraints: Strict mode…
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 35,337 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.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
29 rules. About 0 are common, 13 are distinctive, and 16 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Start from repository reality, not assumptions.
- Distinctive: line 21
Keep agent guidance separate from runtime code.
- Distinctive: line 22
Prefer explicit architectural boundaries over implicit conventions.
- Distinctive: line 23
Treat schema and interface contracts as first-class review concerns.
- Very specific: line 34
Add secondary skills according to skills/PLAYBOOK.md.
- Distinctive: line 45
document expected inputs and outputs inline so behavior is reproducible in other repositories
- Distinctive: line 60
keep this alias block in the repository root AGENTS.md so it copies cleanly to other repositories
- Distinctive: line 67
If skill guidance conflicts, safety and correctness constraints win over convenience or speed.
- Distinctive: line 80
No required section may be omitted.
- Very specific: line 81
If a section has no content, write None.
- Very specific: line 83
Do not default to no issues found without explicit justification.
- Distinctive: line 84
Every skill-based response must include at least:
- Distinctive: line 91
Every skill-based implementation or review response must include:
- Distinctive: line 101
When the selected skill requires extra sections, include them as well.
- Very specific: line 107
Use architecture-guardian when a change affects boundaries, ownership, layering, or repository structure.
- Very specific: line 108
Use codex-agent-orchestration when work needs project-local .codex/agents/*.toml teams, parallel Codex subagents, or reusable agent chains.
- Very specific: line 109
Use project-engineer when turning a design, idea, sketch, brief, or prototype into a feasible project plan.
- Very specific: line 110
Use product-designer when a change or request affects UI, UX, visual direction, product design quality, or generic-looking interfaces.
- Very specific: line 111
Use deployment-engineer when work affects hosting, CI/CD, release, rollback, environments, or deployment readiness.
- Very specific: line 112
Use security-engineer when work affects tool reuse, dependencies, services, integrations, secrets, permissions, or security scan …
- Very specific: line 113
Use operations-engineer when work affects observability, reliability, runbooks, backups, recovery, support, or production operations.
- Very specific: line 114
Use finance-engineer when work affects cloud, SaaS, API, infrastructure, deployment, or operations cost.
- Very specific: line 115
Use scope-safety-guard when a change affects security boundaries, permissions, external effects, or safety constraints.
- Very specific: line 116
Use performance-optimizer when a change affects latency, throughput, duplicate work, scaling behavior, or performance claims.
- Very specific: line 117
Use artifact-contract-reviewer when a change affects artifacts, schemas, interfaces, payloads, or downstream consumers.
- Very specific: line 118
Use llm-output-reviewer when a change affects prompts, model output validation, fallback behavior, or model-driven decisions.
- Very specific: line 119
Use test-strategy-reviewer when a change affects testing strategy, introduces regression risk, or lacks clear verification coverage.
- Distinctive: line 121
Every code task must choose one primary skill.
- Distinctive: line 137
When this framework is copied into another repository, customize:
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
AGENTS.md
Repository Purpose
This repository contains governance documentation, review workflows, and reusable skills for Codex and similar AI coding agents.
It is not application runtime code.
Agents should treat this repository as a reusable framework for:
- implementation guidance
- refactoring guidance
- PR review structure
- bug investigation guidance
- performance analysis guidance
- portable repository governance
Core Operating Principles
- Start from repository reality, not assumptions.
- Keep agent guidance separate from runtime code.
- Prefer explicit architectural boundaries over implicit conventions.
- Treat schema and interface contracts as first-class review concerns.
- Safety, correctness, and contract stability outrank convenience.
- Performance work must be evidence-based and must not weaken safety or correctness.
Mandatory Skill Usage
The files under skills/ are internal reasoning tools for Codex and similar AI coding agents.
Required workflow:
- For every feature implementation, refactor, bug fix, PR review, bug investigation, or code analysis request, automatically select one primary skill from
skills/, even if the user does not mention skills explicitly. - Add secondary skills according to
skills/PLAYBOOK.md. - Skill usage is mandatory for code-related work. It is not prompt-dependent.
Optional Slash-Command Skill Routing
To support portable shorthand triggers (for example /codex-install) across repositories, define explicit slash-command aliases in AGENTS.md.
Recommended pattern:
- reserve slash commands for development-time governance actions, not runtime product behavior
- map each slash command to one concrete skill name
- document expected inputs and outputs inline so behavior is reproducible in other repositories
Example alias:
/codex-install-> useskill-installerto install a Codex skill from the curated catalog or a GitHub repository path
Behavior clarification:
- adding this alias does not automatically copy files into other repositories by itself
- the alias only routes the current turn to
skill-installer; that installer performs the actual install action - to make this portable, install from a stable public source (for example, a GitHub repo path) that any target repository can access
Implementation note for adopters:
- include a trigger rule such as: "If the user invokes
/codex-install, applyskill-installerfor this turn." - keep this alias block in the repository root
AGENTS.mdso it copies cleanly to other repositories
Operating constraints:
- Skills are governance artifacts, not product features.
- Skills must not be exposed through application runtime interfaces.
- Skills must not create runtime coupling to the codebase being reviewed.
- If skill guidance conflicts, safety and correctness constraints win over convenience or speed.
Strict-Mode Review Behavior
Strict mode is mandatory by default for all skill-based code work.
Requirements:
- Responses must follow the output structure defined by the selected skill.
- Standard structured output is the default for normal reviews, PR comments, issues, and general repository work.
- Presentation-optimized output is optional for screenshots, demos, public examples, or terminal readability.
- Presentation may change formatting only. It must not change meaning, completeness, or section order.
- Syntax highlighting or visually enhanced formatting is allowed only when it improves readability and consistency.
- No required section may be omitted.
- If a section has no content, write
None. - Reviews must be critical by default, not permissive by default.
- Do not default to
no issues foundwithout explicit justification. - Every skill-based response must include at least:
- one risk
- one improvement
- one
Skills appliedsection
Required Response Shape For Code Work
Every skill-based implementation or review response must include:
SummaryKey FindingsRisksAffected FilesSuggested ImprovementsSuggested TestsSkills applied
When the selected skill requires extra sections, include them as well.
Plain output is preferred for routine work. Presentation-optimized output is useful for demo screenshots and public examples.
Automatic Skill Routing Rules
- Use
architecture-guardianwhen a change affects boundaries, ownership, layering, or repository structure. - Use
codex-agent-orchestrationwhen work needs project-local.codex/agents/*.tomlteams, parallel Codex subagents, or reusable agent chains. - Use
project-engineerwhen turning a design, idea, sketch, brief, or prototype into a feasible project plan. - Use
product-designerwhen a change or request affects UI, UX, visual direction, product design quality, or generic-looking interfaces. - Use
deployment-engineerwhen work affects hosting, CI/CD, release, rollback, environments, or deployment readiness. - Use
security-engineerwhen work affects tool reuse, dependencies, services, integrations, secrets, permissions, or security scan requirements. - Use
operations-engineerwhen work affects observability, reliability, runbooks, backups, recovery, support, or production operations. - Use
finance-engineerwhen work affects cloud, SaaS, API, infrastructure, deployment, or operations cost. - Use
scope-safety-guardwhen a change affects security boundaries, permissions, external effects, or safety constraints. - Use
performance-optimizerwhen a change affects latency, throughput, duplicate work, scaling behavior, or performance claims. - Use
artifact-contract-reviewerwhen a change affects artifacts, schemas, interfaces, payloads, or downstream consumers. - Use
llm-output-reviewerwhen a change affects prompts, model output validation, fallback behavior, or model-driven decisions. - Use
test-strategy-reviewerwhen a change affects testing strategy, introduces regression risk, or lacks clear verification coverage.
Every code task must choose one primary skill. Additional skills are layered according to the playbook.
Generic Governance Boundaries
This framework intentionally does not define:
- product runtime behavior
- repo-specific domain logic
- repo-specific file ownership
- repo-specific artifact layouts
- repo-specific safety policies
Each adopting repository must customize those areas explicitly.
Adoption Guidance
When this framework is copied into another repository, customize:
- project mission and non-goals
- architecture layers and ownership boundaries
- safety and compliance rules
- schema or artifact contracts
- domain-specific skill set
- examples and file references
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
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.

