# Incident Postmortem Writer: Blameless, Sourced, With TTD/TTR

> Merges logs, alerts and Slack threads into one UTC timeline, computes time to detect/mitigate/resolve, and writes a blameless postmortem where every claim cites its evidence.

Incident Postmortem Writer: Blameless, Sourced, With TTD/TTR is a free AI agent skill on Agensi by Abhineet Sharma. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Abhineet Sharma](https://www.agensi.io/creators/abhineet-sharma)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/incident-postmortem-writer-blameless-sourced-with-ttd-ttr
- Tags: devops-cloud, technical-documentation, testing-debugging

## What it does

- Merges logs and chat exports into one clear timeline with matching timezones
- Calculates time to detect, mitigate, and resolve based on your evidence
- Masks sensitive data like API keys and passwords automatically to keep them out of the report
- Flags contradictions in your notes to ensure the final report is accurate
- Assigns clear owners and deadlines to every fix so nothing gets forgotten

## Who it's for

- **Engineering managers who need to report outages:** Get a professional, honest report for your boss without spending all day digging through logs. Try: "Write a postmortem for yesterday's checkout outage using these Slack logs and server notes."
- **Software engineers writing incident reports:** Turn a messy pile of logs and chat history into a clear, sourced timeline that proves what happened. Try: "Build a UTC timeline from these nginx logs and tell me the time to detect and resolve."
- **Product owners tracking reliability:** Find out exactly why a feature failed and what concrete steps will stop it from happening again. Try: "Analyze this incident evidence and give me a list of action items with owners and due dates."

## About this skill

Writing a postmortem usually means an hour of copy-pasting logs from five tools in three timezones, then a doc that blames someone and ends with "improve monitoring". This skill does the grunt work and keeps the write-up honest.

**The timeline script** (`timeline.py`, stdlib only, read-only)
- Merges any mix of evidence into one **UTC** timeline: app logs (ISO 8601, syslog, `dd/mm/yyyy`), nginx/Apache logs, JSON-lines, JSON arrays including **Slack exports**, alert exports in CSV/TSV/JSON, and scrappy notes like `14:05 IST rolled back`.
- Handles timezones properly: set a default with `--tz`, override per file (`alerts.csv@UTC`, `notes.txt@IST`), and any row where the zone was assumed gets starred so you confirm it.
- **Masks secrets and personal data** by default: API keys (sk-, ghp_, xox, AKIA), JWTs, bearer tokens, passwords in URLs, emails, IPs.
- Collapses noise: 400 identical "pool exhausted" errors become one row with a count and an end time. Filter by level, regex or window.
- Finds the key moments from a time or a regex (start, detect, mitigate, resolve), tells you which event matched, and computes **TTD, TTM, TTR** and detect-to-mitigate.

**The write-up**
- Blameless by design: describes what people knew and did, never who's at fault. "Human error" is never accepted as a root cause.
- Every timeline row and every confirmed cause cites its source; anything inferred is labelled Hypothesis with how to confirm it.
- Flags contradictions instead of hiding them (e.g. a note saying dashboards were red before the deploy that supposedly caused it).
- Action items with owner, priority, due date and a concrete "done when" check, tied to the factor they fix.
- Full template: summary, impact, key moments, timeline, contributing factors, what went well/poorly/lucky, actions, open questions.

Free, no API keys, nothing leaves your machine.

## Requires

- Python 3.9+
- Git

## Known limitations

Doesn't pull data from PagerDuty, Datadog, Slack or other tools for you: export or paste it. Timestamp parsing covers common formats, not every exotic log layout. User impact numbers only come from evidence you provide; it won't estimate them. Not for live incident command or legal breach notifications.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Incident Postmortem Writer: Blameless, Sourced, With TTD/TTR skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What formats can it read?

Plain logs with ISO 8601, syslog, nginx/Apache or dd/mm/yyyy timestamps, JSON-lines, JSON arrays (Slack exports, alert exports), CSV/TSV with a time column, and notes with clock times like '14:05 IST rolled back' (with --date).

### My logs are in different timezones.

Set the default with --tz and override per file with file@ZONE, e.g. alerts.csv@UTC or notes.txt@IST. Everything is output in UTC and rows with an assumed zone are starred for you to confirm.

### Is my data sent anywhere?

No. The script runs locally, makes no network calls, and masks secrets, emails and IPs in its output by default.

### Will it name who caused the incident?

No. It's blameless by design: it describes actions and context, uses roles by default, and treats 'human error' as a starting point for asking what made the error easy.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
