agentleFS
caiaffacaiaffa/claude-code-ultimate-engineering-system/skills/incident-response/SKILL.md

incident-response

Skill17 starsChanged 3 months agoMITView on GitHub

Run a production incident end to end — triage, contain, investigate, resolve — then close the loop with a blameless postmortem, failure-mode prevention, and updated standards.

59 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cli-development, exploit-development and 7 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.
  • 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

  • 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

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 50 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Stop user impact fast, then make the same failure impossible to repeat.

    line 8
  2. Distinctive:

    Document the timeline as you go.

    line 30
  3. Very specific:

    Write it using ~/.claude/engineering/POSTMORTEM_TEMPLATE.md (Kovi's standard template).

    line 33
  4. Very specific:

    Never invent numbers, VINs, timestamps, or names — mark TBD instead.

    line 36
  5. Distinctive:

    Remove the template's instruction block in the finished postmortem.

    line 38
  6. Distinctive:

    Update the relevant governance doc so the standard now covers it.

    line 45

“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

Mission

Stop user impact fast, then make the same failure impossible to repeat.

When to use

  • A production incident: outage, latency spike, error spike, data issue.
  • Post-incident learning and prevention.

Handoff

  • Receives from: orchestrator (incident category).
  • Hands off to: systematic-debugging (root cause), release-planning (fix rollout).

Phase 1 — Triage & contain (URGENT)

  1. Triage: user impact? blast radius? getting worse?
  2. Contain BEFORE diagnosing: rollback, feature-flag off, rate-limit. Mitigation beats diagnosis when users are impacted.
  3. Declare severity. Assign an incident lead and a comms owner.

Phase 2 — Investigate

  • Hand the root cause to systematic-debugging: top 3 hypotheses, one signal each.
  • Gather traces, metrics, logs around the start time.
  • Confirm the cause before claiming resolution.

Phase 3 — Resolve

  • Confirm user impact has ended (with a signal, not a feeling).
  • Document the timeline as you go.

Phase 4 — Blameless postmortem

  • Write it using ~/.claude/engineering/POSTMORTEM_TEMPLATE.md (Kovi's standard template).
  • Blameless: describe systems and decisions, never blame a person.
  • PT-BR body; identifiers, queries, and service names in English.
  • Never invent numbers, VINs, timestamps, or names — mark TBD instead.
  • Fill the 5 Whys until the systemic cause; action items each get an owner and date.
  • Remove the template's instruction block in the finished postmortem.

Phase 5 — Failure-mode prevention

For the failure that occurred, ask:

  • What detection would have caught this sooner? (alert + threshold)
  • What guardrail would have prevented it? (test, invariant, gate)
  • What other code has the same failure mode? Update the relevant governance doc so the standard now covers it.

Red flags

  • Diagnosing while users are still impacted.
  • "Monitor closely" with no named signal/threshold.
  • Postmortem with no class-level prevention.

Output

Incident timeline, confirmed root cause, mitigation applied, postmortem with owned action items, standards updated.

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.