post-mortem

post-mortem is a skill for Claude Code, Codex from JansenAnalytics/claudex. It costs 28 tokens per session (599 once invoked), scanned A, original, MIT.

A structured report generator for incidents and failures. A post-mortem is a review of what went wrong, why it happened, what it affected, and how to prevent a repeat.

In plain words
What is it for?
Use it to create incident reports, build event timelines, assess impact, identify root causes, and track prevention tasks.
Why use it?
It turns production problems into documented causes, timelines, and follow-up actions instead of leaving lessons scattered or forgotten.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/generate-postmortem.sh \.

Good fit Use it to create incident reports, build event timelines, assess impact, identify root causes, and track prevention tasks.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/JansenAnalytics/claudex
agentmods
npx agentmods add skills/jansenanalytics/claudex/post-mortem

Made for: Claude Code, Codex.

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 post-mortem

README.md
[![agentmods](https://agentmods.dev/badge/skills/jansenanalytics/claudex/post-mortem/github.svg)](https://agentmods.dev/skills/jansenanalytics/claudex/post-mortem)
Your own site
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/post-mortem"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/post-mortem/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 post-mortem

Your own site · 80×15
<a href="https://agentmods.dev/skills/jansenanalytics/claudex/post-mortem"><img src="https://agentmods.dev/badge/skills/jansenanalytics/claudex/post-mortem.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 599 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.
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.00028 $0.00599
Opus 5.5 $0.00011 $0.00240
Sonnet 5.5 $0.00006 $0.00120
Haiku 4.5 $0.00003 $0.00060

Measured 2mo ago against content hash edab2fe3dac5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

post-mortem 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 2mo ago.

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.

skills/post-mortem/SKILL.md · 70 lines

How it starts

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

post-mortem

Generate structured post-mortems after incidents or failures: root cause analysis, timeline, impact assessment, prevention steps.

When to Use

  • Analyzing why something broke
  • Documenting incidents for the team
  • Creating action items after failures
  • Reviewing production issues
  • Running blameless retrospectives

How It Works

  1. Gather incident details (what happened, when, who noticed)
  2. Run generate-postmortem.sh to create a structured document
  3. Use timeline-builder.sh to construct a precise event timeline
  4. Use action-tracker.sh to extract and track action items
  5. Review references for blameless culture and root cause categories

Scripts

Script Purpose
generate-postmortem.sh Generate a full post-mortem document from parameters
timeline-builder.sh Build a formatted incident timeline from events
action-tracker.sh Extract, list, and track action items from a post-mortem

References

File Content
postmortem-template.md Full post-mortem template with all sections
blameless-guide.md Guide to running blameless post-mortems
root-cause-categories.md Common root cause taxonomy

Example Usage

# Generate a post-mortem document
bash scripts/generate-postmortem.sh \
  --title "API Gateway Outage" \
  --severity P1 \
  --date "2024-01-15" \
  --duration "2h 30m" \
  --summary "API gateway became unresponsive due to connection pool exhaustion" \
  --output postmortem-2024-01-15.md

# Build a timeline
bash scripts/timeline-builder.sh \
  --add "14:00 Monitoring alerts fire for high latency" \
  --add "14:05 On-call engineer acknowledges alert" \
  --add "14:15 Root cause identified: connection pool exhaustion" \
  --add "14:20 Fix deployed: increased pool size" \
  --add "14:30 Service fully recovered" \
  --output timeline.md

# Track action items
bash scripts/action-tracker.sh --extract postmortem-2024-01-15.md
bash scripts/action-tracker.sh --list postmortem-2024-01-15.md

Read the full file on GitHub · 70 lines

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. 2mo ago First seen · 70 lines · 28 tokens per session scan A edab2fe3dac5

Subscribe to this mod's changes

post-mortem is a skill published in the GitHub repository JansenAnalytics/claudex (5 stars, last pushed 5mo ago), licensed MIT. It adds 28 tokens to every session and 599 once invoked, about $0.0001 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-09-03.

Related

post-mortem compared with skills from other repositories

post-mortem next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
post-mortemJansenAnalytics/claudexSkill55mo agoMITA28Claude Code, Codex
repair-github-ciTracer-Cloud/opensreSkill17ktodayApache-2.0A40Claude Code, Codex
investigating-incidents-with-runbooksTracer-Cloud/opensreSkill17ktodayApache-2.0A35Claude Code, Codex
operating-github-ci-fixerTracer-Cloud/opensreSkill17ktodayApache-2.0A48Claude Code, Codex
summarizing-sentry-issuesTracer-Cloud/opensreSkill17ktodayApache-2.0A35Claude Code, Codex
analyzing-network-traffic-with-wiresharkmukul975/Anthropic-Cybersecurity-SkillsSkill37k3mo agoApache-2.0B49Claude Code
k8s-incident-triageinitializ/forgeSkill22310d agoApache-2.0A41Claude Code, Codex