agentleFS
CassioRoosCassioRoos/godfly-skills/skills/premortem-postmortem/SKILL.md

premortem-postmortem

Skill1 starsChanged 3 months agoMITView on GitHub

Run premortems before risky work and postmortems after incidents or failures. Use when the user asks for premortem, postmortem, incident review, retrospective, launch risk, "how will this fail", or "what killed this". Build the causal chain from evidence and produce the premortem/postmortem document with owners and verification.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    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:

    Use premortems to prevent predictable failure.

    line 15
  2. Distinctive:

    Do not hunt for a single root cause when the evidence shows a chain.

    line 58
  3. Distinctive:

    Ask why detection failed or succeeded.

    line 65
  4. Distinctive:

    Add regression tests, monitors, runbooks, or guardrails.

    line 67
  5. Distinctive:

    Do not accept "human error" as a root cause.

    line 97

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Premortem / Postmortem

Use premortems to prevent predictable failure. Use postmortems to learn without rewriting history.

Premortem

Frame it as: "It is six months after launch. This failed badly. What killed it?"

Steps:

  1. Define success in measurable terms.
  2. List failure causes independently before filtering.
  3. Classify causes:
    • Real threats: plausible, damaging, actionable.
    • Noise: scary but unlikely or unactionable.
    • Avoided truths: politically or emotionally uncomfortable risks.
  4. Score real threats by impact, likelihood, and detectability.
  5. Turn the top threats into controls, owners, and validation tests.
  6. Define launch gates and rollback triggers.

Premortem output:

## Success Definition

## Failure Story

## Top Failure Causes
- Cause:
  Class:
  Evidence:
  Impact:
  Likelihood:
  Detectability:
  Prevention:
  Detection:
  Owner:

## Launch Gates

## Rollback Triggers

Postmortem

Do not hunt for a single root cause when the evidence shows a chain. Most failures are systems failures.

Steps:

  1. Build a timeline from evidence: logs, metrics, deploys, alerts, commits, tickets, user reports.
  2. Separate facts from interpretations.
  3. Identify contributing factors across code, process, config, monitoring, docs, and decision-making.
  4. Ask why detection failed or succeeded.
  5. Define corrective actions with owners and deadlines.
  6. Add regression tests, monitors, runbooks, or guardrails.

Postmortem output:

## Impact

## Timeline

## What Happened

## Contributing Factors

## Detection And Response

## What Worked

## What Failed

## Corrective Actions
- Action:
  Owner:
  Due:
  Verification:

## Follow-up Risks

Rule

Do not accept "human error" as a root cause. Human error is where the investigation starts.

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.