Works with the AI Agents you already use

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

    by Abhineet Sharma

    1

    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.

    Free

    Security scanned
    Incident Postmortem Writer: Blameless, Sourced, With TTD/TTR

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

    Example session with this skill installed

    Chat API was throwing 502s after this morning's deploy. Files: app.log, nginx.log, alerts.csv (PagerDuty, UTC), slack.json, and my notes.txt (IST). Write the postmortem.

    • Read your context and instructions
    • Compiled the incident postmortem writer
    • Generated the data export

    Ran: timeline.py app.log nginx.log alerts.csv@UTC slack.json notes.txt --tz +05:30 --date 2026-11-20 --start "deploy v2.3.1" --detect "High 5xx" --mitigate "rolling back" --resolve "all clear"

    Key moments (UTC): start 08:58:01 (deploy v2.3.1) · detect 09:04:30 (PagerDuty: High 5xx rate) · mitigate 09:15:00 (rollback) · resolve 09:30:00
    Time to detect 6m 28s · time to mitigate 16m 58s · time to resolve 31m 58s

    | UTC | Source | Event |
    | 08:58:01 | app | START deploy v2.3.1 started by ci |
    | 09:00:15 | app | ERROR db pool exhausted conn=4412 user=[EMAIL] host=[IP] (x2 until 09:00:19) |
    | 09:01:00 | app | WARN retrying with token=[REDACTED] |
    | 09:04:30 | alerts | DETECT CRITICAL High 5xx rate on chat-api |
    | 09:15:00 | slack | MITIGATE on-call: rolling back to v2.3.0 |

    Needs your input: notes.txt says "noticed dashboards red" at 08:50 UTC, 8 minutes BEFORE the deploy. Either that note's timezone is wrong, or the deploy isn't the trigger. Which is it?

    Draft postmortem (SEV-2): trigger = v2.3.1 lowered the DB pool size (Confirmed, app.log + diff). Factors: no pool utilisation alert (Confirmed); first alert fired 6m after impact (Confirmed); no canary for config changes (Hypothesis, check deploy pipeline). Actions: P1 alert on pool > 80% for 2m, owner platform, done when it fires in a staging load test; P2 canary deploys for config changes ...

    alerts.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    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.

    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

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 6 days ago

    • Free with an Agensi account

    Software
    Python 3.9+Git

    Permissions

    Terminal / Shell
    Read Files

    File Scopes

    Incident
    evidence
    files
    the
    user
    provides
    (read-only)

    The timeline script is stdlib-only, read-only and makes no network calls. Secrets, keys, tokens, emails and IPs are masked in its output by default (--no-mask to disable). The postmortem is written only where the user asks.

    Listed6 days ago

    What's inside

    Frequently Asked Questions

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

    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.

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

    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.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.

    Free