/universal-dev-standards:incident [incident description or severity | 事故描述或嚴重程度]from universal-dev-standards
Guides structured incident response from detection through post-mortem, including severity classification, response workflow, communication templates, and RCA documentation.
Ships in universal-dev-standards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Language: English | 繁體中文
Guide structured incident response from detection through post-mortem.
引導結構化的事故回應流程,從偵測到事後檢討。
| Level | Name | Criteria | 標準 | Response Time |
|---|---|---|---|---|
| SEV-1 | Critical 重大 | Full service outage, data loss | 全面服務中斷、資料遺失 | Immediate (< 15 min) |
| SEV-2 | High 高 | Major feature degraded, partial outage | 主要功能降級、部分中斷 | < 30 min |
| SEV-3 | Medium 中 | Minor feature affected, workaround exists | 次要功能受影響、有替代方案 | < 4 hours |
| SEV-4 | Low 低 | Cosmetic issue, minimal user impact | 外觀問題、最小用戶影響 | Next business day |
DETECT ──► TRIAGE ──► MITIGATE ──► RESOLVE ──► POST-MORTEM ──► IMPROVE
偵測 分級 緩解 解決 事後檢討 持續改善
## Post-Mortem: [Incident Title]
**Date**: YYYY-MM-DD | **Severity**: SEV-N | **Duration**: Xh Ym
### Timeline
| Time | Event |
|------|-------|
| HH:MM | Alert triggered / 告警觸發 |
| HH:MM | IC assigned / 指派事故指揮官 |
| HH:MM | Mitigation applied / 套用緩解措施 |
| HH:MM | Resolved / 解決 |
### Impact
- Users affected / 受影響用戶數: N
- Revenue impact / 營收影響: $N
- SLA breach / SLA 違反: Yes/No
### Root Cause
[Description of the underlying cause / 根本原因描述]
### Action Items
| Action | Owner | Due Date | Priority | Status |
|--------|-------|----------|----------|--------|
| [Fix] | @name | YYYY-MM-DD | P0 | Open |
### Incident Metrics
- MTTR (Mean Time To Recovery): Xh Ym
- Detection Time: Xm (alert to IC assigned)
- Recurrence: First / Repeat (link to previous)
[SEV-N] [Service Name] — [Brief Description]
Status: Investigating / Mitigating / Resolved
Impact: [Who is affected and how]
Next update: [Time]
/incident # Show full incident response guide | 顯示完整事故回應指南
/incident "API 500 errors" # Guided response for specific incident | 特定事故引導回應
/incident --post-mortem # Generate post-mortem template | 產生事後檢討模板
/incident --sev1 # SEV-1 rapid response checklist | SEV-1 快速回應清單
/incident --actions # List open action items | 列出未完成行動項目
/incident --metrics # Show incident trends | 顯示事故趨勢指標
Open ──► In Progress ──► Done ──► Verified
| Status | Description | 說明 |
|---|---|---|
| Open | Identified, not started | 已識別,未開始 |
| In Progress | Being worked on | 進行中 |
| Done | Fix implemented | 已實作修復 |
| Verified | Confirmed effective | 已驗證有效 |
docs/incidents/
├── INC-2026-03-15-api-outage.md
├── INC-2026-03-20-db-pool-exhaustion.md
└── README.md # Index (optional)
| Metric | Description | 說明 |
|---|---|---|
| MTTR | Mean Time To Recovery | 平均恢復時間 |
| MTTD | Mean Time To Detection | 平均偵測時間 |
| Frequency | Incidents per period | 每期事故數 |
| Recurrence | Repeated root causes | 重複根因比例 |
| Action Completion | % of actions done | 行動項目完成率 |
After /incident completes, the AI assistant should suggest:
事故回應指引已提供。建議下一步 / Incident response guidance provided. Suggested next steps:
- 提交修復 → 執行
/commit建立修復提交 ⭐ Recommended / 推薦 — Create fix commit- 程式碼審查 → 執行
/code-review審查修復變更 — Review fix changes- 記錄學習 → 執行
/docs更新文件 — Document learnings- 安全審查 → 執行
/security檢查安全影響 — Check security impact- 團隊回顧 → 執行
/retrospective(SEV-1/SEV-2 建議)— Team retrospective (recommended for SEV-1/2)- 查看行動項目 → 執行
/incident --actions— View open action items
| Version | Date | Changes | 變更說明 |
|---|---|---|---|
| 1.1.0 | 2026-03-26 | Add IMPROVE phase, action tracking, metrics | 新增改善階段、行動追蹤、指標 |
| 1.0.0 | 2026-03-24 | Initial release | 初始版本 |
完整的 AI 行為定義請參閱對應的命令文件:
/incidentFor complete AI agent behavior definition, see the corresponding command file:
/incident
CC BY 4.0 — Documentation content
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
asiaostrich-universal-dev-standards@cascade-code-general-misc-3 is listed by joshuarweaver/cascade-code-general-misc-3 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin asiaostrich-universal-dev-standards57 skills in this plugin
/ac-coverage[UDS] Analyze AC-to-test traceability and generate requirement-level coverage reports.
Use when: auditing which acceptance criteria have tests, building a traceability matrix from a SPEC file, finding uncovered AC before release.
Not for: code-level line/branch/function coverage — use /coverage; writing the missing tests — use /tdd or /spec-derive.
Keywords: AC coverage, traceability, acceptance criteria, SPEC, traceability matrix, 驗收條件, 需求追蹤, 覆蓋率矩陣.
/adr[UDS] Create, manage, and track Architecture Decision Records (ADR).
Use when: architecture decisions, technology choices, design trade-offs, pattern selection.
Not for: decisions that do not change architecture — record them in the spec or commit; ideas not yet formed enough to decide — use /brainstorm.
Keywords: ADR, architecture decision, decision record, trade-off.
/ai-collaboration-standardsPrevent AI hallucination and ensure evidence-based responses when analyzing code or making suggestions.
Use when: analyzing code, making recommendations, providing options, or when user asks about confidence/certainty.
Not for: authoring the AI instruction files themselves — use /ai-instruction-standards; reviewing a concrete diff — use /code-review.
Keywords: certainty, assumption, inference, evidence, source.
/ai-friendly-architectureDesign AI-friendly architecture with explicit patterns, layered documentation, and semantic boundaries.
Use when: structuring projects for AI collaboration, optimizing codebase for AI analysis, setting up AI context.
Not for: writing the instruction files — use /ai-instruction-standards; language-conventional directory layout — use /project-structure-guide.
Keywords: architecture, AI-friendly, context, modules, documentation layers, .ai-context.yaml.
/ai-instruction-standardsCreate and maintain AI instruction files (CLAUDE.md, AGENTS.md, .cursor/rules/, etc.) with proper structure.
Use when: creating AI instruction files, separating universal vs project-specific rules, configuring AI tools.
Not for: shaping the codebase so AI can navigate it — use /ai-friendly-architecture; enforcing evidence-based answers — use /ai-collaboration-standards.
Keywords: CLAUDE.md, AGENTS.md, cursorrules, windsurfrules, clinerules, AI instructions, system prompt.
/api-designGuide API design following REST, GraphQL, and gRPC best practices.
Use when: designing APIs, reviewing endpoints, API versioning decisions.
Not for: verifying a running API against its consumers — use /contract-test; schema design behind the API — use /database.
Keywords: API, REST, GraphQL, gRPC, endpoint, versioning.
Other plugins' skills for the same job