agentleFS
PolakiniOPolakiniO/AI-Engineering-Playbook/AGENTS.md

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…

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
  1. Distinctive:

    Start from repository reality, not assumptions.

    line 20
  2. Distinctive:

    Keep agent guidance separate from runtime code.

    line 21
  3. Distinctive:

    Prefer explicit architectural boundaries over implicit conventions.

    line 22
  4. Distinctive:

    Treat schema and interface contracts as first-class review concerns.

    line 23
  5. Very specific:

    Add secondary skills according to skills/PLAYBOOK.md.

    line 34
  6. Distinctive:

    document expected inputs and outputs inline so behavior is reproducible in other repositories

    line 45
  7. Distinctive:

    keep this alias block in the repository root AGENTS.md so it copies cleanly to other repositories

    line 60
  8. Distinctive:

    If skill guidance conflicts, safety and correctness constraints win over convenience or speed.

    line 67
  9. Distinctive:

    No required section may be omitted.

    line 80
  10. Very specific:

    If a section has no content, write None.

    line 81
  11. Very specific:

    Do not default to no issues found without explicit justification.

    line 83
  12. Distinctive:

    Every skill-based response must include at least:

    line 84
  13. Distinctive:

    Every skill-based implementation or review response must include:

    line 91
  14. Distinctive:

    When the selected skill requires extra sections, include them as well.

    line 101
  15. Very specific:

    Use architecture-guardian when a change affects boundaries, ownership, layering, or repository structure.

    line 107
  16. Very specific:

    Use codex-agent-orchestration when work needs project-local .codex/agents/*.toml teams, parallel Codex subagents, or reusable agent chains.

    line 108
  17. Very specific:

    Use project-engineer when turning a design, idea, sketch, brief, or prototype into a feasible project plan.

    line 109
  18. Very specific:

    Use product-designer when a change or request affects UI, UX, visual direction, product design quality, or generic-looking interfaces.

    line 110
  19. Very specific:

    Use deployment-engineer when work affects hosting, CI/CD, release, rollback, environments, or deployment readiness.

    line 111
  20. Very specific:

    Use security-engineer when work affects tool reuse, dependencies, services, integrations, secrets, permissions, or security scan …

    line 112
  21. Very specific:

    Use operations-engineer when work affects observability, reliability, runbooks, backups, recovery, support, or production operations.

    line 113
  22. Very specific:

    Use finance-engineer when work affects cloud, SaaS, API, infrastructure, deployment, or operations cost.

    line 114
  23. Very specific:

    Use scope-safety-guard when a change affects security boundaries, permissions, external effects, or safety constraints.

    line 115
  24. Very specific:

    Use performance-optimizer when a change affects latency, throughput, duplicate work, scaling behavior, or performance claims.

    line 116
  25. Very specific:

    Use artifact-contract-reviewer when a change affects artifacts, schemas, interfaces, payloads, or downstream consumers.

    line 117
  26. Very specific:

    Use llm-output-reviewer when a change affects prompts, model output validation, fallback behavior, or model-driven decisions.

    line 118
  27. Very specific:

    Use test-strategy-reviewer when a change affects testing strategy, introduces regression risk, or lacks clear verification coverage.

    line 119
  28. Distinctive:

    Every code task must choose one primary skill.

    line 121
  29. Distinctive:

    When this framework is copied into another repository, customize:

    line 137

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 -> use skill-installer to 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, apply skill-installer for this turn."
  • keep this alias block in the repository root AGENTS.md so 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 found without explicit justification.
  • Every skill-based response must include at least:
    • one risk
    • one improvement
    • one Skills applied section

Required Response Shape For Code Work

Every skill-based implementation or review response must include:

  • Summary
  • Key Findings
  • Risks
  • Affected Files
  • Suggested Improvements
  • Suggested Tests
  • Skills 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-guardian when a change affects boundaries, ownership, layering, or repository structure.
  • Use codex-agent-orchestration when work needs project-local .codex/agents/*.toml teams, parallel Codex subagents, or reusable agent chains.
  • Use project-engineer when turning a design, idea, sketch, brief, or prototype into a feasible project plan.
  • Use product-designer when a change or request affects UI, UX, visual direction, product design quality, or generic-looking interfaces.
  • Use deployment-engineer when work affects hosting, CI/CD, release, rollback, environments, or deployment readiness.
  • Use security-engineer when work affects tool reuse, dependencies, services, integrations, secrets, permissions, or security scan requirements.
  • Use operations-engineer when work affects observability, reliability, runbooks, backups, recovery, support, or production operations.
  • Use finance-engineer when work affects cloud, SaaS, API, infrastructure, deployment, or operations cost.
  • Use scope-safety-guard when a change affects security boundaries, permissions, external effects, or safety constraints.
  • Use performance-optimizer when a change affects latency, throughput, duplicate work, scaling behavior, or performance claims.
  • Use artifact-contract-reviewer when a change affects artifacts, schemas, interfaces, payloads, or downstream consumers.
  • Use llm-output-reviewer when a change affects prompts, model output validation, fallback behavior, or model-driven decisions.
  • Use test-strategy-reviewer when 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

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.