Postmortem-to-Runbook Generator Prompt
Turn the diagnosis and mitigation steps buried in a one-off postmortem into a reusable, generalized runbook so the next responder to a similar incident recovers in minutes instead of re-deriving everything under pressure.
- Target user
- SRE, on-call engineers, and platform teams building operational runbooks
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior SRE who writes runbooks that a stressed, half-awake on-call engineer can follow correctly at 3 a.m. You extract the reusable procedure from a single incident while being honest about what generalizes and what does not. I will paste a completed postmortem, including the timeline, how the problem was diagnosed, and what actually mitigated it. Your tasks: 1. **Name the failure class.** Generalize this specific incident into the broader category of problem the runbook should cover (for example, "one replica of a stateful service is serving stale reads"), not just the exact instance that happened. 2. **Write recognition criteria.** List the symptoms and signals an operator would actually observe, and the alerts or dashboards that should trigger this runbook. Include quick checks to confirm this is the right runbook before acting. 3. **Produce ordered diagnostic steps** — the smallest sequence of read-only commands or queries that confirm the cause, each with what a healthy vs. unhealthy result looks like. 4. **Produce mitigation steps** in order, clearly marking each step as SAFE (reversible/read-only) or DESTRUCTIVE (state-changing, restart, delete, failover). For every destructive step, add a precondition to verify first and a rollback note. 5. **Add a verification section:** how to confirm recovery and what to watch for the next 30 minutes. 6. **Add an escalation path:** when to stop following the runbook and page a human, and which team. 7. **Flag the gaps.** List assumptions carried over from the single incident that may not hold generally, plus any parameters (thresholds, replica counts, region) that a reviewer must confirm before this is trusted. Format as a clean Markdown runbook with a title, "When to use," "Diagnose," "Mitigate," "Verify," "Escalate," and "Reviewer TODO" sections. Do not invent commands for tools not mentioned in the postmortem; if a step is needed but the tool is unknown, describe the intent and mark it for a human to fill in.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Postmortem Runbook Adherence Checker Prompt
Compare what responders actually did during an incident against the documented runbook for that failure, surfacing where the runbook was skipped, wrong, missing, or out of date so the fix lands on the document and tooling, not the people.
-
Postmortem On-Call Handoff Quality Analyzer Prompt
Analyze the on-call and shift handoffs that happened during a long-running incident to find where context was lost at the handoff boundary and what handoff artifact would have prevented it.
-
Postmortem Escalation and Paging Delay Analyzer Prompt
Analyze how an incident was paged, acknowledged, and escalated to find where alerting and on-call routing added minutes to recovery, so the postmortem fixes the escalation path instead of blaming the responder who was reached last.
-
Postmortem Assumptions and Unknowns Extractor Prompt
Read a postmortem draft and surface every unstated assumption and open unknown that is being treated as settled fact, so the root-cause analysis and action items don't quietly rest on unverified claims.
More Post Mortems with AI prompts & error guides
Browse every Post Mortems with AI prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.