원클릭으로
postmortem
Write incident postmortems using the DERP model (Detection, Escalation, Recovery, Prevention). Integrates with incident.io.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Write incident postmortems using the DERP model (Detection, Escalation, Recovery, Prevention). Integrates with incident.io.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Identify unlabeled GitHub issues and external PRs that may belong to a specific team, and normalize conventional title scopes to the team's canonical short form
Generate standup notes from GitHub PR activity
Monitor CI checks after pushing, detect flaky vs legit failures, and auto-fix
Reference for GitHub PR review endpoints and resolving review threads via gh CLI. Use when replying to a PR review comment, posting a new review comment, or resolving review threads.
PostHog repo-specific workflow, database access rules, production architecture notes, and SDK repository locations. Use when working in posthog/posthog or any PostHog SDK repo.
Plan, implement, and iteratively review a task end-to-end using Claude + Copilot reviewers in a linear flow.
| name | postmortem |
| description | Write incident postmortems using the DERP model (Detection, Escalation, Recovery, Prevention). Integrates with incident.io. |
| argument-hint | ["find|list|from <path>|<incident-id-or-slug>"] |
| model | sonnet |
Write structured incident postmortems using the DERP model.
Parse the argument to determine the mode:
| Argument | Mode | Action |
|---|---|---|
| (none) | Interactive | Ask for incident details, then create/continue |
find or list | List | Run postmortem-list.sh and display results |
find <slug> | Find | Run postmortem-find.sh <slug> |
from <path> | Generate from notes | Read notes file and generate postmortem |
<incident-id-or-slug> | Create/Continue | Run postmortem-find-or-create.sh |
All scripts are in: ~/.dotfiles/ai/skills/postmortem/scripts/
postmortem-find-or-create.sh <id-or-slug> - Find or return path for new postmortempostmortem-find.sh [slug] - Find specific or list allpostmortem-list.sh - List all postmortems with metadataOutput format is tab-separated for easy parsing.
Postmortems are stored at: ~/dev/ai/postmortems/PostHog/{slug}.md
Use the template at: ~/.dotfiles/ai/skills/postmortem/templates/derp-postmortem.md
When the user provides a path to existing notes (/postmortem from <path>):
Read the notes file at the provided path
Extract incident identifier:
Map notes content to DERP sections:
| Notes Content | Maps To |
|---|---|
| Timeline entries with times | Detection timeline, Recovery timeline |
| "Root cause", "Why did this happen" | Prevention → Root Cause |
| Actions taken, "We did X" | Recovery → Actions |
| Team mentions, "@person" | Escalation → Who responded |
| Alert mentions, monitoring | Detection → How detected |
| "Action items", "TODO", "Follow-up" | Prevention → Action Items |
| Impact statements, user counts | Summary → Impact |
Generate draft postmortem:
postmortem-find-or-create.sh with the identifierShow the user what was extracted and what gaps remain
Offer to fill gaps through the interactive DERP interview
Guide the user through each section with targeted questions. Only ask about sections that are incomplete. Ask one section at a time — don't present all questions at once.
Update the status frontmatter field as the postmortem progresses:
draft - Gathering informationin-review - All sections complete, awaiting team reviewcomplete - Reviewed and finalizedWhen displaying postmortem status, show title, status/severity/duration, file path, and per-section completion. For example:
Postmortem: {title}
Status: {status} | Severity: {severity} | Duration: {duration}
Path: {path}
Sections:
[x] Summary
[ ] Detection - needs timeline details
[x] Escalation
[ ] Recovery - missing automation opportunities
[x] Prevention (3 action items)