一键导入
runbook
Generate an AI incident runbook — model degradation, hallucination spikes, cost blowouts, agentic runaway, and more
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate an AI incident runbook — model degradation, hallucination spikes, cost blowouts, agentic runaway, and more
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | runbook |
| description | Generate an AI incident runbook — model degradation, hallucination spikes, cost blowouts, agentic runaway, and more |
User runs /runbook followed by a system name and description, or runs it alone.
| Scenario | Primary Signal | Typical Cause |
|---|---|---|
| Model degradation | Quality score drop, user complaint spike | Prompt drift, model version change, data distribution shift |
| Hallucination spike | Faithfulness score drop, factual error reports | Retrieval failure, prompt regression, context window overflow |
| Latency regression | P95/P99 response time spike | Model endpoint overload, retrieval slowdown, network issue |
| Cost blowout | Token spend > N× baseline | Runaway agent loop, prompt inflation, traffic spike |
| Data pipeline failure | Stale embeddings, missing context, retrieval recall drop | ETL failure, schema change, vector store indexing failure |
| Safety / guardrail breach | Toxicity detection alert, policy violation report | Prompt injection, jailbreak, guardrail bypass |
| Model endpoint outage | 5xx rate spike, timeout rate spike | Provider outage, quota exhaustion, deployment failure |
| Agentic loop runaway | Max iteration alerts, cost spike, no task completion | Termination condition bug, tool failure loop |
System: [description]
Stack: [cloud, model provider, orchestration framework]
Owner: [team]
On-call: [rotation / contact]
Last Updated: [today]
Escalation Path: [L1 → L2 → L3]
Before this runbook is usable, confirm these signals exist:
| Signal | Source | Alert Threshold | Status |
|---|---|---|---|
| Quality score (eval metric) | ✅ / ❌ | ||
| Token spend per hour | ✅ / ❌ | ||
| Latency P95 | ✅ / ❌ | ||
| Error rate (4xx, 5xx) | ✅ / ❌ | ||
| Retrieval recall | ✅ / ❌ | ||
| Guardrail trigger rate | ✅ / ❌ | ||
| Agent iteration count | ✅ / ❌ |
Missing signals = detection blind spots. Flag each missing one as [RISK].
Detection
Triage
Mitigation
Escalation Escalate to L2 if: degradation > X% and mitigation steps haven't restored within 30 min
Post-Incident
[Same structure: Detection → Triage → Mitigation → Escalation → Post-Incident]
[Same structure]
[Same structure — include: identify which call is inflating, cap or circuit break, notify finance if > $X]
[Same structure — include: stale index detection, manual re-index trigger, fallback to cached results]
[Same structure — include: immediate user impact assessment, whether to take feature offline, legal/compliance notification threshold]
[Same structure — include: failover to backup model or cached responses, provider status page link]
[Same structure — include: kill switch procedure, how to inspect in-flight state, whether to resume or restart]
Add any scenarios named by the user that don't fit the standard list.
Short fill-in-the-blank templates for:
Audit a Google ADK tool file against the five known gotchas (DI params, thin wrappers, _j helper, async-wrap blocking calls, httpx context manager) before they bite in production
After creating an ADR, run the cross-referencing checklist — update README Artifacts table, add Related Decisions section to source proposal, cross-link sibling ADRs to each other
Mid-task durability — dump current state and a next-step file before context fills, so the next session resumes without re-deriving where you were
Generate and verify a pre-demo checklist for an ADK/agent project — env vars, GCP auth, embedding swap, ngrok/Slack wiring, dry-run, tests, real-vs-synthetic data
Scan a project's docs (README, CLAUDE.md, ADRs, runbooks) for inconsistent project naming, scope, or framing — catches the "README says retail, CLAUDE.md still says Kroger" class of bug
Refresh a project's status — derive current state from code/tests/git, regenerate the project's status memory entry and (if requested) a status section in the README