# Incident postmortem

> Incident postmortem is an open-source agent skill for developer tools. Guides the agent to write a blameless postmortem with timeline, 5-whys and action items. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ajyadav013/claude-kit/tree/main/skills/incident-postmortem
- **Repository:** https://github.com/ajyadav013/claude-kit
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** incident-postmortem
- **Collection:** https://github.com/ajyadav013/claude-kit
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill walks the agent through documenting a production incident after it has been resolved. It focuses on systems and process rather than individuals, and it produces a structured writeup that separates the trigger of an incident from the underlying root cause. The agent is directed to reconstruct the timeline in UTC from incident logs, git history, deploy records and monitoring data, then work backward through a 5-whys analysis to a systemic cause.

The writeup follows a fixed template saved under docs/incidents, covering summary, impact, timeline, root cause, contributing factors, what went well or poorly, and a table of action items. Each action item is meant to be owned, dated and ideally a systemic fix such as an alert, test, hook or gate. The skill also suggests recording reusable pitfalls as durable lessons in the agent memory folder.

The skill expects access to an incident log or the team's deploy and logging history, and it pairs with an incident-responder agent that runs the incident itself. The bundled files are a single SKILL.md with no scripts.

## When your agent uses it

> Write a blameless postmortem after a production incident is resolved. Use for an RCA, or when the user says postmortem/RCA/writeup. Produces timeline, 5-whys root cause, and tracked action items.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/incident-postmortem)
- [License: MIT](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/incident-postmortem)

## Features

- **Blameless root cause analysis:** Guides the writeup toward system and process causes rather than individual blame.
- **Timeline reconstruction:** Builds a UTC timeline covering detection, mitigation and resolution from available records.
- **5-whys investigation:** Walks past the immediate trigger to the systemic gap that allowed the incident.
- **Trigger versus cause:** Separates what set off the incident from why the system permitted it.
- **Postmortem template:** Provides a markdown template with impact, contributing factors and action items.
- **Tracked action items:** Requires owned, dated follow-ups, preferring alerts, tests or gates.

## Good for

- Write a postmortem for last night's production outage
- Run a 5-whys root cause analysis on a failed deploy
- Document a near-miss so the team can learn from it
- Turn the incident log and deploy history into a timeline
- Draft action items to prevent a database migration from recurring

## Install

### Claude Code

This skill ships in the `claude-kit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kit
```

Or copy only this skill to `~/.claude/skills/incident-postmortem`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/incident-postmortem &&
cp -R "$tmp/skills/incident-postmortem" ~/.claude/skills/incident-postmortem &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/incident-postmortem` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/incident-postmortem` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/incident-postmortem &&
cp -R "$tmp/skills/incident-postmortem" ~/.agents/skills/incident-postmortem &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/incident-postmortem` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/incident-postmortem` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/incident-postmortem &&
cp -R "$tmp/skills/incident-postmortem" ~/.cursor/skills/incident-postmortem &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/incident-postmortem` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ajyadav013/claude-kit.git --path skills/incident-postmortem
```

Or copy the folder to `~/.gemini/skills/incident-postmortem` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/incident-postmortem`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/incident-postmortem &&
cp -R "$tmp/skills/incident-postmortem" ~/.copilot/skills/incident-postmortem &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/incident-postmortem` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git
```

Then copy `claude-kit/skills/incident-postmortem` into your agent's skills folder as `incident-postmortem`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Incident postmortem trigger?

It is meant for use after a production incident is resolved, or when the user asks for an RCA, a postmortem or a writeup.

### Where is the postmortem saved?

The template targets a file path under docs/incidents using the date and a slug in the name.

### Does Incident postmortem run any scripts or tools?

No scripts are included. It directs the agent to read incident logs, git history, deploy records and monitoring tools.

### Does Incident postmortem work with a specific AI client?

The skill is distributed as a Claude Code plugin through the claude-kit marketplace, and it follows the standard SKILL.md format.

### How do I install Incident postmortem in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/incident-postmortem to use it in all your projects, or to .claude/skills/incident-postmortem in one project. Or install the claude-kit plugin, which includes it: /plugin marketplace add ajyadav013/claude-kit, then /plugin install claude-kit@claude-kit.

### Does Incident postmortem run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Incident postmortem?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Incident postmortem?

The closest alternatives to Incident postmortem are Incident postmortem, Incident triage, Skill hardening from incidents, Agent introspection debugging and Observability gap.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Incident postmortem](https://ai-powered.com/skills/incident-postmortem): Incident postmortem is an open-source agent skill for files and documents.
- [Incident triage](https://ai-powered.com/skills/incident-triage-rpraharaj): Incident triage is an open-source agent skill for developer tools.
- [Skill hardening from incidents](https://ai-powered.com/skills/skill-hardening-from-incidents): Skill hardening from incidents is an open-source agent skill for developer tools.
- [Agent introspection debugging](https://ai-powered.com/skills/agent-introspection-debugging-fmarzochi): Agent introspection debugging is an open-source agent skill for developer tools.
- [Observability gap](https://ai-powered.com/skills/observability-gap): Observability gap is an open-source agent skill for developer tools.
- [Incident triage](https://ai-powered.com/skills/incident-triage): Incident triage is an open-source agent skill for developer tools.
- [Agent introspection debugging](https://ai-powered.com/skills/agent-introspection-debugging): Agent introspection debugging is an open-source agent skill for developer tools.
- [Why](https://ai-powered.com/skills/why-michael-denyer): Why is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/incident-postmortem-ajyadav013-2
