Skills for Real Engineers. Straight from my .agents directory.
agent-incident-postmortem
Agent skill frommohitagw15856/pm-claude-skills
Run a blameless postmortem for an incident caused by an AI agent or LLM feature — hallucinated facts shipped to users, runaway tool use, prompt injection, cost blowouts, or wrong actions taken autonomously. Use when asked to write up an AI incident, analyse why an agent did something wrong, or produce corrective actions after an LLM failure. Produces a structured postmortem with trace reconstruction, a root-cause layer analysis, and corrective actions including a permanent regression case. For non-AI production incidents use incident-postmortem.
How to install agent-incident-postmortem
npx skills add mohitagw15856/pm-claude-skills# or add only this skill to Claude Code: copy the folder
skills/agent-incident-postmortem/
# into
~/.claude/skills/agent-incident-postmortem/ (all projects)
.claude/skills/agent-incident-postmortem/ (one project)
1# Agent Incident Postmortem Skill23AI incidents differ from outages: the system didn't go down — it did something wrong, confidently, and maybe only once. This skill adapts blameless postmortem practice to nondeterministic systems, where "can we reproduce it?" needs traces, not just steps.45## What This Skill Produces67- A **blameless postmortem document** with timeline and user/business impact8- A **trace reconstruction** of what the agent saw, decided, and did9- A **root-cause analysis across the AI failure layers** (not "the model hallucinated" as a conclusion)10- **Corrective actions** — always including a new permanent case in the regression suite1112## Required Inputs1314Ask for (if not already provided):15- **What the agent did** and what it should have done16- **The trace** — the full request: system prompt, context, tool calls and results, output. If no trace exists, that absence is itself a finding17- **Blast radius** — how many users/requests, over what window, and whether it's ongoing18- **Detection** — how it was noticed (user report? monitor? luck?) and how long after it started1920## Root-Cause Layers2122Walk the layers in order; the root cause is usually the *earliest* layer that could have prevented the outcome. "The model was wrong" is a starting point, never the conclusion — models are known to be fallible, so the question is what let a fallible output become an incident.2324| Layer | Ask |25|---|---|26…
Excerpt shown under the repository's MIT license.
More skills in pm-claude-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
