Write Incident Runbook
Create actionable runbooks that guide responders through diagnosis and resolution, reducing MTTR.
When to Use
- Documenting response for a recurring alert or incident
- Standardizing response across an on-call rotation
- Reducing MTTR with clear diagnostic steps
- Onboarding new responders; migrating tribal knowledge to docs
- Linking alerts to resolution procedures
Procedure
Step 1 — Choose a template structure
Minimum sections: Overview / Severity / Symptoms, Diagnostic Steps, Resolution Steps, Escalation, Communication, Prevention, Related. Add Metadata (service, owner, on-call, last-updated) for SRE-grade runbooks. Start basic and iterate from real incident patterns.
Step 2 — Document diagnostic procedures
Make each step specific with the actual query and an expected-vs-actual value:
- Verify service health (health endpoint,
up{job=...})
- Check error rate (5xx ratio, expect < 1%)
- Analyze logs (recent errors, top messages)
- Check resource utilization (CPU < 70%, memory, connection pool)
- Review recent changes (deploys, commits, infra)
- Examine dependencies (downstream health, DB/API latency)
Include a failure-pattern decision tree: service down vs error spike; started after deploy (rollback), gradual (leak), or sudden (traffic/dependency). Test every query before documenting it.
Step 3 — Define resolution procedures
Document remediation with verification and rollback for each option:
- Rollback deployment (fastest, post-deploy errors)
- Scale up resources (CPU/memory, pool exhaustion)
- Restart service (memory leak, stuck connections)
- Feature flag / circuit breaker (specific feature or external dep)
- Database remediation (kill slow queries, resize pool)
Universal verification checklist: error rate < 1%, P99 latency under threshold, throughput at baseline, healthy resources, healthy deps, user tests pass, no active alerts. Always include a rollback path so a fix can't trap responders in a worse state.
Step 4 — Establish escalation paths
Define escalate-immediately criteria (customer outage > 15 min, error budget burn, data loss/security, no root cause in 20 min, mitigation failing). Five levels: primary on-call → secondary → team lead → incident commander → executive. Maintain a current contact directory (Slack, phone, PagerDuty) including external vendors. Never go silent — update every 15 min.
Step 5 — Create communication templates
Pre-write internal updates (declaration, progress every 15-30 min, mitigation complete, resolution, false alarm) and external/status-page messages (initial, progress, resolution) plus a customer email template. Templates cut cognitive load during the incident.
Step 6 — Link runbook to monitoring
Add runbook_url, dashboard_url, incident_channel annotations to alerts. Embed pre-filled diagnostic links (dashboard, error-rate query, recent logs, recent deploys). Ensure links work without VPN/SSO and test them quarterly.
Validation
Common Pitfalls
- Too generic ("check the logs" with no query).
- Outdated commands/systems — review quarterly.
- No verification ("how to confirm it's fixed").
- Missing rollback procedures.
- Written for experts only — write for the least experienced person on rotation.
- No owner; hidden behind auth during an SSO outage.
Related
- conduct-post-mortem — feeds new runbooks from incident findings
1---2name: write-incident-runbook3description: "Use when creating or improving an incident runbook — diagnostic steps, resolution procedures, escalation paths, and communication templates for an alert or recurring incident. Triggers: runbook, on-call, MTTR, incident response, alert annotation, escalation, tribal knowledge to docs."4version: 1.0.05license: MIT6tags: [runbook, incident-response, diagnostics, escalation, on-call, mttr, documentation, sre]7source: https://github.com/pjt222/agent-almanac/tree/main/skills/write-incident-runbook8derived_from: awesomeclaude9metadata:10 source: https://skillmd.com/skills/aashutosh396/write-incident-runbook11---1213# Write Incident Runbook1415Create actionable runbooks that guide responders through diagnosis and resolution, reducing MTTR.1617## When to Use1819- Documenting response for a recurring alert or incident20- Standardizing response across an on-call rotation21- Reducing MTTR with clear diagnostic steps22- Onboarding new responders; migrating tribal knowledge to docs23- Linking alerts to resolution procedures2425## Procedure2627### Step 1 — Choose a template structure28Minimum sections: Overview / Severity / Symptoms, Diagnostic Steps, Resolution Steps, Escalation, Communication, Prevention, Related. Add Metadata (service, owner, on-call, last-updated) for SRE-grade runbooks. Start basic and iterate from real incident patterns.2930### Step 2 — Document diagnostic procedures31Make each step specific with the actual query and an expected-vs-actual value:321. Verify service health (health endpoint, `up{job=...}`)332. Check error rate (5xx ratio, expect < 1%)343. Analyze logs (recent errors, top messages)354. Check resource utilization (CPU < 70%, memory, connection pool)365. Review recent changes (deploys, commits, infra)376. Examine dependencies (downstream health, DB/API latency)38Include a failure-pattern decision tree: service down vs error spike; started after deploy (rollback), gradual (leak), or sudden (traffic/dependency). Test every query before documenting it.3940### Step 3 — Define resolution procedures41Document remediation with verification and rollback for each option:421. Rollback deployment (fastest, post-deploy errors)432. Scale up resources (CPU/memory, pool exhaustion)443. Restart service (memory leak, stuck connections)454. Feature flag / circuit breaker (specific feature or external dep)465. Database remediation (kill slow queries, resize pool)47Universal verification checklist: error rate < 1%, P99 latency under threshold, throughput at baseline, healthy resources, healthy deps, user tests pass, no active alerts. Always include a rollback path so a fix can't trap responders in a worse state.4849### Step 4 — Establish escalation paths50Define escalate-immediately criteria (customer outage > 15 min, error budget burn, data loss/security, no root cause in 20 min, mitigation failing). Five levels: primary on-call → secondary → team lead → incident commander → executive. Maintain a current contact directory (Slack, phone, PagerDuty) including external vendors. Never go silent — update every 15 min.5152### Step 5 — Create communication templates53Pre-write internal updates (declaration, progress every 15-30 min, mitigation complete, resolution, false alarm) and external/status-page messages (initial, progress, resolution) plus a customer email template. Templates cut cognitive load during the incident.5455### Step 6 — Link runbook to monitoring56Add `runbook_url`, `dashboard_url`, `incident_channel` annotations to alerts. Embed pre-filled diagnostic links (dashboard, error-rate query, recent logs, recent deploys). Ensure links work without VPN/SSO and test them quarterly.5758## Validation5960- [ ] Consistent template structure61- [ ] Diagnostics include specific queries + expected values62- [ ] Resolution steps actionable with rollback63- [ ] Escalation criteria and contacts current64- [ ] Communication templates for internal + external65- [ ] Linked from alerts and dashboards66- [ ] Tested in simulation or real incident; revision history tracked67- [ ] Accessible without auth (or cached offline)6869## Common Pitfalls7071- Too generic ("check the logs" with no query).72- Outdated commands/systems — review quarterly.73- No verification ("how to confirm it's fixed").74- Missing rollback procedures.75- Written for experts only — write for the least experienced person on rotation.76- No owner; hidden behind auth during an SSO outage.7778## Related7980- conduct-post-mortem — feeds new runbooks from incident findings