agentleFS
tejastn10tejastn10/workbench/skills/incident/postmortem/SKILL.md

postmortem

Skill1 starsChanged 2 months agoMITView on GitHub

Write a blameless postmortem using the template — table header, timezone-stamped timeline, root cause traced end to end, owned and dated action items. Systems and decisions, never people. Use when asked to "write a postmortem", "do the incident writeup", "RCA for X", after a SEV is resolved.

44 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use hypothesis-driven-debugging, status-report and 8 more.

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.
  • Sturla22Skill

    hypothesis-driven-debugging

    Debug by ranking concrete hypotheses and running discriminating checks. Use when a bug is hard to localize, many plausible failure points exist, logs are noisy or misleading, a symptom appears intermittently, or trial-and-error edits haven't worked.

    Also in 3 projects that use this

  • AnthropicSkill

    status-report

    Generate a status report with KPIs, risks, and action items. Use when writing a weekly or monthly update for leadership, summarizing project health with green/yellow/red status, surfacing risks and decisions that need stakeholder attention, or turning a pile of project tracker activity into a readable narrative.

    Also in 3 projects that use this

  • seongjaeryuSkill

    organize

    Organize knowledge into Sets

    Also in 3 projects that use this

  • SaluteYBSkill

    skill-eval

    Evaluate, tune, and regression-check AgentSkills. Use when creating a new skill or improving an existing one and you need structured should-trigger, should-not-trigger, boundary-case, and execution-quality examples. Also use when auditing overlapping skills and sharpening trigger descriptions before release.

    Also in 3 projects that use this

  • neurofooSkill

    premortem

    Pre-mortem analysis that imagines a plan has failed, then works backward to identify causes and preventions. Use before launches, major decisions, or risky initiatives to surface hidden risks.

    Also in 3 projects that use this

  • OpenAISkill

    threat-model

    Use when Codex is already in the threat-modeling phase of a security scan, the user explicitly invokes $threat-model, or the user explicitly asks to create, update, or persist a repository threat model. Do not use as the primary trigger for full PR, commit, branch, patch, or repository scans.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 40 edited versions we read keep these.

  • 1

    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:

    Timely: Write within a few days, while the timeline is still recoverable from memory and chat history.

    line 18

“Common” is measured: kept by at least 6 in 10 of the 40 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

Postmortem

Fills in docs/templates/POSTMORTEM.md.

Principles

  • Blameless. Describe systems, code, and decisions — never individuals. Use roles ("the on-call", "the deploy") not names. If a human action contributed, the finding is "the system allowed / didn't catch it", not "person X did Y".
  • Mechanism over narrative. The root cause is a traced chain, the same standard as incident/investigate-bug — which change, which condition, which interaction.
  • Timely. Write within a few days, while the timeline is still recoverable from memory and chat history.

Process

  1. Rebuild the timeline from alerts, chat, deploy logs, dashboards. Timezone- stamp every entry: detection, escalation, each diagnostic step, mitigation, confirmation of recovery.
  2. Quantify impact — requests failed, users affected, duration, data loss, SLA. Real numbers, not "some users".
  3. Trace the root cause end to end, including contributing factors (what made it possible, what made it worse, why it wasn't caught sooner).
  4. Separate mitigation from fix — what stopped the bleeding vs the permanent change (link the PR).
  5. Analyse detection — how it was found, time-to-detect, and why that long.
  6. What went well / poorly / got lucky — honest, specific.
  7. Action items — every one concrete, owned, dated, tracked. Order: prevent first, then detect faster, then respond faster. Don't let it become a wishlist; 3–6 real items beats 20 aspirational ones.
  8. Save to docs/incidents/YYYY-MM-DD-<slug>.md. Status Resolved → Closed once action items are filed.

House conventions

  • Header is a table. One --- between every section. Emoji H2s as in the template.
  • Severity: SEV1 (major outage / data loss), SEV2 (significant degradation), SEV3 (minor / contained).
  • Conventional-commit: docs: add postmortem for <incident>.

Anti-patterns

  • ❌ Naming or implying blame on a person.
  • ❌ "Human error" as a root cause — that's where the analysis starts, not ends.
  • ❌ A vague timeline with no timestamps.
  • ❌ Action items with no owner or no date.
  • ❌ Conflating the mitigation with the permanent fix.

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.