Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
Author and review operational incident runbooks: clear scope, severity, symptoms, diagnostics, mitigation steps, escalation, and communications. Use when runbook, incident response doc, 故障手册, on-call playbook, SEV ladder, incident procedure, pager runbook, or post-alert operator steps.
Incident Runbook Writing
Write actionable incident runbooks that an on-call engineer can execute under
stress: what is broken, how severe it is, how to confirm, what to do (and not
do), whom to call, and how to close out. Prefer the organization’s existing
incident severity model, ticket templates, and chat/bridge norms over inventing
a parallel IR process.
Use When
Authoring or revising an incident runbook / on-call playbook for a service
or alert
Defining severity levels, escalation paths, and decision points
Turning tribal knowledge into ordered diagnostic and mitigation steps
Linking alerts, dashboards, and dashboards’ queries to operator actions
Preparing runbooks as part of launch readiness, SLO work, or post-incident
follow-up
Org IR standards and in-repo ops docs outrank this skill’s defaults.
Severity model: existing SEV-0/1/2 or P1–P4 definitions, customer-impact
tables, and executive notification rules — reuse labels exactly
Incident process: who declares incidents, bridge links, roles (IC,
comms, scribe), handoff hours, status page owners
Doc location:docs/runbooks/, service catalog, Notion/Confluence,
PagerDuty runbook URL field — put the canonical link where the alert points
Alert ↔ runbook wiring: alert rule annotations (runbook_url), Grafana
panel links, error-budget policy — update the link when the doc moves
Access & tools: break-glass, cloud consoles, kubectl contexts, feature
flag admin, deploy pipelines — document named tools the team already uses
Secrets and credentials: how operators obtain short-lived access; never
paste long-lived keys into the runbook body (secrets-management-hygiene)
Telemetry: dashboards, log queries, trace views already marked golden
for the service (observability-metrics-tracing)
Neighboring runbooks: copy structure from the best service runbook in the
org; stay consistent so on-call can skim any service the same way
Precedence: Follow org IR and existing templates when they conflict with
sections below. Surface missing severity definitions, alerts without runbook
links, or runbooks that require prod secrets in plaintext.
Runbook Goals
Goal
Operator experience
Fast orientation
Within 1 minute: what this covers, severity, user impact
Confirm before mutate
Diagnostics prove the symptom before risky mitigation
Ordered actions
Numbered steps; explicit “stop and escalate if…”
Safe defaults
Prefer reversible mitigations; call out data-loss risks
% users, regions, tenants, or critical accounts — use measurable thresholds when known
Urgency
Time-to-fix expectations, executive notification, 24/7 vs business hours
Examples
2–4 concrete examples per SEV for this service
Non-examples
What looks scary in metrics but is SEV-low (expected batch lag, single-AZ test)
Good severity line: “SEV-1: checkout 5xx > 5% for 10m or payment
provider hard-down affecting all cards.” Bad severity line: “SEV-1: anything important” (not decidable under stress).
Workflow
1. Identify the runbook unit
Prefer one primary user journey or alert family per runbook (e.g.
“checkout latency”, “auth login failures”), not an entire platform wiki.
List dependencies (DB, cache, payment, identity) and which team owns them.
Find existing alerts and dashboards; note gaps for
observability-metrics-tracing follow-up rather than inventing fake panels.
2. Pull org standards
Copy severity names, IR roles, and comms cadence from org IR docs.
Locate the canonical doc store and alert annotation field for runbook_url.
Confirm secret/access patterns (secrets-management-hygiene) — link to vault
or break-glass procedures, do not embed credentials.
3. Draft symptoms and diagnostics
Write symptoms as operators see them: alert name, graph shape, user
reports, log code= / event names (logging-message-style stable events).
Diagnostics are read-only first: dashboards, traces, logs, status of
dependencies, recent deploys/flags.
Each diagnostic step: what to open, what good looks like, what bad
looks like, next branch.
Include correlation ids / request examples only as redacted patterns.
4. Draft mitigation with safety rails
Order by blast radius: feature flag off → traffic shed → rollback →
scale → data repair (data repair last and dual-controlled when risky).
For each step: command or UI path, expected result, rollback of the
mitigation itself, and stop conditions.
Mark steps that change prod state with “changes production”.
Link config/env changes to env-config-12factor contracts (which key, where
set, restart needed?) without pasting secret values.
For code/config fixes, note that implementation must meet
code-quality-standards — the runbook points to the PR process, not a
pastebin of unreviewed scripts.
5. Escalation and communications
Table: condition → people/channel → what to hand them (dashboard, timeline).
Internal update template: impact, status, next check-in time, IC name.
External/status: who has authority; never freestyle legal commitments.
Security/privacy incidents: escalate per security IR; redact in public
channels.
6. Verification and exit criteria
Explicit definition of healthy (SLI back within threshold for N minutes,
error budget, queue depth, synthetic check).
Watch window after mitigation (e.g. 30–60m) before resolving the incident.
Copy-pasteable commands with placeholders <cluster>
Unlabeled screenshots as the only truth
Explicit permissions / roles needed
Assume everyone is cluster-admin
Time bounds (“if not improved in 15m…”)
Open-ended “keep trying”
Redact secrets, tokens, personal data
Paste real connection strings or customer PII
Record who decides SEV and customer comms
Leave severity to pure guesswork
Commands should use placeholders and point to org-approved tooling. Prefer:
kubectl --context <staging-or-prod-context> -n <namespace> get pods -l app=billing
over undocumented one-off binaries.
Good / Bad Examples
Severity criteria (service-local mapping)
Good
## Impact And Severity
Maps to org SEV model: https://wiki.example/ir/severity
| SEV | This service (billing-api) | Expectation |
| --- | --- | --- |
| SEV-1 | Checkout/payment success rate < 95% for 10m, or complete API hard-down in any region | Immediate bridge; page primary + secondary; customer comms within 30m |
| SEV-2 | Elevated 5xx 1–5% or p99 > 2s for 15m with user reports | Page primary; update every 30m |
| SEV-3 | Single non-critical endpoint errors; no material conversion drop | Work in business hours; ticket |
| SEV-4 | Cosmetic / docs / non-prod only | Backlog |
Non-example: synthetic canary flake < 5m with no user reports → do not auto SEV-1.
Bad
## Severity- High if bad
- Low if not that bad
Diagnostics before mutate
Good
## Diagnostics1. Open [billing RED dashboard](…). Confirm `http_server_requests` error ratio
and latency. **Good:** error ratio < 1%, p99 < 300ms.
2. Check [deploy timeline](…). Note last prod deploy/flag change ±2h.
3. In logs, filter `event=payment_capture_failed` with `code=`
(`logging-message-style` stable codes). **Do not** log/export raw PANs.
4. Trace a failing `requestId` from support ticket in APM
(`observability-metrics-tracing`). Identify slow dependency span.
5. If dependency is payments-provider: open provider status page + our
outbound error metric. If provider-down → jump to Mitigation B.
Bad
## Fix
Restart all pods and hope. Also run random SQL until it works.
Mitigation with stop conditions
Good
## Mitigation### A. Recent deploy suspected (changes production)1. Confirm version on [release board](…) matches suspect SHA.
2.**Rollback** via standard pipeline to previous healthy tag
(see deploy runbook). Do not `kubectl replace` ad-hoc unless pipeline is down.
3. Watch error ratio 15m. If still high → leave rollback in place; go to B.
4.**Stop:** If rollback fails or version is unclear, escalate to @billing-lead
before manual image overrides.
### B. Bad feature flag1. Open flag console; disable `payments.new_router` for 100% (kill switch).
2. Verify flag eval metric shows off; recheck RED dashboard.
Bad
Delete the database PVC if restarts do not help.
# no confirmation, no owner, no data-loss callout
Communications template
Good
## Communications
Internal (Slack #inc-billing), every 30m or on state change:
-**Impact:** …
-**Scope:** region/tenants/%
-**Status:** investigating | mitigating | monitoring
-**Cause (known/suspected):** …
-**Next update:** HH:MM UTC
-**IC:** @name
External: only Comms lead via status page template; no root-cause speculation.
Bad
Tweet that we are hacked. Paste stack traces with tokens into public Slack.
Which metrics/traces/alerts should exist for the symptoms
observability-metrics-tracing
this skill for operator narrative
Stable log events/fields used in diagnostic queries
logging-message-style
this skill for which queries to paste
Credential leak, vault, rotation during incident
secrets-management-hygiene
this skill for IR structure around the leak
Code/config change quality after mitigation
code-quality-standards
this skill for when to change vs roll back
Env/config keys involved in misconfig incidents
env-config-12factor
this skill for diagnosis/mitigation framing
Image/runtime packaging issues
dockerfile-best-practices
this skill if the incident response needs image rollback steps
Feature flag kill switch detail
feature-flag-patterns
this skill for ordering in the incident
Routing notes (required helpers)
observability-metrics-tracing: runbooks depend on golden signals,
dashboards, and correlation ids; fix missing telemetry as follow-up work, and
link real panels from the runbook.
logging-message-style: diagnostic steps should filter on stable event
and code fields — not free-text that changes every deploy.
secrets-management-hygiene: any runbook touching credentials must
rotate/revoke safely and never store secret values in the doc.
code-quality-standards: durable fixes land through normal review/test;
emergency changes still need tracked follow-up and verification.
dockerfile-best-practices: when mitigation is image rebuild/rollback or
when the incident root cause is secrets/config baked into layers.
Checklist
Org SEV model, IR roles, doc home, and alert runbook_url field identified
Title/scope matches one alert family or user journey (not the whole company)
Metadata: service, owners, links, last reviewed date
Summary states impact and healthy baseline in one short paragraph
Symptoms listed for users, alerts, and log/trace signatures (redacted)
Severity table maps this service to org SEV with examples/non-examples
Repo/org IR first — same SEV words, same roles, same doc system.
Write for tired humans at 03:00: short steps, links, stop conditions.
Diagnose before destructive fix; prefer reversible mitigations.
Never put live secrets or customer PII in runbooks; use placeholders and
vault procedures (secrets-management-hygiene).
Every paging alert deserves a runbook URL; every runbook needs a
review date.
Runbooks are operations products — update them as part of incident close
and major releases, not only when something has already burned.
Note
This skill owns incident runbook structure and operator-facing procedure
writing. Pair with observability-metrics-tracing for signals and dashboards,
logging-message-style for diagnostic field stability,
secrets-management-hygiene for credential incidents,
env-config-12factor for misconfig/env contracts,
dockerfile-best-practices when images/rollbacks are involved, and
code-quality-standards for durable code fixes after the fire is out.