Agent skill
optimization.postmortem
Produce a post-incident analysis capturing timeline, root causes, impact, and corrective actions.
Install this agent skill to your Project
npx add-skill https://github.com/edwardmonteiro/Aiskillinpractice/tree/main/skills/optimization/postmortem
SKILL.md
Purpose
Standardize postmortem creation so engineering and reliability teams can rapidly document learnings and accountability.
Pre-run Checklist
- ✅ Gather incident alerts, logs, and chat transcripts.
- ✅ Confirm timeline with responders.
- ✅ Align on severity classification and stakeholders.
Invocation Guidance
codex run --skill optimization.postmortem \
--vars "incident_summary={{incident_summary}}" \
"impact_scope={{impact_scope}}" \
"duration={{duration}}" \
"mitigation_steps={{mitigation_steps}}"
Recommended Input Attachments
- Incident timeline exports (PagerDuty, Opsgenie, Slack).
- Monitoring dashboards or screenshots.
- Customer communications sent during the incident.
Claude Workflow Outline
- Summarize incident context, severity, impact, and timeline.
- Detail sequence of events with timestamps and decision points.
- Perform root cause analysis using techniques like 5 Whys or fishbone.
- Document detection gaps and monitoring improvements.
- Provide corrective and preventive actions with owners and deadlines.
Output Template
# Postmortem — {{incident_summary}}
## Impact & Timeline
- Severity:
- Impact Scope:
- Duration:
| Time | Event | Owner | Notes |
| --- | --- | --- | --- |
## Root Cause Analysis
- Primary Cause:
- Contributing Factors:
- Detection Gaps:
## Corrective Actions
| Action | Owner | Due Date | Status |
| --- | --- | --- | --- |
## Preventive Measures
- Monitoring Updates:
- Process Improvements:
- Follow-up Reviews:
Follow-up Actions
- Review postmortem in reliability or engineering forums.
- Track actions in the incident management system.
- Schedule follow-up to verify preventive measures are in place.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
optimization.experiment_analysis
Analyze completed experiments and craft executive-ready summaries with insights and recommendations.
optimization.metric_review
Conduct a metric review that contextualizes performance trends, flags anomalies, and recommends actions.
optimization.retrospective
Facilitate a sprint or release retrospective focusing on insights, actions, and ownership.
optimization.experiment_brief
Prepare an experiment brief outlining hypothesis, design, success metrics, and operational plan.
optimization.quality_report
Compile a recurring quality report that synthesizes defect trends, automation health, and recommendations.
definition.test_strategy
Define the holistic testing approach across functional, non-functional, and automation layers for the initiative.
Didn't find tool you were looking for?