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.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.svg" alt="Measured on agentmods" 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 $0.00014 $0.00300
Sonnet 5 $0.00006 $0.00120
Haiku 4.5 $0.00003 $0.00060

Measured 4d ago against content hash edab2fe3dac5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 4d 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. 4d 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 2mo ago), licensed MIT. It adds 28 tokens to every session and 599 once invoked, about $0.0001 per session on Opus 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

Other skills, from other repositories

analyzing-network-traffic-with-wireshark

Captures and analyzes network packet data using Wireshark and tshark to identify malicious traffic patterns, diagnose protocol issues, extract artifacts, and support incident response investigations on authorized network segments.

mukul975/Anthropic-Cybersecurity-Skills · 49 tokens

analyzing-memory-dumps-with-volatility

Analyzes RAM memory dumps from compromised systems using the Volatility framework to identify malicious processes, injected code, network connections, loaded modules, and extracted credentials. Supports Windows, Linux, and macOS memory forensics. Activates for requests involving memory forensics, RAM analysis…

mukul975/Anthropic-Cybersecurity-Skills · 80 tokens

k8s-incident-triage

Read-only Kubernetes incident triage using kubectl. Accepts natural language or structured input. Produces root-cause hypotheses, evidence, and next-step commands.

initializ/forge · 41 tokens

Debugging Strategies

Advanced debugging patterns for test failures covering root cause analysis, flakiness investigation, performance debugging, and systematic troubleshooting methodologies.

PramodDutta/qaskills · 28 tokens

Flaky Test Doctor

Diagnose flaky test failures from Playwright reports, traces, and rerun history. Classify each failure as product, test, environment, data, or unknown with cited evidence and a proposed fix. Never auto-modifies code without opt-in.

PramodDutta/qaskills · 54 tokens

Incident Response & Digital Forensics

IR playbook execution, evidence collection, forensic timeline analysis, memory forensics, and post-incident reporting following NIST SP 800-61 and SANS PICERL methodology.

Masriyan/Claude-Code-CyberSecurity-Skill · 43 tokens