bug-autopsy

Generate blameless, evidence-cited post-mortems for resolved defects and incidents.

1|Updated May 28, 2026
One-click install
npx skills add https://github.com/dhanesh/agent-skills --skill bug-autopsy-dhanesh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bug-autopsy
Source: https://github.com/dhanesh/agent-skills/tree/main/bug-autopsy
Command: npx skills add https://github.com/dhanesh/agent-skills --skill bug-autopsy-dhanesh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve? After a bug or outage is fixed, the lessons usually evaporate — timelines live in chat threads, root causes stay in someone's head, and the same defect class recurs. This Skill turns a resolved failure into a durable, auditable post-mortem: a timestamped timeline reconstructed from git history, logs, CI runs, and issue threads, a 5-Whys chain that stops at a systemic cause rather than a person, and prevention items phrased as checkboxes with owners. ## Core Features & Use Cases - Evidence-disciplined timeline reconstruction: Every entry cites a commit sha, file:line, CI run, or log timestamp; unbacked reconstruction is explicitly labeled as inference. - Blameless 5-Whys root cause analysis: Chains run at least three levels deep and stop at systemic causes, with a translation table for converting person-shaped answers into system questions. - Deterministic structural linter: A stdlib-only Python script enforces required sections, timestamps, evidence citations, checkbox prevention items, and warns on blame-y phrasing. - Use Case: After a cache regression serves cross-tenant data, ask the agent to autopsy it — it reconstructs the timeline from git and CI records, chases the root cause to a missing test invariant, and persists a lint-clean post-mortem into the repo's OKF knowledge bundle. ## Quick Start Ask the agent to post-mortem a resolved failure, for example: autopsy the cache regression from last week and write up why it happened.

Frequently Asked Questions about bug-autopsy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a blameless post-mortem for a bug or outage?▼

Ask the agent to autopsy the resolved failure. It scopes the blast radius, reconstructs a timestamped timeline from git, logs, and CI evidence, runs a 5-Whys chain to a systemic cause, and writes a post-mortem with checkbox prevention items that a linter verifies.

How to run a 5-Whys root cause analysis on an incident?▼

Start from the user-visible failure and ask why down the causal chain, evidencing each level with a commit, file:line, or log reference. Go at least three levels deep and stop at the first systemic cause — a missing guardrail or test — never at a person.

What does the post-mortem linter check?▼

The linter enforces required sections (Summary, Impact, Timeline, Root cause, Contributing factors, Fix, Prevention, Links), timestamps and evidence citations on every timeline entry and why, a whys chain at least three levels deep, and checkbox prevention items with owners. Blame-y phrasing produces warnings, not failures.

Can I use this for a live incident that is still ongoing?▼

No. The skill explicitly excludes live debugging and on-call triage of a still-burning incident — stabilize first, then autopsy after. It also does not cover understanding healthy systems or auditing codebase claims.

Does the post-mortem linter need external dependencies?▼

No. The linter is stdlib-only Python 3, runs offline, and is deterministic. Git history, CI logs, and issue-tracker access improve evidence quality but are optional; the workflow degrades to whatever records exist.

Where are post-mortems stored after they are written?▼

Post-mortems are persisted as Postmortem concepts in an Open Knowledge Format bundle, typically under docs/knowledge/, linked from the subject's index.md with a dated log entry and re-pinned source fingerprints, so failure knowledge travels with the repo.