1
---
2
name: postmortem-writing
3
description: Write effective blameless postmortems with root cause analysis, timelines, and action items. Use when conducting incident reviews, writing postmortem documents, or improving incident response processes.
4
---
5
6
# Postmortem Writing
7
8
Comprehensive guide to writing effective, blameless postmortems that drive organizational learning and prevent incident recurrence.
9
10
## When to Use This Skill
11
12
- Conducting post-incident reviews
13
- Writing postmortem documents
14
- Facilitating blameless postmortem meetings
15
- Identifying root causes and contributing factors
16
- Creating actionable follow-up items
17
- Building organizational learning culture
18
19
## Core Concepts
20
21
### 1. Blameless Culture
22
23
| Blame-Focused | Blameless |
24
| ------------------------ | --------------------------------- |
25
| "Who caused this?" | "What conditions allowed this?" |
26
| "Someone made a mistake" | "The system allowed this mistake" |
27
| Punish individuals | Improve systems |
28
| Hide information | Share learnings |
29
| Fear of speaking up | Psychological safety |
30
31
### 2. Postmortem Triggers
32
33
- SEV1 or SEV2 incidents
34
- Customer-facing outages > 15 minutes
35
- Data loss or security incidents
36
- Near-misses that could have been severe
37
- Novel failure modes
38
- Incidents requiring unusual intervention
39
40
## Quick Start
41
42
### Postmortem Timeline
43
44
```
45
Day 0: Incident occurs
46
Day 1-2: Draft postmortem document
47
Day 3-5: Postmortem meeting
48
Day 5-7: Finalize document, create tickets
49
Week 2+: Action item completion
50
Quarterly: Review patterns across incidents
51
```
52
53
## Templates and detailed worked examples
54
55
Full template library and detailed worked examples live in `references/details.md`. Read that file when you need the concrete templates.
56
57
### Template 2: 5 Whys Analysis
58
59
```markdown
60
# 5 Whys Analysis: [Incident]
61
62
## Problem Statement
63
64
Payment service experienced 47-minute outage due to database connection exhaustion.
65
66
## Analysis
67
68
### Why #1: Why did the service fail?
69
70
**Answer**: Database connections were exhausted, causing all new requests to fail.
71
72
**Evidence**: Metrics showed connection count at 100/100 (max), with 500+ pending requests.
73
74
---
75
76
### Why #2: Why were database connections exhausted?
77
78
**Answer**: Each incoming request opened a new database connection instead of using the connection pool.
79
80
**Evidence**: Code diff shows direct `DriverManager.getConnection()` instead of pooled `DataSource`.
81
82
---
83
84
### Why #3: Why did the code bypass the connection pool?
85
86
**Answer**: A developer refactored the repository class and inadvertently changed the connection acquisition method.
87
88
**Evidence**: PR #1234 shows the change, made while fixing a different bug.
89
90
---
91
92
### Why #4: Why wasn't this caught in code review?
93
94
**Answer**: The reviewer focused on the functional change (the bug fix) and didn't notice the infrastructure change.
95
96
**Evidence**: Review comments only discuss business logic.
97
98
---
99
100
### Why #5: Why isn't there a safety net for this type of change?
101
102
**Answer**: We lack automated tests that verify connection pool behavior and lack documentation about our connection patterns.
103
104
**Evidence**: Test suite has no tests for connection handling; wiki has no article on database connections.
105
106
## Root Causes Identified
107
108
1. **Primary**: Missing automated tests for infrastructure behavior
109
2. **Secondary**: Insufficient documentation of architectural patterns
110
3. **Tertiary**: Code review checklist doesn't include infrastructure considerations
111
112
## Systemic Improvements
113
114
| Root Cause | Improvement | Type |
115
| ------------- | --------------------------------- | ---------- |
116
| Missing tests | Add infrastructure behavior tests | Prevention |
117
| Missing docs | Document connection patterns | Prevention |
118
| Review gaps | Update review checklist | Detection |
119
| No canary | Implement canary deployments | Mitigation |
120
```
121
122
### Template 3: Quick Postmortem (Minor Incidents)
123
124
```markdown
125
# Quick Postmortem: [Brief Title]
126
127
**Date**: 2024-01-15 | **Duration**: 12 min | **Severity**: SEV3
128
129
## What Happened
130
131
API latency spiked to 5s due to cache miss storm after cache flush.
132
133
## Timeline
134
135
- 10:00 - Cache flush initiated for config update
136
- 10:02 - Latency alerts fire
137
- 10:05 - Identified as cache miss storm
138
- 10:08 - Enabled cache warming
139
- 10:12 - Latency normalized
140
141
## Root Cause
142
143
Full cache flush for minor config update caused thundering herd.
144
145
## Fix
146
147
- Immediate: Enabled cache warming
148
- Long-term: Implement partial cache invalidation (ENG-999)
149
150
## Lessons
151
152
Don't full-flush cache in production; use targeted invalidation.
153
```
154
155
## Facilitation Guide
156
157
### Running a Postmortem Meeting
158
159
```markdown
160
## Meeting Structure (60 minutes)
161
162
### 1. Opening (5 min)
163
164
- Remind everyone of blameless culture
165
- "We're here to learn, not to blame"
166
- Review meeting norms
167
168
### 2. Timeline Review (15 min)
169
170
- Walk through events chronologically
171
- Ask clarifying questions
172
- Identify gaps in timeline
173
174
### 3. Analysis Discussion (20 min)
175
176
- What failed?
177
- Why did it fail?
178
- What conditions allowed this?
179
- What would have prevented it?
180
181
### 4. Action Items (15 min)
182
183
- Brainstorm improvements
184
- Prioritize by impact and effort
185
- Assign owners and due dates
186
187
### 5. Closing (5 min)
188
189
- Summarize key learnings
190
- Confirm action item owners
191
- Schedule follow-up if needed
192
193
## Facilitation Tips
194
195
- Keep discussion on track
196
- Redirect blame to systems
197
- Encourage quiet participants
198
- Document dissenting views
199
- Time-box tangents
200
```
201
202
## Anti-Patterns to Avoid
203
204
| Anti-Pattern | Problem | Better Approach |
205
| ----------------------- | -------------------------- | ------------------------------- |
206
| **Blame game** | Shuts down learning | Focus on systems |
207
| **Shallow analysis** | Doesn't prevent recurrence | Ask "why" 5 times |
208
| **No action items** | Waste of time | Always have concrete next steps |
209
| **Unrealistic actions** | Never completed | Scope to achievable tasks |
210
| **No follow-up** | Actions forgotten | Track in ticketing system |
211
212
## Best Practices
213
214
### Do's
215
216
- **Start immediately** - Memory fades fast
217
- **Be specific** - Exact times, exact errors
218
- **Include graphs** - Visual evidence
219
- **Assign owners** - No orphan action items
220
- **Share widely** - Organizational learning
221
222
### Don'ts
223
224
- **Don't name and shame** - Ever
225
- **Don't skip small incidents** - They reveal patterns
226
- **Don't make it a blame doc** - That kills learning
227
- **Don't create busywork** - Actions should be meaningful
228
- **Don't skip follow-up** - Verify actions completed
229