mcpbeat

Postmortem

boshu2/postmortem

Optionally test a retrospective causal question against durable verdict evidence. Triggers: "postmortem", "causal retrospective", "test a retrospective hypothesis".

1k tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
416
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/boshu2/agentops --skill postmortem

The instruction itself

6 sections, as written by the author

Postmortem

> Purpose: Answer an explicit retrospective causal question using the

> already-validated outcome and evidence.

Critical Constraints

  • Because proof and causal inference are different judgments, Postmortem is retrospective causal analysis, not the general learning umbrella and not a completion gate.
  • It consumes immutable Validate verdict evidence and does not re-run acceptance validation because Validate already owns that proof.
  • Treat causal statements as hypotheses because causal confidence must survive

alternatives. Separate observed sequence, contributing conditions,

counterfactuals, and unknowns.

  • A correlation is not promoted to cause without evidence that discriminates

plausible alternatives.

  • Because the caller owns delivery decisions, do not rewrite proof, operate

tracker state, change the remaining plan, or promote a rule. Return evidence

to the caller.

  • Empty or inconclusive analysis is valid; manufacture neither certainty nor a

lesson to make the retrospective feel useful.

Workflow

  • Pin the verdict, subject evidence, and explicit causal

question.

  • Reconstruct the evidence-backed timeline without importing hidden author

reasoning as fact.

  • List candidate contributing conditions and at least one plausible

alternative explanation.

  • Test each claim against cited evidence and a counterfactual: what should

differ if the claim were false?

  • Optionally use independent judges to challenge contested causal claims.
  • Emit a report containing supported claims, rejected claims, unknowns,

evidence references, and suggested experiments. Stop.

Correlation-to-cause discrimination

A fix is proven when the mechanism is demonstrated, not when symptoms stop.

Promoting a claim from correlation to cause requires all three:

  • a stated mechanism — the specific path by which the condition produced the

outcome, in terms a reader could check against the subject;

  • discriminating evidence — an observation that the mechanism predicts and at

least one plausible alternative does not;

  • a counterfactual test — what should have differed if the claim were false,

with the cited evidence showing it did differ.

Symptom disappearance after a change satisfies none of these on its own: the

change and the recovery may share an unobserved cause, or the symptom may be

intermittent. The named failure mode is post-hoc fix attribution — "we

changed X and the failure stopped, therefore X was the cause." Claims backed

only by symptom cessation stay in the report as correlations with the

untested alternatives listed, and the suggested experiment is the

discrimination that would settle them. Stop condition: every supported causal

claim in the report carries all three elements with citations; anything less

is filed under correlations or unknowns, never silently promoted.

Output Specification

  • Artifact directory: .agents/scratch/postmortem/.
  • Filename convention: YYYY-MM-DD-postmortem-<topic>.md.
  • Serialization/schema format: Markdown with causal question, pinned inputs,

timeline, hypotheses, evidence, counterfactuals, unknowns, and experiments.

  • Validator command: bash skills/postmortem/scripts/validate.sh.
  • Downstream handoff: Learn or the caller may consume the analysis; they own

any bookkeeping, promotion, planning, or delivery decision.

Quality Checklist

  • [ ] The causal question and immutable inputs are pinned.
  • [ ] Supported and rejected claims cite discriminating evidence.
  • [ ] Alternatives, counterfactuals, and unknowns remain visible.
  • [ ] The report stops short of proof, planning, tracker, and delivery authority.

Executable behavior is in postmortem.feature.

How to use it

Copy the folder

Take boshu2/postmortem from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.