agentleFS
imtiazrayhanimtiazrayhan/agentscamp-library/skills/incident-postmortem-writer/SKILL.md

incident-postmortem-writer

Skill1 starsChanged 3 months agoMITView on GitHub

Turn incident notes, alerts, chat logs, deploy history, and traces into a blameless, evidence-backed postmortem with impact, timeline, contributing conditions, detection and response gaps, and owned corrective actions. Use after a production incident, failed deployment, security event, or near miss when the team needs a durable learning document rather than a root-cause guess.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write a learning document grounded in evidence.

    line 8
  2. Distinctive:

    Review sensitive detail: Remove secrets and unnecessary personal data.

    line 19
  3. Distinctive:

    Create one Markdown postmortem containing:

    line 27
  4. Distinctive:

    follow-up review date for action effectiveness

    line 36

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Write a learning document grounded in evidence. Preserve uncertainty and avoid blame, invented precision, and action items that cannot be verified.

Workflow

  1. Establish the incident window. Collect detection, start, mitigation, recovery, and full-resolution times. Normalize timestamps to one timezone while preserving source links.
  2. Build the factual timeline. Merge alerts, deploys, logs, traces, tickets, and responder notes. Separate observed facts from inference. Resolve contradictions or list them explicitly.
  3. Quantify impact. Record affected users, regions, tenants, requests, data, duration, revenue or operational impact, and SLO/error-budget consumption. State measurement gaps.
  4. Explain system behavior. Describe the trigger, contributing technical and organizational conditions, failed or absent safeguards, and why the impact propagated. Avoid stopping at the first human action or component failure.
  5. Evaluate detection and response. Explain what detected the incident, what should have, time to acknowledge and mitigate, which runbooks or tools helped, and where responders lacked information or safe controls.
  6. Record what went well. Preserve defenses, decisions, automation, and coordination worth repeating—not as praise filler, but as operational knowledge.
  7. Create corrective actions. Each action needs a specific change, owner, priority, due date, and verification method. Balance prevention, detection, containment, recovery, and learning; avoid “be more careful” and “add monitoring” without a defined signal.
  8. Review sensitive detail. Remove secrets and unnecessary personal data. Coordinate disclosure for security, legal, or customer-facing facts without erasing engineering evidence from the controlled internal record.
  9. Track closure. Link actions to tickets and define who verifies completion and effectiveness. A merged change is not complete until the intended risk reduction is tested.

[!WARNING] Do not convert an unknown into a root cause to make the document feel complete. Label uncertainty, preserve competing hypotheses, and assign an investigation action with evidence needed to resolve it.

Output

Create one Markdown postmortem containing:

  • executive summary and quantified impact
  • incident and response timeline with evidence links
  • trigger, contributing conditions, and safeguard analysis
  • detection, mitigation, recovery, and communication assessment
  • what worked and what increased impact
  • corrective-action table with owner, priority, due date, and verification
  • open questions and explicitly labeled unknowns
  • follow-up review date for action effectiveness

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.