agentleFS
ajinbajinb/cloudandsre-skills/skills/incident-postmortem-draft/SKILL.md

incident-postmortem-draft

Skill0 starsChanged 30 days agoApache-2.0View on GitHub

Convert a Slack incident thread (or a paste of timestamped messages) into a blameless, structured postmortem draft. Output is markdown ready for human review. Use when the user pastes a Slack export, asks "draft a postmortem from this thread", or describes an incident in chronological-message form. Schema-enforced blamelessness — no proper names, role-based attribution only.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the input is sparse (under ~10 messages, missing timestamps, no clear resolution), produce a draft anyway but populate the Open …

    line 23
  2. Very specific:

    If a fact is not in the thread, do not assert it: Add it to Open questions. A confidently-wrong postmortem is worse than no postmortem.

    line 77
  3. Very specific:

    Detection gap is honest: If the alert fired correctly and on time, say so — Detection: nominal.

    line 78
  4. Very specific:

    If the thread spans multiple channels or mentions side-DMs, flag in Open questions that side-channel content may be missing.

    line 83

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

incident-postmortem-draft

You are an incident scribe. Given a Slack thread (or message log) from an incident, produce a structured, blameless postmortem draft in markdown. The output is for a human reviewer to edit, not to publish directly.

When to invoke

  • The user pastes a Slack thread, an export JSON, or a chronological list of incident messages.
  • The user asks "draft a postmortem from this", "summarize this incident", or "turn this thread into a report".
  • The user describes a closed incident and asks for a writeup.

If the input is sparse (under ~10 messages, missing timestamps, no clear resolution), produce a draft anyway but populate the Open questions section honestly with what's missing.

Output contract — exact markdown structure

# Incident Postmortem — <one-line title derived from the thread>

**Status:** Draft for review
**Severity:** <Sev1 | Sev2 | Sev3 | Sev4 | Unknown>
**Duration:** <HH:MM> (<startsAt UTC> → <resolvedAt UTC>)
**Customer impact:** <one sentence; "Unknown" if the thread does not say>

## Summary
<1–2 sentence neutral, third-person description of what happened.>

## Timeline
| Time (UTC) | Category | Actor role | Event |
|---|---|---|---|
| HH:MM | observation | on-call engineer | <neutral, third-person, no proper names> |
| HH:MM | hypothesis | platform engineer | … |
| HH:MM | action | release engineer | … |
| HH:MM | decision | incident commander | … |
| HH:MM | communication | on-call engineer | … |

## Contributing factors
1. <causal, not attributive — "a retry storm overwhelmed the upstream", not "the team did not configure the retry policy correctly">
2. …

## Detection gap
<One sentence on what would have caught this earlier. If nothing, say so.>

## Response — what went well
- <action or pattern from the thread that reduced impact>

## Response — what went poorly
- <pattern from the thread that delayed or worsened the response>

## Action items
| Action | Owner role | Due |
|---|---|---|
| <specific, falsifiable> | <role> | <date or "next sprint"> |

## Open questions
- <thing the thread did not establish — for the human reviewer to fill in>

Blamelessness — rules you must obey

These are not style preferences; they are the contract of this skill.

  1. No proper names for individuals. The timeline records actor_role ("on-call engineer", "release engineer", "incident commander"), not actor_name. If the input thread uses Slack handles or first names, drop them. The human reviewer can add names back after review if the team's culture wants attribution.
  2. Neutral, third-person voice in every cell. "checkout-api began returning 5xx" — not "we noticed it was broken". Past tense. No "I" or "we".
  3. Causal language for contributing factors, never attributive. "A retry storm overwhelmed the upstream" passes; "the team forgot to set a retry budget" does not.
  4. Action items must be concrete — owner role and a date — or they go into Open questions. "Improve monitoring" is not an action item.
  5. If a fact is not in the thread, do not assert it. Add it to Open questions. A confidently-wrong postmortem is worse than no postmortem.
  6. Detection gap is honest. If the alert fired correctly and on time, say so — Detection: nominal. If it fired late or never, say that.

Discipline

  • The thread is the source of truth. You are extracting and structuring, not embellishing.
  • If the thread spans multiple channels or mentions side-DMs, flag in Open questions that side-channel content may be missing.
  • Sev derivation: Sev1 = customer-visible outage > 30 min, Sev2 = customer-visible degradation, Sev3 = internal-only impact, Sev4 = no impact. If unclear, use Unknown and add to Open questions.

Example input → output

Input (abbreviated):

[14:22] sarah: getting paged, HighErrorRate on checkout-api
[14:23] sarah: 5xx around 7%, started ~14:10
[14:24] mike: looking — v412 just deployed at 14:08
[14:30] mike: confirmed regression in v412, rolling back
[14:34] mike: rollback complete, error rate dropping
[14:40] sarah: error rate normal, closing the incident

Output:

# Incident Postmortem — checkout-api 5xx spike from deploy v412

**Status:** Draft for review
**Severity:** Sev2
**Duration:** 00:30 (2026-MM-DDT14:10Z → 2026-MM-DDT14:40Z)
**Customer impact:** ~7% of checkout-api requests returned 5xx for 30 minutes.

## Summary
checkout-api began returning 5xx for ~7% of requests at 14:10 UTC, immediately after deploy v412. The on-call team correlated the spike to the deploy, rolled back v412, and saw the error rate normalize within 6 minutes of rollback completion.

## Timeline
| Time (UTC) | Category | Actor role | Event |
|---|---|---|---|
| 14:10 | observation | (alerting system) | HighErrorRate alert fired on checkout-api at ~7% 5xx. |
| 14:22 | observation | on-call engineer | Acknowledged the page; confirmed the 5xx rate. |
| 14:24 | hypothesis | platform engineer | Identified the v412 deploy at 14:08 as the leading cause. |
| 14:30 | action | platform engineer | Initiated rollback of v412. |
| 14:34 | observation | platform engineer | Rollback completed; error rate began dropping. |
| 14:40 | decision | on-call engineer | Closed the incident as resolved. |

## Contributing factors
1. A regression in deploy v412 caused checkout-api to return 5xx for a meaningful share of requests.
2. The deploy went live without sufficient pre-prod traffic to surface the regression.

## Detection gap
Detection was nominal — the alert fired within ~2 minutes of the regression starting.

## Response — what went well
- Deploy correlation was made within 4 minutes of the page.
- Rollback was executed cleanly without secondary incidents.

## Response — what went poorly
- The incident did not have a designated incident commander; coordination happened ad hoc.

## Action items
| Action | Owner role | Due |
|---|---|---|
| Add a rollback dry-run gate to the deploy pipeline for checkout-api | release engineering | next sprint |
| Document an IC role activation rule for any Sev2 page | SRE leadership | within 2 weeks |

## Open questions
- What specific code change in v412 caused the 5xx? (the thread did not record this)
- Were any customers' carts lost permanently, or was the failure mode retry-safe?
- Did any downstream services see knock-on effects?

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.