agentleFS
carlkiblercarlkibler/agent-skills/skills/post-mortem/SKILL.md

post-mortem

Skill6 starsChanged 4 months agoMITView on GitHub

Analyze a failure, find its cause, capture learnings, and prevent recurrence.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use management-talk and scrutinize.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • thananonSkill

    management-talk

    Rewrite engineer-to-engineer content for engineering-org leadership (VPs, directors, PMs, release managers, execs in an engineering-savvy company) and shape it for the channel it is going to — JIRA comment, Slack post, async standup line, email, or meeting talking-points. Trigger when the user asks to write/rewrite for management / exec / VP / director / PM / release manager, asks for an "executive summary / leadership update / status update", says "make this less technical / less jargony", or asks for a slack / email / standup / meeting version of work originally written engineer-to-engineer.

    Also in 3 projects that use this

  • jpsweeney97Skill

    scrutinize

    Use when the user explicitly wants a harsher-than-normal critical review of a plan, design, draft, argument, decision, or code artifact. Trigger on requests like "scrutinize this", "be brutal", "tear this apart", "assume this is wrong", "reject until proven otherwise", or "review this with maximum scrutiny". Challenge the premise first, then run two passes that search for flaws, omissions, weak assumptions, second-order effects, edge cases, and hidden dependencies. Do not use for routine code review, collaborative editing, or balanced feedback when the user did not ask for an adversarial stance.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After a launch that generated unexpected support volume

    line 19
  2. Distinctive:

    After a bug that reached production users

    line 20
  3. Distinctive:

    After a process failure (deploy, migration, onboarding flow breakdown)

    line 21
  4. Distinctive:

    After a trust incident (user data exposed, billing error, unintended mutation)

    line 22
  5. Distinctive:

    After a failed launch or major negative user reaction

    line 23
  6. Distinctive:

    Before launch (use pre-mortem)

    line 27
  7. Distinctive:

    Ask (or infer from context):

    line 37
  8. Distinctive:

    If git log, bug reports, Slack excerpts, or error logs are available — read them.

    line 45
  9. Distinctive:

    If any of the above skills are installed, offer to update them:

    line 104

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “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

Post-Mortem

The mirror of pre-mortem. Used AFTER something broke, not before. The goal isn't blame — it's extraction: what can we learn, and where does that learning live so the next project benefits?

When to Use

  • After a launch that generated unexpected support volume
  • After a bug that reached production users
  • After a process failure (deploy, migration, onboarding flow breakdown)
  • After a trust incident (user data exposed, billing error, unintended mutation)
  • After a failed launch or major negative user reaction

When NOT to Use

  • Before launch (use pre-mortem)
  • For bugs that were caught before they hit users (those go straight to fixes)
  • Blame-first analysis (a post-mortem that starts with "who screwed up" isn't a post-mortem)

<process>

Phase 1: Gather the Incident Facts

Ask (or infer from context):

  1. What broke — one sentence description of the failure
  2. When — approximate timeline (when did it start, when was it noticed, when was it resolved)
  3. Who was affected — which users, how many, what was their experience
  4. How it was discovered — user report, monitoring alert, internal discovery, social media
  5. What was the fix — what resolved it

If git log, bug reports, Slack excerpts, or error logs are available — read them.

Phase 2: Reconstruct the Timeline

Build a factual timeline. Format:

[TIME] [EVENT]
T-48h: Feature deployed to production
T-24h: First user report (ignored as edge case)
T-0: Support volume spike — 15 tickets in 2 hours
T+2h: Root cause identified
T+4h: Fix deployed
T+6h: Support tickets resolved

Phase 3: Root Cause Analysis (5 Whys)

Apply the 5 Whys technique:

  1. Why did this happen? [immediate cause]
  2. Why did [cause 1] happen? [contributing factor]
  3. Why did [factor 2] exist? [systemic reason]
  4. Why did [reason 3] go unaddressed? [process gap]
  5. Why did [gap 4] persist? [root cause]

State the root cause explicitly: "Root cause: [X]"

Also classify the failure mode:

  • Missing check — we didn't verify something we should have
  • Wrong assumption — we assumed X was true; it wasn't
  • Process gap — no process existed for this scenario
  • Communication failure — the right person didn't know the right thing
  • Known risk accepted — we knew this could happen, chose to proceed

Phase 4: Multi-Perspective Analysis

Launch 2 parallel subagents with different lenses (or work through both lenses in turn if subagents are unavailable). Give each the Phase 1-3 facts and require evidence from them, not speculation:

Subagent 1 — User Impact Analyst Focus on the user experience of the failure. What did affected users actually experience? What did they feel? What did they do (contact support, churn, post publicly, complain to friends)? What was the trust damage? How long does it take them to fully recover trust?

Subagent 2 — Systems Analyst Focus on the technical and process failure. What signals were available before the failure that were ignored? Where did detection fail? Where did response fail? What would have caught this earlier?

Phase 5: Learnings Extraction

For each finding, decide where it should live:

FindingRoute to
"We didn't check X before launch"Add to pre-mortem checklist
"Users complained about Y"Add to support-storm simulation list
"Permission Z surprised users"Add to trust-audit surface list
"Onboarding step W caused confusion"Add to first-contact red-team
"Decision about V had no documented rationale"Create decision-log entry

Feed Learnings Back (IMPORTANT)

If any of the above skills are installed, offer to update them:

For each learning that routes to a skill:

  1. State the learning explicitly
  2. State which skill should incorporate it
  3. Offer to show the specific addition to make to that skill's SKILL.md

Example:

LEARNING: Users didn't realize the app was scanning their contacts until they saw a system permission dialog.
→ Add to trust-audit: "Check: does the app request contact/location/camera access? Is the reason communicated before the system dialog?"

Phase 6: Action Items

Produce a numbered list of concrete actions:

  • Immediate fixes (within 24h)
  • Short-term improvements (within 2 weeks)
  • Process changes (ongoing)

Each action: who, what, by when (if known).

Phase 7: Report

## Post-Mortem: [Incident Name]

**Date of incident:** [date]
**Duration:** [time from start to resolution]
**User impact:** [count or estimate]
**Severity:** Critical / High / Medium / Low

### Timeline
[reconstructed timeline]

### Root Cause
[root cause statement]

### Contributing Factors
[list]

### What Went Well
[what worked during the response]

### Learnings
[learnings with skill routing]

### Action Items
[numbered list]
</process>

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.