agentleFS
augments-labsaugments-labs/sdlc-skills/skills/maintenance/post-mortem/SKILL.md

post-mortem

Skill1 starsChanged 4 months agoMITView on GitHub

Explains why safeguards missed a production escape, incident, loss, or failed work cycle, or why its impact grew, and what prevents it happening again. Use when a production escape, incident, material loss, or failed work cycle has been contained, or when the user asks how this reached production or what prevents another failed handoff. Establish any technical cause and immediate containment first; a process-only failure needs its event evidence. Skip ordinary bugs and ongoing uncontained impact.

8 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

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

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Write each corrective action as proposed, mapped to a structural cause, every action-row field filled.

    line 53
  2. Very specific:

    Ask through the harness's user-input action when one exists, else print this block.

    line 70

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

Explain why the failure escaped or grew, then measure whether each corrective control reduces recurrence, detection, or impact risk. Take the code-level cause from debugging; do not re-derive it. Close on deployed and falsified controls, never on reflection. For a process-only failure, use the observed event and decision trail; do not invent a code defect to enter this skill.

When to use

  • A failure reached users/production, escaped far downstream, caused real loss, or exposed a process failure worth correcting.
  • Skip an ordinary reproduced bug. For technical incidents, establish the technical cause and immediate containment first; unknown technical cause → debugging. A process-only failure begins from its evidenced events.

Step 1: Control the record

  1. Open assets/post-mortem-template.md when starting the analysis. Fill Control and evidence handling first: readers, lifetime, redaction, expected reviewers and approver rules.
  2. Fill Summary and impact and Timeline from artifacts, not memory. Mark every time observed or estimated.

Step 2: Find the structural cause

  1. Fill Root cause and contributing conditions: cite the technical cause from debugging when applicable, or the process-failure evidence, then each condition that made introduction or impact more likely. Name conditions, never a person. Keep several conditions separate.
  2. Fill Escape-path audit: freeze the gate and surface inventory with its source digest, then fill every column for each entry, with an accountable disposition per omission.
  3. Fill every bullet of Risk-reduction claim per action. Never claim recurrence is impossible.
  4. Challenge the draft. Fill assets/escape-path-challenger.md before dispatching it read-only per dispatching-parallel-agents Step 2; a serious incident without one needs the omission the Expected reviewers field requires. Disposition every finding; findings blocks issue until the corrected draft is challenged again.
  5. Issue the immutable analysis with its External lifecycle ledger to the user-set path or the template's path, under current storage authority, and record its identity per the template. In-repository record → a new candidate.

Step 3: Propose and get the actions accepted

  1. Write each corrective action as proposed, mapped to a structural cause, every action-row field filled.
  2. Present:

    Post-mortem {{identity}} — {{path}}
    Impact: {{one line}}  Structural cause: {{one line}}  Escaped gate: {{one line}}
    Actions: {{each with owner and date}}
    
    1. Accept the actions
    2. Request changes
    3. Reject the analysis
    4. Cancel
    
    Recommendation: {{the answer the evidence and ownership support}} — {{one sentence}}.

    Ask through the harness's user-input action when one exists, else print this block; end the turn; clarifying-intent owns what closes it.

  3. Move an action out of proposed only on a complete trusted receipt for the exact scope and dates. Record rejection, cancellation, or supersession with its residual risk and replacement.

Step 4: Prove and track the controls

  1. Falsify every corrective gate you implement. Fill Targeted fail-then-pass proof with raw evidence: fails on the captured incident or a representative bad case, passes on the good control, pre-fix version did not catch it.
  2. Track each control to an identity-bound receipt from the surface that enforces it: CI, runtime, review, release, alerting, recovery. Never infer from a summary.
  3. REQUIRED SUB-SKILL: invoke verification-strategy for any change to the battery itself. Add no duplicate gate nobody owns.
  4. At the predeclared date, compare baseline against target and check the gate ran. Write effective, ineffective, or inconclusive. Reopen on either of the last two unless the exact approver rule accepts closure with residual risk.
  5. Append every action state, proof, rollout result, and effectiveness verdict to the ledger; never edit the issued analysis.

Action states

Record in the external ledger (append-only, outside the issued analysis) proposed → {owner-accepted | rejected | cancelled | superseded}, and for accepted: implemented → falsified → deployed/enforced → effectiveness reviewed → effective → closed. Let no prose, merge, or local green skip a state.

Gotchas

  • An escape-path audit taken from today's gate list instead of the frozen inventory pinned to its source digest can end up describing the battery after the fix already landed — which makes every gate look fine and the audit worthless.
  • A Risk-reduction claim of "prevent" with no baseline, target, or horizon can never be marked effective or ineffective at the review date — only inconclusive, permanently.

Common mistakes

  • “Human error” or “reviewer missed it” instead of the conditions and absent gate that allowed the action to escape.
  • Publishing sensitive incident artifacts without access and retention controls.

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.