Playbooks
Your process, followed by every agent. A playbook is your team's process for one kind of work, set once for the whole organisation and enforced on the server.
Today each developer sets up their own rules and prompts for their coding agent. A playbook is your team's process for one kind of work, set once for the whole organisation and enforced on the server.
What a playbook defines
| Part | What it sets | In a release rollout |
|---|---|---|
| Required inputs | What must exist before work starts | An approved spec, a rollback plan and a change window |
| Steps and tools | How the work runs, and which tools it may use | A staged rollout: 5%, then 50%, then everyone |
| Risk checks | What is checked, and when | Error rates checked at each stage |
| Approvals | Where a named person decides | The release manager approves each stage |
| Agent limits | What an agent may do on its own | The agent can pause a rollout on its own; it can't resume one |
| Escalation | Who is brought in when something goes wrong | The service owner, if error rates rise |
| Completion criteria | What done means | Error rates back to baseline for an hour |
| Evidence | What the record keeps | Every check, approval and the deployed version |
Enforced on the server
The playbook runs on the server, outside the agent. An agent can't skip a step, approve its own work or move a change past a gate, however long its context or however persuasive the prompt.
Instruction files such as AGENTS.md steer an agent; a playbook decides what has to happen. Keep coding conventions and style in your instruction files, and put anything that must happen, every time, in a playbook.
Example: release rollout
Before work starts
An approved spec, a rollback plan and a change window.
How the work runs
A staged rollout: 5%, then 50%, then everyone, with error rates checked at each stage.
Where a person decides
The release manager approves each stage. The agent can pause a rollout on its own; it can't resume one.
What done means
Error rates back to baseline for an hour. The record keeps every check, approval and the deployed version.
Playbooks teams write
Teams write playbooks for feature refinement, implementation planning, release rollout, incident investigation, security review and high-risk changes. Start with the work where a missed step costs most.
Writing a good playbook
A playbook is only as useful as it is specific. Write each part so that someone else could check whether it was met.
| Vague | Specific |
|---|---|
| Make sure it's tested. | Unit and integration tests pass, and coverage on the changed files doesn't drop. |
| Get sign-off. | The service owner approves. For changes that touch customer data, security approves too. |
| Roll out carefully. | 5%, then 50%, then everyone, with error rates checked at each stage. |
| Done when it's deployed. | Error rates back to baseline for an hour after the last stage. |
| Escalate if there's a problem. | If error rates rise above baseline, pause and page the service owner. |
A planning outline
Use this outline to agree a playbook with the team before it is set up. It is a checklist for the conversation, not a file format.
Name: Release rollout
Applies to: Production releases of customer-facing services
Before work starts: Approved spec · rollback plan · change window
How the work runs: 5% → 50% → everyone
Risk checks: Error rates at each stage
Where a person
decides: Release manager, at each stage
The agent may: Pause a rollout
The agent may not: Resume a rollout, skip a stage
Escalate to: Service owner
What done means: Error rates at baseline for one hour
Evidence kept: Checks, approvals, deployed version