incident-postmortem
Fungsinya
Agent ini membantu membuat laporan rinci tentang insiden yang terjadi pada sebuah sistem atau layanan. Fokusnya adalah memahami apa yang terjadi, mengapa itu bisa terjadi, dan bagaimana mencegahnya agar tidak terulang, tanpa menyalahkan siapa pun.
Kapan dipakai
- βSetelah layanan mati (outage) atau melambat secara signifikan.
- βSaat error serius memengaruhi banyak pengguna.
- βUntuk mendokumentasikan pelajaran yang didapat setelah masalah besar.
Link skill
https://github.com/github/awesome-copilot/blob/main/skills/incident-postmortem/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBuatkan post-mortem untuk insiden kemarin ketika website mati selama 2 jam.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mengumpulkan informasi tentang insiden, seperti kapan mulai dan berakhirnya, apa saja yang terdampak, dan akar penyebabnya. Lalu, agent menyusun informasi ini menjadi dokumen terstruktur yang berfokus pada pembelajaran dan perbaikan di masa depan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Incident Post-Mortem
Guide a team through writing a structured, blameless post-mortem after a production incident. The output is a document that builds shared understanding, identifies root causes without blame, and produces concrete action items to prevent recurrence.
Blameless Principle
Systems fail, not people. The goal is to understand HOW the incident happened β not WHO caused it. Avoid language like "X forgot to", "Y should have known". Use "the system did not", "the process lacked", "the alert did not fire".
When to Use
- Production outage or service degradation has been resolved
- A significant near-miss occurred (would have been an incident if caught later)
- User-facing errors, data loss, or SLA breach happened
- Team wants to capture learnings before context fades
Not for: Minor bugs caught in staging, planned maintenance windows, or incidents with no learning value.
Input Requirements
Gather these details before writing the post-mortem. Ask for anything missing:
Incident Metadata
- Incident title (short, descriptive)
- Date and time of detection (with timezone)
- Date and time of resolution
- Severity / impact level (P1βP4 or equivalent)
- Incident commander / on-call owner
Impact
- Affected services and systems
- User-facing impact (errors, slowness, full outage)
- Estimated number of users affected
- Data loss or corruption (yes/no, scope)
- SLA/SLO breach (yes/no, by how much)
Timeline Events
Key moments to reconstruct:
- First symptom occurred
- Alert fired (or was noticed manually)
- On-call paged / incident declared
- Investigation started
- Root cause identified
- Mitigation applied
- Full resolution confirmed
- Customer communication sent (if any)
Contributing Factors
Ask the team: "What made this worse than it needed to be?" β not "who failed". Examples:
- Alert threshold too high / alert didn't fire
- Runbook was missing or outdated
- Deploy lacked a feature flag for rollback
- Monitoring didn't cover this failure mode
- On-call handoff missed context
Process
Step 1 β Gather Metadata
If the user has not provided full incident details, ask for them section by section. Don't proceed to writing until you have: title, times, severity, affected services, and at least a rough timeline.
Step 2 β Reconstruct Timeline
Work with the user to build a precise chronological timeline. For each event:
- Exact time (UTC preferred)
- What happened (system event or human action)
- Who observed it or took the action
- Link to log / alert / Slack message if available
Flag gaps: "We don't know what happened between 14:32 and 14:47 β worth checking logs."
Step 3 β Root Cause Analysis
Use the 5 Whys iteratively:
Why did users see 500 errors?
β The API pods were crash-looping.
Why were they crash-looping?
β Memory limit was exceeded.
Why was the limit exceeded?
β A new query was loading full result sets into memory.
Why wasn't this caught before deploy?
β Load tests only covered the p50 case, not high-cardinality accounts.
Why did load tests only cover p50?
β We had no test fixtures for large accounts.
Stop when you reach a system/process gap you can fix. The last "why" should point to an action item.
Distinguish:
- Root cause β the deepest systemic gap (one or two)
- Contributing factors β conditions that made it worse but aren't the root cause
Step 4 β Impact Quantification
Help the user be precise:
- Duration: detection to resolution (not symptom start to resolution β separate these)
- Error rate at peak vs. normal baseline
- Percentage of traffic affected
- Revenue / business impact if known
Step 5 β Action Items
For each root cause and contributing factor, generate at least one action item:
| # | Action | Owner | Due Date | Priority |
|---|---|---|---|---|
| 1 | Add load test fixtures for accounts > 10k records | @eng-team | 2026-07-01 | High |
| 2 | Lower memory alert threshold from 90% to 75% | @platform | 2026-06-23 | High |
| 3 | Add runbook for memory OOM pods | @on-call-rotation | 2026-06-30 | Medium |
Action items must have an owner (a person, not a team) and a due date. Vague actions like "improve monitoring" are not acceptable β break them into specific deliverables.
Step 6 β Write the Document
Produce the full post-mortem using the template below. Save to docs/postmortems/YYYY-MM-DD-<slug>.md.
Output Template
# Post-Mortem: [Incident Title]
β¦
Pertanyaan umum
Apa arti 'blameless'?
Artinya fokus diarahkan untuk memahami kegagalan sistem atau proses, bukan menunjuk kesalahan individu. Tujuannya adalah belajar dari kejadian tersebut untuk memperbaiki sistem.
Informasi apa yang perlu saya berikan?
Anda perlu memberikan detail seperti judul insiden, kapan mulai dan berakhirnya, dampaknya terhadap pengguna dan layanan, serta linimasa (timeline) kejadian penting.
Apa itu 'Action Items'?
Action items adalah tugas spesifik dan konkret yang harus dilakukan untuk memperbaiki akar masalah dan mencegahnya terulang. Setiap item memiliki penanggung jawab dan tenggat waktu.
Detail
Deskripsi asli dari pembuat
Use when an outage, production incident, or significant service degradation has occurred and the team needs to write a structured blameless post-mortem. Triggers on phrases like "write a post-mortem", "incident review", "what went wrong", "outage report", "root cause analysis", or "RCA". Covers timeline reconstruction, contributing factor analysis, impact quantification, and action item generation
repo: github/awesome-copilot
Popularitas
- Bintang GitHub
- 40k
- Peringkat
- #7250
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
acquire-codebase-knowledge
40kMembantu agent Anda memahami dan mendokumentasikan proyek kode yang sudah ada. Berguna untuk proses onboarding anggota baru atau mendapatkan gambaran arsitektur.
acreadiness-assess
40kMemungkinkan agent Anda menilai kesiapan proyek untuk AI dan membuat laporannya. Berguna untuk mengetahui seberapa siap proyek menggunakan alat AI.
acreadiness-generate-instructions
40kMembantu agent Anda membuat instruksi untuk alat AI berdasarkan hasil penilaian. Berguna untuk meningkatkan cara AI berinteraksi dengan kode dan menutup celah yang ditemukan.
acreadiness-policy
40kMemungkinkan agent Anda membantu menyusun atau menerapkan kebijakan untuk penilaian proyek AI. Berguna untuk menstandarisasi evaluasi proyek dan memastikan kepatuhan.
Skill serupa
obsidian-vault-maintainer
394kMembantu agent Anda merapikan vault memori yang ramah Obsidian, dengan tautan wiki berfungsi, properti konsisten, dan bagian otomatis yang aman.
wiki-maintainer
394kMembantu agent Anda memelihara wiki memori OpenClaw dengan halaman yang dapat diulang, blok terkelola yang aman, dan pemeriksaan kontradiksi atau celah.
obsidian
394kMemungkinkan agent Anda membaca, mencari, membuat, dan mengedit catatan, tugas, tautan, dan properti Obsidian memakai baris perintah resmi Obsidian.