agentleFS
tejastn10tejastn10/workbench/skills/incident/incident-response/SKILL.md

incident-response

Skill1 starsChanged 2 months agoMITView on GitHub

Run a live production incident — declare severity, assign roles, stabilize (mitigate before fixing), communicate on a cadence, keep a timeline as you go, and hand off to a postmortem when it's resolved. Use when prod is down or degraded right now, an alert has paged, or the user says "we have an incident" / "prod is broken" / "everything's on fire".

81 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use dora-metrics, background-jobs and 10 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.
  • jholhewresSkill

    dora-metrics

    Calculate DORA metrics from git + deploy logs

    Also in 3 projects that use this

  • YepAPISkill

    background-jobs

    Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

    Also in 4 projects that use this

  • MicrosoftSkill

    data-modeling

    Use when the app needs to store or read data — records, a database, entities, CRUD, lists, "save/remember X", or per-user data with row-level security. This app's data layer is Rayfin's: you declare entities as TypeScript classes with decorators in rayfin/data/, register them in the schema, and read/write them through the typed rayfin-client. Covers: defining an @entity, field decorators, registering it, per-entity access with @role, owner-only row-level security, and the client query/mutation API. Triggers: data, database, model, entity, schema, table, record, CRUD, create, read, update, delete, list, store, save, persist, per-user, row-level security, RLS, access control, ownership.

    Also in 7 projects that use this

  • YepAPISkill

    data-pipelines

    ETL patterns, cron scheduling, queue-based processing, and batch jobs with Inngest/BullMQ.

    Also in 4 projects that use this

  • mmondoraSkill

    infrastructure-as-code

    Infrastructure as Code with Terraform and Pulumi. State management, modularity, drift detection, secrets handling. Use when provisioning cloud resources, writing Terraform/Pulumi modules, or managing infrastructure configuration.

    Also in 5 projects that use this

  • csiddhant796-blipSkill

    threat-detection

    Use when hunting for threats in an environment, analyzing IOCs, or detecting behavioral anomalies in telemetry. Covers hypothesis-driven threat hunting, IOC sweep generation, z-score anomaly detection, and MITRE ATT&CK-mapped signal prioritization.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 68 edited versions we read keep these.

  • 1

    Distinctive

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

    Don't immediately roll the fix forward — hold until the cause is understood.

    line 52

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

The job during an incident is restore service, not find the root cause. Root cause comes after, in the postmortem.

1. Declare

  • Severity — SEV1 (major outage / data loss / security), SEV2 (significant degradation, key flow broken), SEV3 (minor, contained). When unsure, round up.
  • Open an incident channel. State: what's affected, since when, who's on it.

2. Assign roles (even solo, name them)

  • Incident Commander — owns the response, makes calls, does not also debug.
  • Ops / responder — investigates and applies changes.
  • Comms — status page, stakeholder updates. Solo: you're IC + ops; still post updates on a timer.

3. Stabilize — mitigate before you fix

Fastest safe lever first:

  • Feature flag off (deployment/rollback).
  • Roll back the last deploy.
  • Scale up / shed load / rate-limit the bad path.
  • Fail over (replica, region).
  • Disable the broken feature.

A crude mitigation that restores service now beats a correct fix in an hour.

4. Communicate on a cadence

  • First update within minutes: "investigating, impact is X".
  • Then every 15–30 min (SEV1) even if it's "still working on it".
  • Say impact in user terms, not internals. No speculation on cause.
  • Final: "resolved at HH:MM, postmortem to follow".

5. Timeline as you go

Timezone-stamp every action and finding in the channel while it happens — memory is worse than you think an hour later. This becomes the postmortem timeline.

6. Resolve & hand off

  • Resolved = the user-facing metric is back to baseline and holding, confirmed — not "the deploy finished".
  • Don't immediately roll the fix forward — hold until the cause is understood.
  • Within a few days: incident/postmortem (blameless).

Anti-patterns

  • ❌ Debugging root cause while the site is down instead of mitigating.
  • ❌ The IC also being head-down in the code.
  • ❌ Going quiet — no updates while you work.
  • ❌ Speculating about cause in a public update.
  • ❌ "Resolved" because the deploy succeeded, not because the metric recovered.
  • ❌ No timeline until you sit down to write the postmortem.

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.