Agent Incident Postmortem logo

Agent Incident Postmortem

CommunityPopular
mohitagw15856
agent-incident-postmortem

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.

Overview

Publishermohitagw15856
Repositorypm-claude-skills
Skill nameagent-incident-postmortem
Stars
1.4K
Forks
240
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by mohitagw15856 on GitHub. Read the source before you install it.

Installation

Install the Agent Incident Postmortem AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mohitagw15856/pm-claude-skills.git /tmp/pm-claude-skills
mkdir -p .claude/skills
cp -r /tmp/pm-claude-skills/exports/openclaw/agent-incident-postmortem .claude/skills/agent-incident-postmortem
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Agent Incident Postmortem in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Agent Incident Postmortem on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Agent Incident Postmortem is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Agent Incident Postmortem Skill

AI 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.

What This Skill Produces

  • A blameless postmortem document with timeline and user/business impact
  • A trace reconstruction of what the agent saw, decided, and did
  • A root-cause analysis across the AI failure layers (not "the model hallucinated" as a conclusion)
  • Corrective actions — always including a new permanent case in the regression suite

Required Inputs

Ask for (if not already provided):

  • What the agent did and what it should have done
  • The trace — the full request: system prompt, context, tool calls and results, output. If no trace exists, that absence is itself a finding
  • Blast radius — how many users/requests, over what window, and whether it's ongoing
  • Detection — how it was noticed (user report? monitor? luck?) and how long after it started

Root-Cause Layers

Walk 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.

LayerAsk
Input / contextWas the context wrong, stale, contradictory, or poisoned (injection)? Did retrieval feed it bad ground truth?
Model behaviourGiven that context, was the output a foreseeable failure mode (fabrication under missing data, over-compliance with injected text)?
GuardrailsWhat check should have caught this output and didn't exist / didn't fire? (schema validation, groundedness check, action allow-list)
Action layerWhy could the wrong output become a real action or reach a user without the appropriate gate for its risk level?
DetectionWhy did we learn about it this way, this late? What signal would have caught it in minutes?

Nondeterminism Discipline

  • Reproduce with the trace, not the anecdote: replay the exact context; then re-run N times to measure frequency — a 1-in-20 failure at 10k requests/day is 500 incidents/day.
  • Pin everything when replaying: model version, prompt version, temperature, tool results.
  • If it can't be reproduced: say so, keep the trace as the evidence, and treat frequency as unknown — not as "rare".

Output Format

AI Incident Postmortem: [title] — [date]

Severity: [level] · Status: [resolved/monitoring] · Owner: [name]

Summary: [3 sentences: what the agent did, impact, root cause layer]

Impact: [users/requests affected, window, cost, trust/regulatory dimension]

Timeline: [first bad output → detection → mitigation → resolution, with the detection gap called out]

Trace reconstruction: [what was in the window; which tool calls ran; where the path diverged from intended behaviour]

Root cause by layer:

LayerFinding
Input/context
Model behaviour
Guardrails
Action layer
Detection

Reproduction: [replayed? failure frequency over N runs / not reproducible — evidence is the trace]

Corrective actions:

ActionLayerOwnerDue
Add this trace as a permanent regression caseeval
[guardrail/monitor/context fix]

What went well / what got lucky: [both, honestly]

Quality Checks

  • The postmortem is blameless toward humans and useful about the system — "prompt engineer error" and "model hallucinated" are both banned conclusions
  • Root cause identifies the earliest layer that could have prevented impact, not just the layer that misbehaved
  • The trace (or its absence) is in the document; findings cite it
  • Failure frequency was measured or explicitly marked unknown
  • Corrective actions include the permanent regression case and at least one detection improvement

Anti-Patterns

  • Do not close with "improved the prompt" as the only action — the same class of output must also be caught by a guardrail or gate next time
  • Do not assess frequency from one replay — nondeterministic failures hide at low temperatures and reappear at scale
  • Do not skip the injection question when any untrusted text (web, user docs, tickets) was in the window
  • Do not let "the model will be better next version" close an action item — upgrades are migrations (see model-migration-plan), not fixes
  • Do not write it as an outage report — the system was up; the failure was behavioural, and the doc must analyse behaviour

Frequently asked questions

What does the Agent Incident Postmortem AI skill do?

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.

Why use Agent Incident Postmortem on TypingMind?

Because you install it once and use it with any model. Agent Incident Postmortem is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Agent Incident Postmortem in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mohitagw15856/pm-claude-skills/tree/main/exports/openclaw/agent-incident-postmortem. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Agent Incident Postmortem?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Agent Incident Postmortem?

As many as you like. As long as a model supports skills, you can use Agent Incident Postmortem with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Agent Incident Postmortem AI skill free?

Yes. It is published on GitHub by mohitagw15856 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇