一键导入
incident-response
Production incident handling covering triage, evidence gathering, mitigation, communication, and post-mortem practices.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Production incident handling covering triage, evidence gathering, mitigation, communication, and post-mortem practices.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Behavioral rules that make AI coding agents more reliable — verification, self-correction, and scope discipline.
Debugging guidance and structured report template for thorough bug investigation, evidence gathering, and root cause documentation.
Cold-audit a completed delivery — verify the spec was actually delivered, challenge performative claims, and produce a what-landed report.
Guidelines for generating self-contained HTML mockups that look professional and are easy to iterate on.
Shared implementation guidance for making minimal, correct, maintainable code changes that fit existing systems.
The doctrine for `/roadmap-review` — interactive triage of roadmap-shape drift, walked one item at a time, with paste-ready resolution phrasing for the active sizing lens.
| name | incident-response |
| description | Production incident handling covering triage, evidence gathering, mitigation, communication, and post-mortem practices. |
| compatibility | opencode |
| metadata | {"audience":"debug-investigator","purpose":"incident-handling"} |
Provide a structured approach to handling production incidents — from initial triage through resolution and post-mortem. The goal is to minimize impact, preserve evidence, and prevent recurrence.
Load this skill when responding to a production incident, investigating an ongoing outage, or writing a post-mortem. The debug-investigator should load this alongside the debugging-investigation skill when the issue is in a production or production-like environment.
Triage determines what you do first. Get it wrong and you waste time on low-impact issues while critical ones burn.
Assess severity based on impact and urgency, not on how interesting the bug is.
| Severity | Criteria | Response time |
|---|---|---|
| Critical | Service is down, data loss is occurring, or a security breach is active. Revenue-impacting. All or most users affected. | Immediate. Drop everything. |
| High | Major feature is broken or significantly degraded. Large subset of users affected. Workaround exists but is painful. | Within 1 hour. |
| Medium | Feature is impaired but functional. Small subset of users affected. Reasonable workaround exists. | Within 4 hours. |
| Low | Cosmetic issue, minor inconvenience, or edge case. Few users affected. | Next business day. |
Determine who and what is affected:
Before investigating root cause, stop the bleeding:
Mitigation does not need to be elegant. It needs to be fast. A 5-minute mitigation that's ugly beats a 2-hour fix that's clean.
Gather evidence systematically. Rushing to hypothesize without evidence leads to wrong conclusions and wasted time.
Communicate early and often. Silence is worse than "we're investigating."
These are different actions with different timelines. Do not conflate them.
Mitigation: Stop the impact. Revert a deploy, toggle a flag, block a traffic pattern, fail over to a backup. Goal: users stop experiencing the problem. Timeline: minutes.
Fix: Address the root cause so the problem doesn't recur. Write a patch, fix the configuration, add a missing index. Goal: the system is healthy without the mitigation in place. Timeline: hours to days.
Always mitigate first. A mitigated incident with an unknown root cause is far better than an ongoing incident with a known root cause and a fix that's 2 hours away.
After mitigation:
Write the post-mortem within 48 hours of resolution, while memory is fresh. The post-mortem is blameless — it focuses on systemic causes, not individual mistakes.
# Post-mortem: {Incident title}
## Summary
One paragraph: what happened, when, how long, who was affected.
## Timeline
Chronological sequence of events with timestamps. Include:
- When the issue started (or when it's estimated to have started)
- When it was detected and how (alert, customer report, manual observation)
- Key investigation steps and findings
- When mitigation was applied
- When the fix was deployed
- When the incident was declared resolved
## Impact
- Users affected: {count or percentage}
- Duration: {time from start to resolution}
- Revenue impact: {if applicable}
- SLA impact: {if applicable}
- Data impact: {if any data was lost or corrupted}
## Root cause
Clear explanation of why the incident occurred. Distinguish between:
- The trigger (what changed that caused the incident to start)
- The underlying cause (why the system was vulnerable to that trigger)
- Contributing factors (what made detection or resolution slower)
## What went well
Things that worked during the incident response. Detection speed,
mitigation effectiveness, team coordination.
## What went poorly
Things that didn't work. Slow detection, missing runbooks, unclear
ownership, missing monitoring.
## Action items
Concrete, assigned, time-bound actions to prevent recurrence.
| Action | Owner | Priority | Due date |
|--------|-------|----------|----------|
| {description} | {person/team} | {P0/P1/P2} | {date} |
Each action item should address a specific gap identified in the
"what went poorly" section. Avoid vague items like "improve monitoring"
— specify what monitoring to add and what it should alert on.
When investigating, look for these common patterns:
Each pattern suggests a different investigation path. Recognizing the pattern early saves hours of undirected debugging.