agentleFS
sohaibdevvsohaibdevv/AI-AGENT-SKILLS/skills/incident-response/SKILL.md

incident-response

Skill2 starsChanged 6 months agoMITView on GitHub

Structured incident response: detect, communicate, mitigate, resolve, and prevent recurrence

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 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.
  • 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

  • mmondoraSkill

    data-modeling

    Schema design, multi-tenant data isolation, and migration management. Firestore and PostgreSQL patterns, RLS, UUID v7 conventions. Use when designing database schemas, writing migrations, or implementing multi-tenant data access.

    Also in 4 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

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 50 edited versions we read keep these.

  • 8

    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:

    When an alert fires indicating user impact

    line 14
  2. Distinctive:

    When a deployment causes degraded service

    line 15
  3. Distinctive:

    When you discover a data issue in production

    line 16
  4. Distinctive:

    After any unplanned outage, even brief

    line 17
  5. Distinctive:

    Do not wait until you have a fix.

    line 40
  6. Distinctive:

    Don't spend time diagnosing the root cause while users are impacted.

    line 54
  7. Distinctive:

    Verify: error rate back to baseline, latency back to baseline, no new error types in logs, affected users can complete their tasks.

    line 69
  8. Distinctive:

    What went well: don't only document failures

    line 82

“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

Overview

Incidents are inevitable. How you respond determines whether they are learning opportunities or recurring nightmares. This skill gives you a structured process from first alert to prevention of recurrence.

When to Use

  • When an alert fires indicating user impact
  • When a deployment causes degraded service
  • When you discover a data issue in production
  • After any unplanned outage, even brief

Process

Phase 1: DETECT (0–5 minutes)

Step 1: Acknowledge the alert Acknowledge in your alerting system within 5 minutes. This signals you're on it and stops duplicate escalations.

Step 2: Assess severity

  • P0 - Complete service outage, data loss, security breach. Page everyone.
  • P1 - Significant degradation affecting many users. Page the team.
  • P2 - Partial degradation, workaround exists. Handle during business hours.
  • P3 - Minor issue, users unaffected or workaround obvious. Normal ticket.

Step 3: Declare the incident and open a channel For P0/P1: open an incident channel (#incident-YYYY-MM-DD-brief-description). All communication goes there. Appoint an Incident Commander (IC).

Phase 2: COMMUNICATE (5–15 minutes)

Step 4: Post a status update Within 15 minutes of detection, post to the status page: "We are investigating reports of [symptom]. We will provide an update in 30 minutes." Do not wait until you have a fix. Users need to know you know.

Step 5: Brief stakeholders Notify: on-call manager, customer-facing teams, affected customers (for P0/P1). Use the incident channel as the single source of truth.

Phase 3: MITIGATE (15 minutes – resolution)

Step 6: Stop the bleeding first Mitigation before diagnosis. Options:

  • Roll back the last deployment
  • Disable the feature flag
  • Scale up capacity
  • Redirect traffic away from the failing component

Don't spend time diagnosing the root cause while users are impacted. Mitigate first.

Step 7: Diagnose Once impact is reduced, find the root cause:

  • What changed recently? (Deployments, config changes, traffic spikes)
  • What do the metrics show? (Error rate, latency, saturation)
  • What do the logs show? (First error, error pattern, affected user IDs)
  • What do the traces show? (Where in the call chain is the failure?)

Step 8: Implement the fix Implement the minimal fix. This is not the time for refactoring.

Phase 4: RESOLVE (at mitigation/fix)

Step 9: Confirm resolution Verify: error rate back to baseline, latency back to baseline, no new error types in logs, affected users can complete their tasks.

Step 10: Update status page Post: "The issue has been resolved. Affected users can [action]. We will publish a post-mortem within 48 hours."

Phase 5: LEARN (within 48 hours)

Step 11: Write the post-mortem Structure:

  • Summary: what happened, duration, user impact
  • Timeline: minute-by-minute from first symptom to resolution
  • Root cause: the underlying cause (not just the immediate trigger)
  • Contributing factors: what made this worse or harder to detect
  • What went well: don't only document failures
  • Action items: specific tasks with owners and due dates

Step 12: Blameless post-mortem Focus on systems and processes, not individuals. "The deployment pipeline allowed a bad config to reach production" not "Alice pushed bad config."

Anti-Rationalizations

"We'll communicate once we have a fix" Users need to know you know. An hour of silence is worse than an honest "we're investigating."

"We know the root cause - no need for a post-mortem" Post-mortems are not just for finding root causes. They identify contributing factors, test your detection and response, and create shared understanding. Skip them and the same incident recurs.

Verification Requirements

  • Incident acknowledged within 5 minutes of alert
  • Severity assessed and appropriate people notified
  • Status page updated within 15 minutes
  • Mitigation performed before full diagnosis
  • Resolution confirmed with metrics, not just a fix deployment
  • Post-mortem written within 48 hours
  • Action items have owners and due dates

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.