| name | playbook-generator |
| description | Generate operational playbooks, runbooks, and standard operating procedures (SOPs) that conform to organizational or baseline standards. Use this skill whenever the user asks to create a playbook, runbook, SOP, operational procedure, incident response plan, deployment guide, or any step-by-step operational document.
|
| user-invokable | true |
| args | [{"name":"domain","description":"The domain or system this playbook covers (e.g. \"Azure AI Foundry deployment\", \"credential rotation\")","required":true}] |
Playbook Generator
Generates standards-conformant operational playbooks with layered standards: a
baseline schema ships with the skill, org overrides customize per-client, and inline
overrides handle one-off exceptions.
Standards Layering
Standards are resolved in order (later layers override earlier):
1. Baseline Standard (ships with this skill)
Read schemas/baseline-standard.yaml — defines required sections, step structure,
metadata fields, and formatting rules that every playbook must have.
Key requirements from the baseline:
- Every playbook has: title, purpose, scope, prerequisites, steps, rollback, and
verification sections
- Each step has: number, action (imperative verb), expected outcome, and responsible role
- Metadata includes: author, version, last-reviewed date, approval status
- Rollback section is mandatory — no playbook ships without a way to undo
2. Org Overrides (client-specific)
Check ~/.agent/playbook-standards/ for YAML files. If present, merge them on top
of the baseline. These typically add:
- Jira/ServiceNow ticket field requirements
- Approval workflow steps (e.g., change advisory board sign-off)
- Naming conventions (e.g.,
PB-{TEAM}-{SEQ})
- Required sections beyond the baseline (e.g., security impact assessment)
- Template headers/footers with company branding
To install org standards: copy the client's YAML into ~/.agent/playbook-standards/.
Use schemas/org-standard-template.yaml as a starting point.
3. Inline Overrides
The user can specify one-off exceptions in their prompt. These are documented in the
playbook as "Deviations from Standard" with justification.
Playbook Generation Workflow
- Identify the domain — what system/process is this playbook for?
- Load standards — baseline + any org overrides
- Gather inputs — ask the user for:
- Target system/service
- Trigger condition (when does someone reach for this playbook?)
- Key decision points
- Known failure modes
- Generate the playbook following the merged standard
- Validate conformance — check all required sections and fields are present
- Output — as Markdown by default, or as a
.docx if the user asks
Output Format
Default output is a Markdown file with this structure:
# PB-{TEAM}-{SEQ}: {Title}
| Field | Value |
|-------|-------|
| Author | {name} |
| Version | 1.0 |
| Last Reviewed | {date} |
| Approval | Draft / Approved |
| Jira Ticket | {if org standard requires it} |
## Purpose
{Why this playbook exists}
## Scope
{What systems/services this covers}
## Prerequisites
- {List of things that must be true before starting}
## Procedure
### Step 1: {Action}
- **Action**: {Imperative verb description}
- **Role**: {Who performs this}
- **Expected Outcome**: {What success looks like}
- **If Failed**: {What to do if this step fails}
### Step 2: ...
## Rollback Procedure
{Steps to undo everything}
## Verification
{How to confirm the playbook achieved its goal}
## Deviations from Standard
{Any inline overrides, with justification — or "None"}
Defining New Standards
To create a new org standard:
- Copy
schemas/org-standard-template.yaml to ~/.agent/playbook-standards/{client-name}.yaml
- Edit the YAML to add client-specific requirements
- The generator will auto-detect and merge it on next run
Gotchas
- Org standards in
~/.agent/playbook-standards/ must be valid YAML — a syntax error silently falls back to baseline only
- The baseline requires a rollback section — if the operation is truly irreversible, document why
- Generated playbooks are drafts — always have a human review before using in production
Schemas
schemas/baseline-standard.yaml — the default conformance standard
schemas/org-standard-template.yaml — template for creating org overrides
Examples
examples/azure-foundry-deployment.md — a real playbook for deploying to Azure AI Foundry
examples/credential-rotation.md — credential rotation playbook using secret-vault metadata