postmortem-draft
Skill by kortix-ai
Drafts a first-pass postmortem for each resolved incident and opens it as a pull request. Built for on-call and reliability teams who want the write-up started while details are fresh.
Install postmortem-draft
Built from the published package, never by AI.
git clone --depth 1 https://github.com/kortix-ai/suna /tmp/suna && mkdir -p ~/.claude/skills && cp -r /tmp/suna/packages/starter/templates/marketplace/runtime/skills/postmortem-draft ~/.claude/skills/postmortem-draftRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/kortix-ai/suna /tmp/suna && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/suna/packages/starter/templates/marketplace/runtime/skills/postmortem-draft ~/.gemini/antigravity-cli/skills/postmortem-draftAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill runs as a periodic sweep. It checks an incident channel for incidents marked resolved and skips any that already have a postmortem draft in the target repository. For each new incident, it reads the full channel thread, then lists GitHub deploys and merges in the incident window. It also queries Datadog for error-rate and latency spikes and their onset times. It combines these into one timeline and drafts a postmortem in the repo's existing format.
The draft includes a summary, timeline, proposed root cause, impact, and candidate action items. Root cause and action items are marked as the agent's inference for a human to confirm. The agent opens one pull request per incident and stops there. It is aimed at engineering and incident response teams that keep postmortems in a GitHub repository.
Written from the project's SKILL.md and checked against it.
What it can do
- Find resolved incidentsSweeps the incident channel for incidents marked resolved on each run.
- Read incident timelineReads the full channel thread from open to resolution, with timestamps and actions.
- Correlate GitHub deploysLists merges and deploys in the incident window as candidate causes.
- Correlate Datadog spikesPulls error-rate and latency metrics to find when a spike started and peaked.
- Build correlated timelineMerges channel events, deploys, and log spikes into one chronological timeline.
- Draft postmortem PRWrites a postmortem under the configured path and opens a pull request for review.
What you need
- Access to the incident channel
- GitHub access to the target repository
- Datadog credentials for log and metric queries
Try asking
- Draft a postmortem for the most recently resolved incident.
- Extend the postmortem PR for incident INC-123 with new deploy history.
- Check the incident channel for resolved incidents and draft any missing postmortems.
Good to know
- Opens a pull request only. It never merges or pushes to main.
- Root cause and action items are proposed inferences, not final conclusions.
- Does not assign owners or close incidents.
- Only one postmortem PR is opened per incident.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/starter/templates/marketplace/runtime/skills/postmortem-draft/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to postmortem-draft
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
postmortem-draft: common questions
Does this skill publish final postmortems?
No. It drafts a postmortem as a pull request, and root cause and action items are marked as proposed for a human to confirm.
Which systems does it read from?
It reads the incident channel, GitHub deploy and merge history, and Datadog error-rate and latency metrics. These sources are read-only.
How does it avoid duplicate drafts?
Before drafting, it checks the target repository for an existing postmortem PR or branch for the incident and skips those incidents.
How do I install postmortem-draft?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is postmortem-draft free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is postmortem-draft safe to use?
It scores 81 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to postmortem-draft?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
