postmortem

postmortem is a skill for Claude Code from boshu2/agentops. It costs 41 tokens per session (1,622 once invoked), scanned A, original, Apache-2.0.

A retrospective analysis tool for testing a specific explanation of an outcome against evidence that has already been validated. It separates what happened from possible causes, alternatives, and unknowns.

In plain words
What is it for?
Use it to investigate a causal question after an outcome, compare possible explanations, and return evidence for the person responsible for delivery decisions.
Why use it?
It helps teams examine why something happened without confusing a sequence of events with proof of cause. It also avoids inventing a confident lesson when the evidence is inconclusive.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the agentops plugin — 25 skills shipped together

Good fit Use it to investigate a causal question after an outcome, compare possible explanations, and return evidence for the person responsible for delivery decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/boshu2/agentops/postmortem
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add boshu2/agentops --skill postmortem
Clone the repo
git clone --depth 1 https://github.com/boshu2/agentops

Made for: Claude Code.

Or install agentops, the plugin that ships this one along with the rest of its 25 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for postmortem

README.md
[![agentmods](https://agentmods.dev/badge/skills/boshu2/agentops/postmortem/github.svg)](https://agentmods.dev/skills/boshu2/agentops/postmortem)
Your own site
<a href="https://agentmods.dev/skills/boshu2/agentops/postmortem"><img src="https://agentmods.dev/badge/skills/boshu2/agentops/postmortem/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for postmortem

Your own site · 80×15
<a href="https://agentmods.dev/skills/boshu2/agentops/postmortem"><img src="https://agentmods.dev/badge/skills/boshu2/agentops/postmortem.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,622 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01622
Opus 5.5 $0.00016 $0.00649
Sonnet 5.5 $0.00008 $0.00324
Haiku 4.5 $0.00004 $0.00162

Measured 19d ago against content hash 83b01ffc487c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

postmortem scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/postmortem/SKILL.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Postmortem

Answer an explicit retrospective causal question about a completed or stopped goal, session, change or incident from its actual intent, outcome and judgment evidence. Neighbours: how a plan not yet run could fail is Premortem; whether a finished change meets acceptance is Validate.

First check: correlation or cause?

Treat every causal statement as a hypothesis, including the one the caller arrives with. 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 cited evidence showing it did differ.

Post-hoc fix attribution, "we changed X and the failure stopped, therefore X was the cause", satisfies none of these alone: the symptom may be intermittent, or the recovery and the change may share an unobserved cause. Keep such claims as correlations, name the alternatives still standing, and suggest the discriminating experiment; a recommendation built on an unproven cause is framed as that experiment, not as a supported change. Rejecting a claim needs discriminating evidence too, or a prediction of the claim that the evidence contradicts. Anything less stays a correlation or an unknown.

Critical Constraints

  • Postmortem is retrospective causal analysis, not the general learning umbrella or a code-acceptance gate: code judgment never waits on it, and Plan's code plus a retrospective rule keeps the two separate when both are requested.
  • If the outcome is not yet known and no interim analysis was asked for, say so and ask whether to analyze up to now. An interim analysis pins the cutoff and pending checks; its conclusions cover that interval, not a final outcome.
  • It does not re-run acceptance validation, change existing verdicts or fabricate missing proof. An existing Validate verdict (verdict.v2) is optional evidence; its absence does not exclude a stopped or unvalidated subject.
  • Because the caller owns subsequent action, do not rewrite proof, operate tracker state, change the remaining plan, reopen work or promote a rule.
  • Empty or inconclusive analysis is valid; recommend no change when warranted. Manufacture neither certainty nor a lesson.

Read the full file on GitHub · 136 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed · -12 lines 83b01ffc487c
  2. 29d ago Changed 93ef2dcbc1f2
  3. 1mo ago Changed · -15 lines 13b3f75b4648
  4. 1mo ago Changed · -1 lines · +4 tokens per session 349f211edf07
  5. 1mo ago Changed · +26 lines ea3ef2b9ce6c
  6. 1mo ago Changed · +42 lines · +2 tokens per session 5b1ead6c93a4
  7. 2mo ago Changed · -27 lines 6ec961c31ad4
  8. 2mo ago Changed · -7 lines a9a6e157ea47
  9. 2mo ago Changed · +23 lines 505f379fd171
  10. 3mo ago First seen · 107 lines · 35 tokens per session scan A e46937a20b5d

Subscribe to this mod's changes

postmortem is a skill published in the GitHub repository boshu2/agentops (464 stars, last pushed yesterday), licensed Apache-2.0. It adds 41 tokens to every session and 1,622 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

postmortem compared with skills from other repositories

postmortem next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
postmortemboshu2/agentopsSkill464yesterdayApache-2.0A41Claude Code
brainstormOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A85Claude Code, Codex
audit-projectOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A50Claude Code, Codex
commit-push-prOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A46Claude Code, Codex
commitOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A46Claude Code, Codex
duetOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A28Claude Code, Codex
prototypeOutlineDriven/odin-claude-pluginSkill402mo agoApache-2.0A36Claude Code, Codex