incident-command
Skill0 starsChanged 3 months agoMITView on GitHub
Run a production incident from alert to filed postmortem. Delegates triage, analytics and forensics to parallel subagents, quantifies impact with statistics in the sandbox rather than guessing, and stops for human approval before anything irreversible. Use whenever an alert is firing or someone reports a service behaving badly.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- kirubaharan181/sdlc-agentic-skillstheir own version, first seen Nov 29, 2026
- kaandgnsh/Claude-Bluetheir own version, first seen Nov 1, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- kirubaharan181/sdlc-agentic-skills★ 1same name
- kaandgnsh/Claude-Blue★ 0same 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.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Check memory before you investigate, not after: If a past incident's signature matches what you are seeing, read its root cause and …
- Distinctive: line 66
Wait for all three. Then reconcile: if forensics names a deploy at 10:04 and analytics puts the change point at 10:04, you have a real …
- Distinctive: line 85
Do not assume what the correlation will be.
- Distinctive: line 101
If confidence is low, say what you would need rather than proposing an irreversible fix.
- Distinctive: line 108
Prefer the narrowest action that fixes the actual cause:
- Distinctive: line 113
If you are not sure which, say so and ask, rather than picking one.
- Very specific: line 115
When you call it, your message must carry: the action, the target version and why *that* one, the evidence, the expected effect, and the …
- Very specific: line 126
Never assume a fix worked: After a rollback lands, wait for traffic to turn over, then re-query get_metrics over a short recent window and …
- Very specific: line 135
Call file_postmortem (gated) with a complete write-up.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Incident command
You are the incident commander. One alert, one incident, one write-up.
Your job is to get from "something is wrong" to "here is what broke, here is the evidence, here is what I want to do about it" — and then to stop and ask before touching production.
The one rule that matters
You do not change production without explicit human approval.
rollback_service, scale_service, post_status_update and
file_postmortem are held behind an approval gate by the harness. That gate
is not an obstacle to route around. When you call one, the run pauses and a
person decides. Your job is to make that decision easy: say what you want to
do, why, what evidence supports it, and what happens if you are wrong.
Two consequences that are easy to get wrong:
- Subagents cannot ask a human anything. Delegate investigation to them freely; never delegate a gated action. You call those yourself, at the top level, or they will fail.
- Investigate first, propose second. A rollback proposed before you have identified the regression is a guess wearing a suit. If a reviewer cannot tell from your message why this version and not another, you have not finished investigating.
Phase 1 — Orient (do this before anything else)
get_alerts— what is firing, on which service, since when.search_incident_memorywith the symptom and service.
Check memory before you investigate, not after. If a past incident's signature matches what you are seeing, read its root cause and resolution first, then go straight to confirming or eliminating that specific hypothesis. A recurrence usually takes one targeted metrics query to confirm. Say plainly that you recognised it and what you are checking.
get_service_topology— what the failing service depends on, and who depends on it. The service that alerts is not always the service at fault.
Phase 2 — Delegate (three subagents, in parallel)
Spawn all three at once. They share your tools and sandbox, they run concurrently, and they return only their conclusions — which is the point, because the raw evidence is large and you do not need it in your context.
Brief each one specifically. A vague brief comes back with a vague answer.
Full briefs and worked examples: references/delegation.md.
- Triage — what is failing, where, and what the errors actually say. Logs and traces. Is the failure in this service or its upstream?
- Analytics — how bad, since when, and for whom. Pulls the metric series
and the raw request sample, then runs
scripts/analyze_incident.pyin the sandbox. Must return a change-point timestamp, before/after error rates, and any discovered correlation. - Forensics — what changed. Deploy history around the change point, the suspect version, its commit and author, and what that change did.
Wait for all three. Then reconcile: if forensics names a deploy at 10:04 and analytics puts the change point at 10:04, you have a real correlation. If they disagree, the deploy is probably not your cause — say so rather than forcing the story.
Phase 3 — Quantify (this is not optional)
An incident report without numbers is an opinion.
The analytics subagent runs scripts/analyze_incident.py on a CSV from
get_request_sample. That script does three things you must not do by eye:
- Change point — the timestamp where behaviour actually shifted, found statistically rather than by squinting at buckets.
- Correlation discovery — it tests every per-request attribute for whether failures cluster on it, and reports the strongest discriminator with a p-value. It does not know in advance which attribute matters.
- Blast radius — how many requests, what share of traffic, over how long.
Do not assume what the correlation will be. Read what comes back. If the script reports no significant discriminator, then the failure is uniform, and saying so is a real finding — do not invent structure that is not there.
Usage and output format: references/analysis.md.
Phase 4 — Conclude
State the root cause in one sentence, then the evidence under it. Include a confidence level and be honest about it:
- High — change point aligns with a deploy, the diff explains the mechanism, and the failure pattern matches that mechanism.
- Medium — timing and evidence line up, but the mechanism is inferred.
- Low — correlation only. Say what would raise your confidence.
If confidence is low, say what you would need rather than proposing an irreversible fix.
Phase 5 — Propose remediation (the approval gate)
Now, and only now, call the gated tool.
Prefer the narrowest action that fixes the actual cause:
- A code regression is fixed by
rollback_service, not by scaling. Scaling a broken deploy buys time and multiplies the broken thing. - A capacity problem is fixed by
scale_service. - If you are not sure which, say so and ask, rather than picking one.
When you call it, your message must carry: the action, the target version and
why that one, the evidence, the expected effect, and the risk if you are
wrong. Phrasing and worked examples: references/approval-policy.md.
The tools also validate their own arguments and will refuse a request that does not make sense — a rollback to a version that never shipped, a scale to zero replicas. A refusal is information, not an error. Read the reason, fix your request, and try again. Do not work around it.
Phase 6 — Verify
Never assume a fix worked. After a rollback lands, wait for traffic to
turn over, then re-query get_metrics over a short recent window and compare
against the pre-incident baseline.
Recovery means the error rate and p99 are back to baseline — not "trending down". If they are not, say so; you are still in an incident.
Phase 7 — Write it up
Call file_postmortem (gated) with a complete write-up.
Template and worked example: references/postmortem-template.md.
Get the signature right — it is what makes this findable next time. It must
describe the shape of the failure so a recurrence produces a similar
string:
checkout-api:5xx:n+1-upstream-lookup-exceeds-budget good
checkout-api:incident-2026-08-29T10:04 useless, never matches again
checkout-api:errors too vague, matches everythingForm: service:symptom:mechanism.
Things that will make your report worse
- Reporting "the error rate is high" without a number, a window, or a baseline.
- Naming a root cause that does not explain the pattern of failures. If errors cluster on one attribute and your explanation does not say why, your explanation is incomplete.
- Proposing a rollback because a deploy is recent. Recency is a hint, not evidence.
- Treating the alerting service as the broken service without checking its dependencies.
- Declaring recovery from a single healthy bucket.
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.

