ai-incident-response
Skill36 starsChanged 6 months agoMITView on GitHub
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.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- obielin/responsible-ai-skillstheir own version, first seen Mar 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- obielin/responsible-ai-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository157 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a2ui-angularSkill
- accessibility-auditSkill
- adk-deploy-guideSkill
- adk-dev-guideSkill
- adk-eval-guideSkill
- adk-observability-guideSkill
- agentic-ai-coding-standardSkill
- agentic-ai-devSkill
- ai-auditSkill
- ai-chatSkill
- ai-decision-recordSkill
- ai-launch-checkSkill
- ai-playbookSkill
- angular-best-practicesSkill
- angularSkill
- angular-spaSkill
- angular-ui-patternsSkill
- api-design-principlesSkill
- app-store-optimizationSkill
- architect-reviewSkill
- architecture-decision-recordsSkill
- architecture-designSkill
- asc-cli-usageSkill
- asc-crash-triageSkill
- asc-id-resolverSkill
- asc-release-flowSkill
- asc-signing-setupSkill
- asc-submission-healthSkill
- asc-testflight-orchestrationSkill
- browser-testingSkill
- changelog-generatorSkill
- claude-actions-auditorSkill
- clean-codeSkill
- codebase-onboardingSkill
- code-explainerSkill
- code-reviewerSkill
- code-simplifierSkill
- comment-analyzerSkill
- database-schema-designerSkill
- ddd-architectSkill
- decision-frameworksSkill
- dedup-code-agentSkill
- deployment-ci-cdSkill
- design-systemSkill
- dockerSkill
- documentation-generationSkill
- domain-finderSkill
- error-detectiveSkill
- eval-guideSkill
- feature-forgeSkill
- firebase-basicsSkill
- firebase-hosting-basicsSkill
- fixing-accessibilitySkill
- fixing-motion-performanceSkill
- flutter-animationsSkill
- flutter-genuiSkill
- flutter-mobileSkill
- flutter-security-expertSkill
- frontend-designSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 18 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈18
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
When AI production behavior degrades, follow the procedure from the AI Playbook (Layer 4 §4.3).
- Distinctive: line 17
Do these in order. Do not investigate root cause yet — that comes after the bleeding stops.
- Distinctive: line 19
Confirm scope: Ask the user:
- Distinctive: line 22
When did it start?
- Distinctive: line 25
Decide on rollback or kill: Check the Decision Record for rollback triggers.
- Distinctive: line 26
Pull the kill switch: if the feature is causing user-visible harm.
- Distinctive: line 30
Capture the crime scene: before anything else changes:
- Distinctive: line 75
Identify the eval gap: Every confirmed incident represents an example your eval set didn't catch.
- Distinctive: line 83
Write the post-mortem: Use this template:
- Distinctive: line 123
Add new eval cases to the golden dataset.
- Distinctive: line 124
Add new adversarial cases to the CI test catalog if applicable.
- Distinctive: line 125
Update the Decision Record if assumptions changed.
- Distinctive: line 126
Update kill-switch tests if a new failure mode is now reachable.
- Distinctive: line 128
Calibrate: If the incident reveals that composite-confidence weights or thresholds are wrong, schedule a recalibration.
- Distinctive: line 132
Stabilize before investigating: Do not let curiosity about root cause delay killing the bleeding.
- Distinctive: line 133
Trust the kill switch: If it exists and is tested, pulling it is rarely the wrong call.
- Distinctive: line 134
Capture before changing: Every change after the incident starts erases evidence.
- Distinctive: line 164
After Stage 2, before moving to Stage 3:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
- 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?
- 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.
- 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
- 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)
- 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)
- 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.
- 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)
- 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)
- 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)
- Write the post-mortem. Use this template:
# Post-Mortem: <Feature Name> — <Date>
## Summary
- What happened (one paragraph)
- Severity (S0 / S1 / S2 / S3)
- User impact
- Duration: <detection time> → <stabilization time> → <full recovery>
## Timeline
- <time>: <event>
- <time>: <event>
- ...
## Root cause
<the actual cause, not the symptom>
## Why our controls didn't catch this
- Output Contract: ...
- Evals: ...
- Adversarial tests: ...
- Leading indicators: ...
- Kill switch / rollback: ...
## Eval gap — new test cases to add
- <input> → <expected> (was: <actual>)
- ...
## Prevention
- Immediate (this week): ...
- Short-term (this month): ...
- Structural (this quarter): ...
## Owner
<Named human>- 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.
- 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/<feature-slug>.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 spreadingReferences
- 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-designerwith the incident case as input
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

