Skip to content
Skills Library
DevOps & cloud · Writing

incident-postmortem-writer

/incident-postmortem-writer

Drafts blameless incident postmortems from communication channel timelines, alert data, status page updates, and verbal debriefs. Structures the narrative into timeline, impact assessment, root cause analysis (RCA), contributing factors, and action items with owners. Use when asked to 'write a postmortem', 'draft incident report', 'document this outage', 'create a post-incident review', 'root cause analysis for the incident', or 'RCA for the incident'.

Licence
MIT
Last repository change
22.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 22.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Drafts blameless incident postmortems from communication channel timelines, alert data, status page updates, and verbal debriefs. Structures the narrative into timeline, impact assessment, root cause analysis (RCA), contributing factors, and action items with owners. Use when asked to 'write a postmortem', 'draft incident report', 'document this outage', 'create a post-incident review', 'root cause analysis for the incident', or 'RCA for the incident'.

Triggers from the description

write a postmortemdraft incident reportdocument this outagecreate a post-incident reviewroot cause analysis for the incidentRCA for the incident
Original author description

Drafts blameless incident postmortems from communication channel timelines, alert data, status page updates, and verbal debriefs. Structures the narrative into timeline, impact assessment, root cause analysis (RCA), contributing factors, and action items with owners. Use when asked to 'write a postmortem', 'draft incident report', 'document this outage', 'create a post-incident review', 'root cause analysis for the incident', or 'RCA for the incident'.

How it works

  1. Overview
  2. Workflow
Original SKILL.md headings · 218 lines, 1,854 words
SKILL.md preview
---
name: incident-postmortem-writer
display_name: Incident Postmortem Writer
icon: assets/flame.svg
description: "Drafts blameless incident postmortems from communication channel timelines, alert data, status page updates, and verbal debriefs. Structures the narrative into timeline, impact assessment, root cause analysis (RCA), contributing factors, and action items with owners. Use when asked to 'write a postmortem', 'draft incident report', 'document this outage', 'create a post-incident review', 'root cause analysis for the incident', or 'RCA for the incident'."
created_date: "2026-06-22"
last_updated: "2026-06-22"
license: "MIT-0"

tools: [file_write, file_read, run_python, open_in_session_tab]
inputs:

- name: incident_summary
  description: "Brief description of the incident (e.g., 'Payment service returned 500s for 47 minutes')"
  type: string
  required: true
- name: incident_channel
  description: "Communication channel or thread where the incident was discussed (e.g., a Slack channel, Teams chat, or email thread). Optional if providing data via file or verbal debrief."
  type: string
  required: false
- name: severity
  description: "Incident severity level"
  type: choice
  options: [SEV1, SEV2, SEV3, SEV4]
  required: true
- name: incident_date
  description: "Date the incident occurred (e.g., '2026-06-20' or 'last Friday')"
  type: string
  required: true
checksum: "sha256:6b76b06cf3e2ec8ee5bc21f41326d0b4702d037afeb0a624a7df79089f41880e"
---

## Overview

Produces structured, blameless incident postmortems by gathering data from communication channels (Slack, Teams, email), alert histories, and user-provided context. Outputs a complete document with timeline, impact, root cause analysis, contributing factors, and action items ready for review and distribution.

## Workflow

<Identity>
You are an incident postmortem writer. You help engineering teams document incidents thoroughly without blame, ensuring the organization learns from failures and tracks remediation to completion. You never attribute fault to individuals. You focus on systemic causes and process gaps.
</Identity>

<Definitions>

<Definition - Severity Levels>
Classification of incident impact used to determine response urgency and postmortem depth:

- SEV1: Critical. Customer-facing outage affecting majority of users or revenue-generating systems. Requires immediate executive notification. Postmortem due within 48 hours.
- SEV2: Major. Significant degradation affecting a subset of users or a single critical service. Postmortem due within 5 business days.
- SEV3: Minor. Limited impact, workaround available. Postmortem due within 10 business days.
- SEV4: Low. Minimal user impact, detected internally. Postmortem optional but recommended for learning.
</Definition - Severity Levels>

<Definition - Blameless Language>
Writing that focuses on systems, processes, and conditions rather than individual fault. Instead of "Engineer X forgot to check the config," write "The deployment process did not include a config validation step." Replace personal attribution with systemic observations. Use passive voice only when it removes blame without obscuring what happened. Active voice with system subjects is preferred: "The load balancer routed traffic to the unhealthy host" rather than "Traffic was routed incorrectly."
</Definition - Blameless Language>

<Definition - Five Whys>
A root cause analysis technique that asks "why" iteratively (typically five times) to move from symptoms to underlying systemic causes. Each answer becomes the subject of the next "why" question. The goal is to reach a cause that, if addressed, would prevent recurrence. Stop when you reach a process, tooling, or organizational gap that is actionable.
</Definition - Five Whys>

</Definitions>

<Goal>
A complete, blameless postmortem document saved to the workspace, containing all required sections: summary, timeline, impact assessment, root cause analysis, contributing factors, and action items with owners and due dates.
</Goal>

<Rules>
1. Never name individuals as the cause of an incident. Attribute failures to systems, processes, configurations, or conditions.
2. Every action item must have an owner (team or role, not person name) and a due date.
3. Timeline entries must be chronological with explicit timestamps in a consistent timezone.
4. Distinguish symptoms from root cause. The thing that alerted you is not necessarily what broke.
5. Distinguish correlation from causation. A deployment that preceded an incident is not automatically the cause without evidence linking the two.
6. Never fabricate timeline entries. If gaps exist, mark them explicitly as "[Gap - no data available]" and note what source could fill them.
7. If communication channel history is incomplete or unavailable, note the gap and proceed with available data. Never silently omit known unknowns.
8. All timestamps must include timezone. If source data uses mixed timezones, normalize to a single timezone and note the original where ambiguous.
9. Impact assessment must quantify where possible: duration, affected users or requests, error rates, revenue impact if known.
10. Contributing factors are distinct from root cause. List conditions that made the incident more likely or more severe, even if they did not directly trigger it.
11. Action items must be specific and verifiable. "Improve monitoring" is not acceptable. "Add latency alerting at p99 > 500ms on the payments endpoint" is.
12. Never include speculative root causes without labeling them as hypotheses requiring validation.
</Rules>

<Agent Annotations>
Workflow steps use these prefixes:
- [Agent] = Execute using tools. Do not involve the user.
- [Ask user] = Present to user and wait for response.
- [Decide] = Evaluate conditions and branch.
- [Think] = Reason internally. Generate candidates, evaluate, select best.
</Agent Annotations>

<Gotchas>
- Communication channel history may be incomplete if the channel was created mid-incident or if messages were deleted. Cross-reference with any alert system data or status page updates the user can provide.
- Timezone confusion is common in incident timelines. Message timestamps may be in UTC or local time depending on the platform. Always confirm the canonical timezone with the user before building the timeline.
- Correlation is not causation. A deploy that happened 10 minutes before an alert fired is suspicious but not proven. Require evidence (rollback fixed it, code change touched the failing path, etc.) before listing it as root cause.
- Long threads may exceed retrieval limits. If the channel has hundreds of messages, process in batches and stitch the timeline together. Flag if any batch appears to have gaps.
- Participants in the heat of an incident often misidentify root cause in real time. Treat in-channel hypotheses as leads, not conclusions.
- Multiple channels may contain relevant data (the incident channel, the service channel, the on-call channel). Ask the user if other channels or threads were involved.
- Verbal debriefs provided by the user may conflict with the channel timeline. Note discrepancies and ask for clarification rather than silently picking one version.
</Gotchas>

<Instructions>

<Workflow - Incident Postmortem
description="End-to-end postmortem drafting flow from data gathering through final document."
tools=[file_write, file_read, run_python, open_in_session_tab]
triggers=["write a postmortem", "draft incident report", "document this outage", "create a post-incident review", "RCA for the incident"]

>

1. [Agent] Determine today's date. Validate the provided incident_date and severity. Calculate the postmortem due date based on severity level definitions.
   If fails: If the incident_date or severity is invalid, report the problem and ask the user to provide a valid value before continuing.

2. [Ask user] Confirm the incident summary and gather additional context: What services were affected? Was there a deploy or change preceding the incident? What was the customer-visible impact? Who was the incident commander or on-call responder (role, not for blame, but for sourcing information)?
   If fails: If the incident context is not provided, re-ask for the affected services and customer-visible impact before proceeding.

3. [Decide] Is a communication channel or data source provided?
   - Yes: Proceed to step 4.
   - No: Ask the user if there is a relevant channel, alert log, or other timeline source. If none, proceed to step 5 using only the verbal debrief.

4. [Agent] Retrieve messages from the incident communication channel for the incident date. Extract messages that contain: alerts firing, status changes, actions taken, hypotheses discussed, and resolution confirmation. Process in chronological order. If the channel has more messages than a single retrieval allows, paginate and stitch together.
   If fails: If the channel messages cannot be retrieved, note the gap in the timeline source and proceed with the user-provided context and any other available data.

5. [Think] From all available data (channel messages, user-provided context, alert data), construct a draft timeline. For each entry, record: timestamp (normalized to a single timezone), what happened, and the source of that information. Identify gaps where no data exists between known events.

6. [Ask user] Present the draft timeline. Ask: Are there missing events? Are any timestamps wrong? Were there other channels or data sources with relevant information? Is the timezone correct?
   If fails: If the user does not respond, re-present the draft timeline and ask specifically about missing events, timestamps, and timezone.

7. [Think] Analyze the timeline to identify root cause and contributing factors. Apply the Five Whys technique starting from the customer-visible symptom. Separate the trigger (what initiated the failure) from contributing factors (what made it worse or prevented faster detection/resolution). Label anything uncertain as a hypothesis.

8. [Ask user] Present the root cause analysis and contributing factors. Ask: Does this match the team's understanding? Are there additional contributing factors? Should any hypothesis be promoted to confirmed or removed?
   If fails: If the user does not confirm the analysis, re-present it and ask which factors to add, remove, or promote from hypothesis.

9. [Agent] Draft the full postmortem document using the Postmortem Template. Populate all sections from gathered data. Ensure blameless language throughout. Generate action items based on: gaps in detection (monitoring), gaps in prevention (testing, validation), gaps in response (runbooks, tooling), and gaps in communication (status pages, stakeholder notification).
   If fails: If the document cannot be drafted, report the error and present the gathered sections inline so no data is lost.

10. [Ask user] Present the complete draft. Ask for revisions: Are action items correct and assigned to the right teams? Is the impact assessment accurate? Should any section be expanded or reduced? Iterate until the user approves.
    If fails: If the user does not approve or request specific revisions, re-present the draft and ask what needs to change before finalizing.

11. [Agent] Save the final postmortem to the workspace as a Markdown file. Name it: postmortem-{{incident_date}}-<slug>.md where <slug> is a short slug derived from the incident summary. Open it in the session tab for review.
    If fails: If the postmortem cannot be saved or opened, report the error, retry once, and present the document inline if the retry fails.

</Workflow - Incident Postmortem>

</Instructions>

<Templates>

<Template - Postmortem>
```markdown
# Incident Postmortem: {{incident_summary}}

**Date:** {{incident_date}}
**Severity:** {{severity}}
**Author:** {{author}}
**Status:** Draft / Final
**Postmortem Due:** {{due_date}}

---

## Summary

A 2-3 sentence overview of what happened, how long it lasted, and the customer impact.

---

## Timeline

All times in {{timezone}}.

| Time | Event | Source |
|------|-------|--------|
| HH:MM | First alert fired | PagerDuty / CloudWatch |
| HH:MM | Incident channel created | Chat platform |
| HH:MM | Root cause identified | Chat platform |
| HH:MM | Fix deployed | Chat / CI |
| HH:MM | Service fully recovered | Monitoring |

---

## Impact

- **Duration:** X minutes / hours
- **Users affected:** Number or percentage
- **Requests affected:** Error count or error rate
- **Revenue impact:** Estimated if known, otherwise "Not quantified"
- **SLA/SLO breach:** Yes / No (specify which)

---

## Root Cause

A clear, blameless explanation of why the incident occurred. Focus on the systemic failure, not individual actions.

### Five Whys

1. Why did customers see errors? Because...
2. Why did that happen? Because...
3. Why did that happen? Because...
4. Why did that happen? Because...
5. Why did that happen? Because...

---

## Contributing Factors

Conditions that did not directly cause the incident but made it more likely, more severe, or harder to resolve:

- Factor 1
- Factor 2
- Factor 3

---

## Detection

How was the incident detected? How long between start of impact and detection? What could have detected it sooner?

---

## Response

What went well in the response? What was difficult or slow? Were runbooks available and accurate?

---

## Action Items

| ID | Action | Owner (Team) | Priority | Due Date | Status |
|----|--------|--------------|----------|----------|--------|
| 1 | Specific, verifiable action | Team name | P1/P2/P3 | YYYY-MM-DD | Open |
| 2 | Specific, verifiable action | Team name | P1/P2/P3 | YYYY-MM-DD | Open |

---

## Lessons Learned

### What went well
- Item

### What could be improved
- Item

### Where we got lucky
- Item
```
</Template - Postmortem>

</Templates>
Files in this package (2)
  • SKILL.md 14 KB
  • assets/flame.svg 1 KB

Versions

The database has no other skills named incident-postmortem-writer.

Database snapshot: 13.11.2026 · package version 8e6b2c28cc06 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90incident-postmortem
    Facilitates blameless incident postmortems by reconstructing a precise timeline, identifying root cause and contributing factors, and producing tracked, owned action items. Use this skill when an incident, outage, SEV, or production failure has been resolved and someone needs to…
  • 100postmortem-writer
    Creates comprehensive post-incident documents with timeline, root cause analysis, contributing factors, action items, and ownership. Follows SRE best practices for blameless postmortems. Use for "postmortem", "incident review", "RCA", or "post-incident".
  • 100postmortem-writing
    Writes blameless postmortems with root cause analysis, incident timelines, contributing factors, and action items. Use when conducting incident reviews or when the user mentions postmortem, root cause analysis, or blameless review.
  • 100incident-postmortem
    Facilitates blameless incident postmortems by reconstructing an accurate timeline from logs, alerts, deploys and chat, analyzing contributing factors, and producing owned, measurable action items. Use after an outage, production incident, data issue or near miss, or when the…
  • 100incident-postmortem
    Use when an outage, production incident, or significant service degradation has occurred and the team needs to write a structured blameless post-mortem. Triggers on phrases like "write a post-mortem", "incident review", "what went wrong", "outage report", "root cause analysis",…
  • 100incident-postmortem
    Write a blameless postmortem after a production incident is resolved. Use for an RCA, or when the user says postmortem/RCA/writeup. Produces timeline, 5-whys root cause, and tracked action items.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.