Agents Playbook

Getting started

Adopt the playbook in your project in under an hour.

The playbook is designed to be adopted incrementally — you can pull one pillar at a time, copy the templates that fit, and wire the gate scripts as you go.

60-minute adoption path

  1. Copy CLAUDE.md (and AGENTS.md if you don't already have one) from templates into your repo root. Customise the non-negotiables to your stack.
  2. Add the MEMORY.md index + a .agent-memory/ directory. Every lesson learned becomes a one-file memory.
  3. Pick 2-3 gate scripts from scripts — start with check-file-size, check-no-any, check-named-exports. Wire them as a pnpm check:quality-gates script.
  4. Stand up docs/adr/ with ADR-0001 (Philosophy) using the ADR template.
  5. Adopt the PR-intent manifest (template) on the next PR.

That's it for day one. Everything else flows from these.

Per-pillar deeper adoption

PillarMost-impactful first move
ArchitectureModular boundary table in AGENTS.md
SecurityThreat model skeleton + vault stub
UI / UXTokens + 8-10 primitives in packages/ui
QualityGate orchestrator + per-package coverage targets
GovernancePR-intent gate + tombstone convention
AI-collaborationCLAUDE.md + MEMORY pattern

For agents working in adopting repos

If you're an agent landing in a repo that has adopted this playbook:

  1. Read CLAUDE.md first.
  2. Read AGENTS.md to find which package to touch.
  3. Pull the relevant doc from this site via raw URL: https://playbook.agentskit.io/raw/<path>.md.
  4. Follow the per-pillar discipline.
  5. Update memory when a lesson lands.

Not adopting wholesale?

That's fine. The playbook is modular. Take what fits; leave the rest. Each pattern doc explains the failure mode it prevents — if you don't have that failure mode, you don't need that pattern.