incident
Skill2 starsChanged 3 months agoMITView on GitHub
Production incident discipline — stabilize first, understand later: triage severity and blast radius, mitigate with known-good states (rollback / flag off / failover), preserve evidence before it's destroyed, verify recovery by user-visible signal, then hand root-cause to /diagnose and feed the post-incident review. TRIGGER when: something is broken in production/live for real users RIGHT NOW — an outage, error spike, data corruption in progress, degraded service, a bad deploy — and the priority is making it stop. DO NOT TRIGGER when: the bug is reproducible in dev/CI with no live users affected (use /diagnose), or the incident is over and only analysis remains (use /diagnose for root cause, /retro for patterns).
21 other projects use a version of this.
Adopted by
Most recently taken up by
- AsiaOstrich/EngramGraphtheir own version, first seen Nov 8, 2026
- lalulali/vespyrtheir own version, first seen Nov 6, 2026
- AsiaOstrich/universal-dev-standardstheir own version, first seen Nov 1, 2026
- fervaldezjr/agent-opstheir own version, first seen Nov 1, 2026
- umararshad4/honey-stacktheir own version, first seen Nov 1, 2026
- DataWithBaraa/claude-code-data-engineering-skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use runbook, observability and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AnthropicSkillrunbook
Create or update an operational runbook for a recurring task or procedure. Use when documenting a task that on-call or ops needs to run repeatably, turning tribal knowledge into exact step-by-step commands, adding troubleshooting and rollback steps to an existing procedure, or writing escalation paths for when things go wrong.
Also in 4 projects that use this
OpenAISkillobservability
Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.
Also in 5 projects that use this
mijunriSkilldatabase
数据库脚本与操作规范。脚本放在 db_scripts 目录,遵循查询优化、事务、安全等实践。
Also in 3 projects that use this
tuistSkillmigrate
Migrates existing Xcode projects to Tuist generated workspaces with build and run validation, external dependency mapping, and migration checklists. Use when adopting Tuist for an existing app or converting a hand-edited Xcode project to generated projects.
Also in 4 projects that use this
anujdutt9Skillhandover
Also in 3 projects that use this
MicrosoftSkillretrospective
Review how work went and improve the next round. USE WHEN asked for a retro, delays, or process lessons. DO NOT USE for code review or transcript replay.
Also in 3 projects that use this
Other versions21 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 21
- AsiaOstrich/universal-dev-standards★ 84same name
- DataWithBaraa/claude-code-data-engineering-skills★ 84same name
- manusco/resonance★ 38same name
- ulises-jeremias/agent-toolkit★ 19same name
- lalulali/vespyr★ 11same name
- NotHarshhaa/devops-skills★ 8same name
- greglas75/zuvo★ 7same name
- umararshad4/honey-stack★ 5same name
- AsiaOstrich/EngramGraph★ 4same name
- gonimar/claude-web-studio★ 4same name
11 more not listed
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 repository48 other files it gives its agents.
- analystSkill
- api-designSkill
- arch-healthSkill
- audit-qualitySkill
- audit-securitySkill
- bootstrapSkill
- clean-mvpSkill
- close-epicSkill
- codebase-designSkill
- code-reviewSkill
- decomposeSkill
- deploySkill
- depsSkill
- diagnoseSkill
- discoverSkill
- distillSkill
- domain-modelSkill
- epic-statusSkill
- grillSkill
- grill-with-docsSkill
- handoffSkill
- ideaSkill
- implementSkill
- onboardSkill
- perfSkill
- preflightSkill
- prepareSkill
- prompt-masterSkill
- prototypeSkill
- refactorSkill
- retroSkill
- revisitSkill
- rolloutSkill
- scaffoldSkill
- select-techSkill
- spikeSkill
- sweepSkill
- tddSkill
- teardownSkill
- testSkill
- test-specSkill
- threat-modelSkill
- to-issuesSkill
- to-prdSkill
- triageSkill
- update-kitSkill
- which-skillSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 57
If nothing changed and the burning component is one nobody priced, read the operating list backwards (docs/decision-craft.md §9) — the …
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Incident Response
Incident: $ARGUMENTS
Principle — the priority inversion
Dev-time debugging (/diagnose) is understand → then fix; an incident inverts this:
stop the harm → preserve the evidence → then understand. Root-causing while users bleed
is the wrong altitude, and "quick fixes" invented under pressure are how one incident
becomes two. During the fire, movements go toward known-good states (the previous
deploy, the flag off, the replica) — never toward novel code written under adrenaline.
Everything that touches production is suggested, never run: this skill drives the investigation and drafts the exact commands; the user executes them. Speed comes from having the right command ready, not from the agent firing it.
Phase 0 — Load profile (fast pass)
- Read
.claude/PROJECT.md— Commands (logs / deploy / rollback if present), Integrations (monitoring, error tracking — read the live signal there, not guesses), Architecture (blast-radius map). - If PROJECT.md is missing/TEMPLATE: do not stop — an incident outranks bootstrap ceremony. Ask the user for the two facts you need now (where are logs? how was the last deploy done?) and note the degraded mode in the report.
Phase 1 — Triage (minutes, not depth)
- Impact now: who/what is affected, since when, how bad — from monitoring/error tracker/logs, stated with numbers ("checkout 5xx at 40% since 14:02"), not adjectives.
- Severity call: users blocked / money or data wrong / degraded / cosmetic. This
sets how much process to skip — full outage justifies acting on inferred evidence;
a cosmetic glitch doesn't justify a risky restart (
core.mdstill applies, scaled by severity). - What changed? Last deploy, config change, flag flip, dependency/provider event,
traffic shape (
git log+ deploy history + provider status pages). Most incidents are changes; the most recent change is the prime suspect — as a hypothesis to check against the timeline, not a verdict (failure mode #11): does symptom onset match the change time? If nothing changed and the burning component is one nobody priced, read the operating list backwards (docs/decision-craft.md§9) — the unanswered entry is usually where it lives. - Is it spreading? Corrupting data, filling a disk, cascading retries → containment (stop the writer, disable the job) may outrank diagnosis of anything.
Phase 2 — Preserve evidence (before any restart)
Mitigation destroys evidence: restarts clear memory state, rollbacks overwrite the bad build's behavior, log rotation eats the window. Before state-destroying mitigation, capture (draft the exact commands for the user):
- The error window of logs, copied out of rotation's reach.
- A handful of failing request/job examples (IDs, payload shapes, timestamps).
- Current metrics snapshot / dashboard state (screenshot or export).
- If data corruption: a snapshot/dump of the affected tables now — the corrupted state itself is evidence, and the backup gates any later repair.
Cheap and skippable only when the mitigation doesn't destroy state (a flag flip preserves everything — flip first, capture after).
Phase 3 — Mitigate toward known-good
In order of preference (least novel first). All of these are drafted commands the user runs — never fire a deploy, rollback or restart yourself. Output the exact command, say what it should do, and wait; a production action taken to save a round-trip is the one action nobody sanctioned.
- Rollback the suspect deploy (the previous build is the most-tested artifact you have).
- Flag off the suspect feature.
- Shed or reroute: failover, disable the non-critical subsystem, rate-limit the aggressor, serve degraded.
- Restart — only with a reason it would help (leak, wedged pool), not as a reflex.
- Hot-fix forward — last resort, only when no known-good state exists (e.g. the bug predates every rollback target). Smallest possible diff, reviewed by a second pair of eyes (or a fresh-context subagent) even under time pressure — pressure is when review pays most.
For the chosen mitigation, state before executing (predict-before-peek,
core.md): the expected signal change ("5xx should drop to baseline within ~2
min of rollback") and the abort condition. Two-strikes applies to mitigations: if two
attempts haven't moved the signal, the model of the incident is wrong — stop trying
variants, go back to Phase 1's "what changed" with the assumption audit from
core.md anti-thrash.
Phase 4 — Verify recovery
- The user-visible signal is back to baseline (not just "the process is up") — the same monitoring numbers from Phase 1, re-read.
- No secondary damage: queues drained, retries settled, data writes consistent.
- State plainly what is mitigated vs what is fixed — a rollback means the bug still exists and redeploying reintroduces it; say so in the report so nobody re-ships it (failure mode #14 — this caveat must survive every summary verbatim).
Phase 5 — After the fire
- Root cause → hand the preserved evidence to
/diagnose(its Phase 1 reproduction now has real payloads to work from) and lock the fix with a regression test. - Post-incident review — write the timeline from the preserved evidence, not from memory (self-anchoring bends recollection toward the story where responders were right): detection → decisions → mitigation → recovery, each with a timestamp and source. Blameless as a hard rule — causes are systems and defenses, never people; a review that names a culprit teaches everyone to hide the next incident. Where the trail ends at a person, name the missing or late information, or the tool that made it easy.
- Each contributing cause gets a defense at a named altitude (
core.md): detection (alert earlier), prevention (the/rolloutstage or check that would have caught it), or mitigation (faster rollback path). Recurring patterns feed/retro. An alert earns that altitude on two conditions — it reliably indicates that user experience is degraded, and a responder has a systematic way to act on it. Fail either and delete it. Anything the system already heals (autoscale, failover, breaker) is a business-hours investigation, never a page. - Offer to Write the review to the Plans location
(
<plans>/<YYYY-MM-DD>-<slug>-incident.md).
Output Format
## Incident Report
**Impact**: [who/what, numbers, start time — and current status]
**Severity**: [call + basis]
**Suspected trigger**: [the change + timeline evidence, or "unknown — candidates ruled out: …"]
**Evidence preserved**: [what, where]
**Mitigation**: [action taken + signal before/after] — MITIGATED / FIXED (say which)
**Residual risk**: [what's still true: bug alive in HEAD, degraded mode on, backfill owed]
**Next**: [root-cause via /diagnose · repair · review]Hard rules
- Suggest, never execute anything that touches production — rollbacks, restarts, flag flips, data repairs are drafted commands the user runs.
- No novel code during the fire — mitigate with known-good states; hot-fix forward only when no known-good exists, minimal and second-eyed.
- Preserve before you destroy: state-destroying mitigation waits for the evidence capture (or an explicit user "skip it, bleeding is worse").
- Data repair is gated on a backup of the affected data taken first — a repair script with a bug is the second incident.
- Mitigated ≠ fixed — the report always says which one happened, and the caveat travels verbatim into every handoff.
See also
/diagnose— root cause, after the fire is out (dev-time priority order)./rollout— the staged-deployment discipline that makes the next incident smaller./retro— recurring incident patterns fold back into rules.docs/decision-craft.md— doors, predict-before-peek, pre-mortems.
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.

