ワンクリックで
incident-postmortem
Guide creation of blameless postmortem with timeline, root cause analysis, impact assessment, and action items
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Guide creation of blameless postmortem with timeline, root cause analysis, impact assessment, and action items
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Create Architecture Decision Records using the Michael Nygard template with context, decision, alternatives, and consequences
Generate or validate OpenAPI and AsyncAPI specs from code or requirements with consistent naming, errors, and pagination
Generate CHANGELOG.md from git history in Keep a Changelog format with Added, Changed, Deprecated, Removed, Fixed, and Security categories
Generate CI/CD pipeline config for detected platform with lint, test, build, and deploy stages
Scan dependencies for CVEs, outdated packages, license issues, and unused deps to produce a prioritized remediation list
Guide deployment processes including CI/CD pipeline creation, environment setup, and rollback procedures
| name | incident-postmortem |
| description | Guide creation of blameless postmortem with timeline, root cause analysis, impact assessment, and action items |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"developers","workflow":"general"} |
Use this skill when you need to:
Gather context: Collect incident details
Build timeline: Construct minute-by-minute chronology
Root cause analysis: Apply the 5 Whys
Assess impact: Quantify the blast radius
Draft action items: Concrete follow-ups to prevent recurrence
Write the postmortem: Assemble into the template below
# Incident Postmortem: [Title]
**Date:** YYYY-MM-DD
**Severity:** SEV-1 / SEV-2 / SEV-3
**Duration:** X hours Y minutes
**Authors:** [names]
**Status:** Draft / Reviewed / Complete
## Summary
One paragraph describing what happened, the impact, and how it was resolved.
## Impact
- **Users affected:** N
- **Duration:** HH:MM
- **SLO impact:** e.g., availability dropped to 99.2% against 99.9% target
- **Revenue impact:** $X (if applicable)
## Timeline (all times UTC)
| Time | Event |
|-------|-------|
| 14:03 | Alert fired: error rate > 5% on payments-service |
| 14:07 | On-call engineer acknowledged |
| ... | ... |
| 15:22 | Root cause identified |
| 15:45 | Fix deployed, metrics recovering |
| 16:00 | Incident resolved |
## Root Cause Analysis (5 Whys)
1. **Why** did payments fail? → Database connection pool exhausted
2. **Why** was the pool exhausted? → Long-running queries holding connections
3. **Why** were queries long-running? → Missing index on new column
4. **Why** was the index missing? → Migration did not include index
5. **Why** was this not caught? → No query performance test in CI
**Root cause:** Missing database index combined with lack of query performance testing.
## Contributing Factors
- Deployment happened Friday afternoon with reduced staffing
- Alert thresholds were too lenient, delaying detection
## Action Items
| ID | Action | Type | Owner | Due |
|----|--------|------|-------|-----|
| 1 | Add index to payments table | Prevent | @eng | YYYY-MM-DD |
| 2 | Add query performance tests to CI | Prevent | @eng | YYYY-MM-DD |
| 3 | Tighten error rate alert threshold | Detect | @sre | YYYY-MM-DD |
| 4 | Add connection pool exhaustion alert | Detect | @sre | YYYY-MM-DD |
| 5 | Document deploy freeze policy for Fridays | Process | @lead | YYYY-MM-DD |
## Lessons Learned
- What went well
- What went poorly
- Where we got lucky