AgentStack
SKILL verified MIT Self-run

Ai Incident Response

skill-kumaran-is-claude-code-onboarding-ai-incident-response · by kumaran-is

Run the AI incident response procedure when something is going wrong in production AI. Use when the user explicitly runs /ai-incident-response or says "AI incident", "model is broken", "production AI is failing", "we're seeing weird outputs in prod", "hallucination in production", or similar urgent phrasing.

No reviews yet
0 installs
18 views
0.0% view→install

Install

$ agentstack add skill-kumaran-is-claude-code-onboarding-ai-incident-response

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Ai Incident Response? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

AI Incident Response

> Iron Law: Stabilize before investigating. Pull the kill switch or roll back before debugging root cause. Curiosity about why it broke must never delay stopping the bleeding.

When AI production behavior degrades, follow the procedure from the AI Playbook (Layer 4 §4.3). The objective: stabilize first, investigate second, learn third.

Stage 1: Stabilize (first 15 minutes)

Do these in order. Do not investigate root cause yet — that comes after the bleeding stops.

  1. Confirm scope. Ask the user:
  • What feature is affected?
  • What is the symptom? (Wrong outputs / latency spike / cost spike / refusals / safety violation / user reports)
  • When did it start?
  • Is it ongoing right now?
  1. Decide on rollback or kill. Check the Decision Record for rollback triggers. If the symptom matches:
  • Pull the kill switch if the feature is causing user-visible harm. Confirm in chat before pulling.
  • Roll back to last known good version (prompt, model, retrieval index, threshold) if the kill switch is too aggressive.
  • Reduce traffic (drop the percentage rollout step) if the impact is bounded but worsening.
  1. Capture the crime scene before anything else changes:
  • Model version
  • Prompt version
  • Retrieval index version (if RAG)
  • Tool versions (if agent)
  • A sample of bad outputs with their inputs (sanitized)
  • The time window
  • Affected users / tenants
  1. Notify. The Decision Record names an on-call owner. Tell them. If the incident has user impact, the team's incident comms process owns it from here.

Stage 2: Triage (next 30–60 minutes)

  1. Quarantine bad outputs. Decide per the feature's design (Layer 4 §4.3):
  • Recall (remove the output from view)
  • Retract (notify affected users)
  • Mark-as-disputed (annotate in the system)
  • Annotate downstream records (e.g., flag the CRM entries created)
  1. Reverse downstream actions if possible.
  • For Tier 3+ actions: identify what was committed, who must authorize reversal, and execute.
  • For Tier 0–2 (read-only or post-hoc reversible): may not need active reversal, but log the impact.
  1. Check leading indicators (Layer 4 §4.3) to detect related cascading issues:
  • "I don't know" / refusal rate
  • Average composite confidence
  • Output-contract validation rejection rate
  • Human override rate
  • p99 latency
  • Cost per task
  • Tool-call failure patterns
  • Retrieval recall@k regression

Stage 3: Investigate (after stabilization)

  1. Identify root cause. Common categories:
  • Model regression (vendor pushed an update; pinning may have failed)
  • Prompt regression (recent prompt change shipped without canary)
  • Retrieval regression (chunking strategy changed, embeddings stale, ACL break)
  • Tool regression (downstream API changed behavior)
  • Prompt injection (intentional or accidental)
  • Data drift (input distribution changed)
  • Threshold miscalibration (confidence weights no longer fit reality)
  • Cost or rate limit overrun (no infrastructure failure, just bill shock)
  1. Identify the eval gap. Every confirmed incident represents an example your eval set didn't catch. Capture:
  • The input that triggered the failure
  • The expected behavior
  • The actual behavior
  • Why the existing evals didn't catch it

Stage 4: Learn (within 5 business days)

  1. Write the post-mortem. Use this template:
# Post-Mortem:  — 

## Summary
- What happened (one paragraph)
- Severity (S0 / S1 / S2 / S3)
- User impact
- Duration:  →  → 

## Timeline
- : 
- : 
- ...

## Root cause

## Why our controls didn't catch this
- Output Contract: ...
- Evals: ...
- Adversarial tests: ...
- Leading indicators: ...
- Kill switch / rollback: ...

## Eval gap — new test cases to add
-  →  (was: )
- ...

## Prevention
- Immediate (this week): ...
- Short-term (this month): ...
- Structural (this quarter): ...

## Owner
  1. Update artifacts.
  • Add new eval cases to the golden dataset.
  • Add new adversarial cases to the CI test catalog if applicable.
  • Update the Decision Record if assumptions changed.
  • Update kill-switch tests if a new failure mode is now reachable.
  1. Calibrate. If the incident reveals that composite-confidence weights or thresholds are wrong, schedule a recalibration. Don't change thresholds during the incident.

Default stance

  • Stabilize before investigating. Do not let curiosity about root cause delay killing the bleeding.
  • Trust the kill switch. If it exists and is tested, pulling it is rarely the wrong call. The alternative — letting the incident continue while you debug — almost always is.
  • Capture before changing. Every change after the incident starts erases evidence. Snapshot versions, logs, and sample outputs first.
  • Don't recalibrate thresholds mid-incident. Tempting, but you don't have the data yet. Schedule it post-mortem.
  • Every failure is labeled data. The single most valuable artifact from an incident is the new eval case it generates.

What this skill does NOT do

  • It does not page on-call. Use your incident comms process.
  • It does not authorize destructive reversals (refunds, retractions). Those need human approval per the feature's risk tier.
  • It does not replace the team's general incident management playbook — it complements it with AI-specific steps.

If this skill cannot proceed

Abort condition: no Decision Record exists for the feature
→ Cannot determine rollback triggers or named owner.
→ Output: "No Decision Record at docs/ai-decisions/.md.
  Proceed without it, but rollback decisions must be made manually.
  After the incident, run /ai-audit to retroactively create one."

Abort condition: kill switch location unknown
→ Output: "Kill switch location not documented. Escalate to the engineering team
  to locate the feature flag manually. Do not attempt ad-hoc mitigations."

Abort condition: user wants to recalibrate thresholds during Stage 2/3
→ Hard stop. Output: "Do not recalibrate thresholds mid-incident. You don't have
  reliable data yet. Schedule recalibration in the Stage 4 post-mortem."

Verify (Stage 2 completion check)

After Stage 2, before moving to Stage 3:

✅ Feature flag toggled or version rolled back — confirmed in deployment logs
✅ Bad outputs quarantined or retracted — confirmed in system
✅ On-call owner notified — confirmed via comms channel
✅ Crime scene captured — versions, sample inputs/outputs, time window logged
✅ Leading indicators checked — no cascading issues spreading

References

  • AI Playbook Layer 4 §4.3 Incident response: .claude/skills/ai-playbook/playbook.md
  • AI Playbook Layer 4 §4.4 Kill switch tests: .claude/skills/ai-playbook/playbook.md
  • Post-mortem template: embedded in Stage 4 of this skill
  • New evals after incident: run /ai-eval-designer with the incident case as input

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.