incident-runbook-templates – skill Dữ liệu & Khoa học cho agent AI
Tạo runbook ứng phó sự cố có cấu trúc với quy trình từng bước, đường leo thang xử lý và hành động khôi phục. Dùng kỹ năng này khi xây dựng runbook gián đoạn dịch vụ cho hệ thống xử lý thanh toán; tạo quy trình sự cố cơ sở dữ liệu bao gồm cạn kiệt connection pool, replication lag và cảnh báo hết dung lượng đĩa; onb
Cài skill incident-runbook-templates bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/incident-runbook-templates-5f9c6.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /incident-runbook-templates – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/incident-runbook-templates-5f9c6.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $incident-runbook-templates – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/incident-runbook-templates-5f9c6.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /incident-runbook-templates – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/incident-runbook-templates-5f9c6.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /incident-runbook-templates – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Incident Runbook Templates
Production-ready templates for incident response runbooks covering detection, triage, mitigation, resolution, and communication.
When to Use This Skill
- Creating incident response procedures
- Building service-specific runbooks
- Establishing escalation paths
- Documenting recovery procedures
- Responding to active incidents
- Onboarding on-call engineers
Core Concepts
1. Incident Severity Levels
| Severity | Impact | Response Time | Example |
| -------- | -------------------------- | ----------------- | ----------------------- |
| SEV1 | Complete outage, data loss | 15 min | Production down |
| SEV2 | Major degradation | 30 min | Critical feature broken |
| SEV3 | Minor impact | 2 hours | Non-critical bug |
| SEV4 | Minimal impact | Next business day | Cosmetic issue |
2. Runbook Structure
1. Overview & Impact
2. Detection & Alerts
3. Initial Triage
4. Mitigation Steps
5. Root Cause Investigation
6. Resolution Procedures
7. Verification & Rollback
8. Communication Templates
9. Escalation MatrixDetailed patterns and worked examples
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
Best Practices
Do's
- Keep runbooks updated - Review after every incident
- Test runbooks regularly - Game days, chaos engineering
- Include rollback steps - Always have an escape hatch
- Document assumptions - What must be true for steps to work
- Link to dashboards - Quick access during stress
Don'ts
- Don't assume knowledge - Write for 3 AM brain
- Don't skip verification - Confirm each step worked
- Don't forget communication - Keep stakeholders informed
- Don't work alone - Escalate early
- Don't skip postmortems - Learn from every incident
Troubleshooting
Runbook steps work in staging but fail during a real incident
Steps often assume preconditions that are true in a healthy environment but not during an outage. For each command in your runbook, add a prerequisite check and a "what to do if this command fails" note:
# Step: Check pod status
kubectl get pods -n payments
# Prerequisites: kubectl configured, kubeconfig points to correct cluster
# If this fails: run `aws eks update-kubeconfig --name prod-cluster --region us-east-1`
# Expected output: pods in Running stateOn-call engineer panics and skips steps out of order
Add a numbered checklist at the top of the runbook that mirrors the section numbers, so responders can track progress under stress without reading the full document:
## Quick Checklist
- [ ] 1. Declare incident severity and open war room
- [ ] 2. Check service health (Section 4.1)
- [ ] 3. Check recent deployments (Section 4.1)
- [ ] 4. Roll back if deploy is suspect (Section 4.1)
- [ ] 5. Post initial notification to #payments-incidents
- [ ] 6. Escalate if > 15 min unresolvedRunbook is outdated — commands reference old cluster names or endpoints
Runbooks rot because they're updated manually. Include a "Last Verified" date and owner at the top, and add a CI check that validates all curl endpoints and kubectl context names are still valid:
## Runbook Metadata
| Field | Value |
|---|---|
| Last verified | 2024-11-15 |
| Owner | @platform-team |
| Review cadence | After every SEV1/SEV2 |Stakeholder communication is delayed while engineers are heads-down
Assign a dedicated incident communicator role (separate from the incident commander) whose only job is to post status updates. Add a standing agenda in the communication template:
Update every 15 minutes (even if no new information):
- Current status (Investigating / Mitigating / Monitoring)
- Impact (what is broken, who is affected, % of traffic)
- What we are doing right now
- Next update in: 15 minutesDatabase runbook commands cause additional downtime when run incorrectly
Add explicit warnings before destructive SQL commands and require a dry-run output check before executing:
-- WARNING: This terminates active connections. Verify count first.
-- DRY RUN (check count before terminating):
SELECT count(*) FROM pg_stat_activity WHERE state = 'idle' AND query_start < now() - interval '10 minutes';
-- EXECUTE only after verifying count is reasonable (< 50):
SELECT pg_terminate_backend(pid) FROM pg_stat_activity
WHERE state = 'idle' AND query_start < now() - interval '10 minutes';Related Skills
postmortem-writing- After resolving an incident, use postmortem templates to capture root cause and preventive actionson-call-handoff-patterns- Structure shift handoffs so the incoming responder has full context on active incidents
Skill liên quan
- collab-proof – Dùng khi bạn muốn hiểu Claude đã đóng góp gì so với phần bạn dẫn dắt trong một phiên làm…
- flash-attention – Tăng tốc huấn luyện và suy luận transformer với chuỗi dài.
- azure-ai-ml-py – SDK Azure Machine Learning v2 cho Python. Dùng cho workspace ML, job, model, dataset…
- mageck – Phân tích FASTQ đọc từ màn hình CRISPR gộp và ma trận đếm guide bằng MAGeCK, kiểm tra…
- marine-carbonate-chemistry – Giải bài toán hóa học carbonate nước biển bằng PyCO2SYS cho hóa học hải dương, axit hóa…
- hunt-nosqli – Săn lỗ hổng NoSQL Injection — MongoDB operator injection ($where, $regex, $gt, $ne)…
- market-research-reports – Xây dựng báo cáo nghiên cứu thị trường có thể truy xuất bằng chứng và mô hình quy mô thị…
- grounded-citations – Neo câu trả lời và tài liệu vào các nguồn có trích dẫn, có thể kiểm chứng.