agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/postmortem/SKILL.md

postmortem

Skill1 starsChanged 23 days agoMITView on GitHub

Writes a blameless postmortem for an incident: timeline, impact, root cause via 5-whys, what went well and badly, and action items turned into stories. Use after any SEV1/SEV2 incident, or for repeated SEV3s.

50 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 7 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

  • 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

  • seongjaeryuSkill

    organize

    Organize knowledge into Sets

    Also in 3 projects that use this

  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 5 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

  • +1 more from anthropics

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Run the five whys with observability-engineer and the owning lead.

    line 32

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

Writes production/incidents/YYYY-MM-DD-<slug>-postmortem.md (template .claude/docs/templates/postmortem.md) and turns action items into stories. Blameless: it describes systems and decisions, never people's failings.

Inputs

  • The incident file (argument); its timeline is the backbone
  • Related commits, the hotfix, the release notes for the triggering deploy
  • docs/architecture/runbook.md, alerts configuration

Phases

Phase 1: Reconstruct

From the incident file, build the timeline: trigger, detection (how and how long after the trigger), response, mitigation, resolution. Compute time-to-detect, time-to-mitigate and duration. Ask the user to fill gaps.

Phase 2: Root cause (5 whys)

Run the five whys with observability-engineer and the owning lead. Stop at a cause the team can change (a missing test, a missing alert, an unsafe migration pattern, an unclear runbook). Often there are several contributing factors; list each.

Phase 3: Reflect

  • What went well (detection, rollback worked, clear runbook)
  • What went badly
  • Where we got lucky

Phase 4: Action items

Each action item: what, why (which factor it addresses), type (prevent, detect, mitigate), owner agent, priority. Prefer systemic fixes (tests, alerts, guardrails, hooks) over "be more careful". Spawn producer to place them in the backlog.

Phase 5: Write

Show the draft and ask "May I write this to production/incidents/YYYY-MM-DD-<slug>-postmortem.md?" Then offer to create the action items as stories under production/stories/ (story format from the conventions, IDs via next-number.sh).

Output

The postmortem file; optional stories.

Next step

/sprint-plan to schedule the action items.

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.