agentleFS
khuynh22khuynh22/agent-dev-team/skills/incident-response/SKILL.md

incident-response

Skill9 starsChanged 3 months agoMITView on GitHub

Runs a live production failure: set severity, check what changed, mitigate before diagnosing, communicate on a clock, then write a blameless postmortem. Use when production is broken right now, when an outage or degradation needs coordinating, or when writing the postmortem afterwards.

59 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use dora-metrics, cli-development and 9 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.
  • caiaffaSkill

    dora-metrics

    Measure and improve engineering delivery performance using the four DORA metrics — deployment frequency, lead time for changes, change failure rate, and time to restore. Use to assess delivery health and find the next bottleneck.

    Also in 3 projects that use this

  • nimadorostkarSkill

    cli-development

    Use when building command-line tools. Covers argument design, exit codes, streams and piping, progress output, configuration precedence, and behavior that respects the shell.

    Also in 3 projects that use this

  • jessefmooreSkill

    exploit-development

    PoC development, payload crafting, shellcode generation, ROP chains, heap exploitation, bypass techniques for modern mitigations (ASLR, DEP, CFI, stack canaries)

    Also in 3 projects that use this

  • witi-projectsSkill

    react-native-patterns

    Build mobile apps with React Native and Expo — navigation, platform-specific code, performance, and native modules. Use when the user says "/react-native-patterns", "react native patterns", or asks about react native patterns.

    Also in 3 projects that use this

  • Robotti-ioSkill

    secure-code-review

    Repeatable process for an application security code review that produces prioritized findings and fix guidance.

    Also in 4 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 7 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 50 edited versions we read keep these.

  • 3

    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
  1. Distinctive:

    Before theorising, check the ten minutes before the first alert: a deploy, a feature flag, a config push, a certificate, a dependency, a …

    line 36
  2. Distinctive:

    Every 30 minutes for Sev 1 and 2, even with no news.

    line 53
  3. Very specific:

    Only after impact has stopped.

    line 66
  4. Distinctive:

    Every mitigation has a quoted before-and-after metric.

    line 105

“Common” is measured: kept by at least 6 in 10 of the 50 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Incident Response

Your objective is a shorter outage, not a correct theory. Mitigation comes before diagnosis, every time.

1. Declare and set severity

Say it out loud so everyone shares one picture.

SevMeaning
1Total outage, data loss, or a security breach. All hands.
2Major function broken for many users, no workaround.
3Degraded, or broken for a subset; a workaround exists.
4Minor, cosmetic, or internal only.

Unsure between two levels? Take the higher one. Downgrading is cheap; upgrading late is not.

Escalate to a human immediately for suspected data loss, a suspected security breach, customer data exposure, legal or regulatory exposure, or a decision to accept prolonged downtime. Those are not technical calls.

2. What changed

Before theorising, check the ten minutes before the first alert: a deploy, a feature flag, a config push, a certificate, a dependency, a traffic shift, a scheduled job. This explains most incidents and takes two minutes to check.

3. Mitigate

Roll back, flip the flag, shed load, fail over, or degrade the feature. You do not need to know why in order to stop the bleeding.

Announce every action before taking it: what you are doing, what it should do, and the signal that will confirm it. An untracked change during an incident creates a second incident inside the first.

Then verify with telemetry, quoting the metric before and after. Not with hope.

4. Communicate on a clock

Every 30 minutes for Sev 1 and 2, even with no news. "Still investigating, next update at 14:30" is a valid update and prevents six people from interrupting the responders.

[SEV<n>] <one-line impact: who cannot do what>
Started: <time> · Status: investigating | mitigating | monitoring | resolved
Impact: <scope, number of users if known>
Current action: <what is happening right now>
Next update: <time>

5. Preserve evidence, then diagnose

Only after impact has stopped. Before anything is cleaned up or restarted, capture: logs for the window, a metrics snapshot, the exact deployed version, and a copy of any bad state. Then use systematic-debugging.

6. Postmortem, within 48 hours

# Postmortem: <title>
- **Impact:** <who, what they could not do, how long, how many>
- **Severity:** <n>
- **Detected by:** <alert / customer / engineer> — <how long after onset>

## Timeline
<UTC: change, onset, detection, mitigation, resolution>

## What happened
<the mechanism, in plain language>

## Why it was not caught
<the gap in tests, review, staging, or alerting>

## Why detection took <n> minutes
<a separate question from the cause, and usually the higher-leverage one>

## Action items
| Action | Owner | Due | Prevents recurrence / reduces detection time |

Rules:

  • No names as causes. "Someone made a mistake" is never a root cause; the system that let the mistake reach production is.
  • Detection time gets its own section. Reducing it usually pays more than preventing one specific cause, and it is almost always skipped.
  • Every action item has an owner and a date, or it is not an action item.

Verification

  • Impact stopped before diagnosis started, or you state why mitigation was impossible.
  • Every mitigation has a quoted before-and-after metric.
  • Updates went out on the clock.
  • Evidence was preserved before cleanup.
  • The postmortem separates cause from detection and names no person as a cause.

Red flags

ThoughtReality
"Let me find the root cause first"Users are down. Mitigate.
"I'll try this and see if it helps"State the expected effect and the confirming signal first.
"No news, so no update""No news, next update at 14:30" is the update.
"It resolved itself"Then you do not know it will not return. Find what changed.
"Restart it and move on"You just destroyed the evidence. Capture first.
"It is probably a Sev 3"Unsure between two? Take the higher.
"The person who deployed caused this"The system that let an untested change reach production caused it.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.