agentleFS
Rune-kitRune-kit/rune/skills/incident/SKILL.md

incident

Skill96 starsChanged 7 months agoMITView on GitHub

Structured incident response. Use when user reports an outage, production error, or says 'incident', 'something is down', 'users are affected'. Triage severity, contain blast radius, root-cause, document timeline, generate postmortem.

30 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use runbook, observability 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.
  • AnthropicSkill

    runbook

    Create or update an operational runbook for a recurring task or procedure. Use when documenting a task that on-call or ops needs to run repeatably, turning tribal knowledge into exact step-by-step commands, adding troubleshooting and rollback steps to an existing procedure, or writing escalation paths for when things go wrong.

    Also in 4 projects that use this

  • OpenAISkill

    observability

    Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.

    Also in 6 projects that use this

  • LangChainSkill

    migrate

    Bring a person's local coding-agent setup into Robin — past Claude Code and Codex conversations become Robin threads, their standing preferences become personal Robin instructions, and their skills become personal Robin skills. Read this whenever someone asks to import, migrate or move over their sessions, conversations, history, memories, CLAUDE.md, AGENTS.md or skills.

    Also in 5 projects that use this

  • MicrosoftSkill

    hotfix

    Proposes a scoped version bump for a roosterjs hotfix. Given one or more commits provided by the user, determines which packages had files changed by those commits, bumps the version only for the affected version groups, and creates a draft PR. Use when asked to do a hotfix, a scoped/targeted version bump, or to release only specific commits.

    Also in 3 projects that use this

  • drewdrewthisSkill

    sweep

    Search for similar patterns, anti-patterns, or issues elsewhere in the codebase after a fix or feature. Use after implementing a fix to catch the same bug in other places, or proactively to audit for a known pattern.

    Also in 3 projects that use this

  • mijunriSkill

    database

    数据库脚本与操作规范。脚本放在 db_scripts 目录,遵循查询优化、事务、安全等实践。

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If watchdog returns DOWN — return to Step 2 with a different containment strategy.

    line 87
  2. Very specific:

    If sentinel returns BLOCK: escalate to security incident — different protocol (notify security team, preserve logs, document access chain).

    line 97
  3. Very specific:

    If sentinel returns PASS or WARN: continue to root cause.

    line 98
  4. Very specific:

    Do not attempt fixes — incident only investigates.

    line 109
  5. Distinctive:

    MUST triage before any other action — severity determines urgency, approach, and escalation path

    line 204
  6. Distinctive:

    MUST contain before root-cause — investigating while system is down prolongs the incident

    line 205
  7. Distinctive:

    MUST invoke watchdog to verify containment — never assume contained without measurement

    line 206
  8. Distinctive:

    MUST invoke sentinel before closing — every incident has a potential security dimension

    line 207
  9. Distinctive:

    MUST NOT make code changes during incident response — incident investigates only.

    line 208
  10. Distinctive:

    MUST generate postmortem for every P1 and P2 — P3 optional

    line 209

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

Purpose

Structured incident response for production issues. Follows a strict order: triage first, contain before investigating, root-cause after stable, postmortem last. Prevents the most common incident anti-pattern — developers debugging while the system is still on fire. Covers P1 outages, P2 degraded service, and P3 minor issues with appropriate urgency at each level.

Triggers

  • /rune incident "description of what's broken" — direct user invocation
  • Called by launch (L1): watchdog alerts during Phase 3 VERIFY
  • Called by deploy (L2): health check fails post-deploy
  • Signal: auto-triggers when watchdog emits incident.detected — no manual invocation needed

Calls (outbound)

  • watchdog (L3): current system state — which endpoints are down, response times
  • autopsy (L2): root cause analysis after containment
  • journal (L3): record incident timeline and decisions
  • sentinel (L2): check for security dimension (data exposure, unauthorized access)
  • neural-memory (ext): after resolution — capture incident root cause + fix pattern cross-session so the same failure mode is never diagnosed twice

Called By (inbound)

  • launch (L1): monitoring alert during production verification
  • deploy (L2): post-deploy health check failure
  • User: /rune incident direct invocation

Executable Steps

Step 1 — Triage

Classify severity using this matrix:

SeverityDefinitionContain Within
P1Full outage — core feature unavailable for all users15 minutes
P2Partial degradation — feature broken for subset of users or degraded for all1 hour
P3Minor issue — cosmetic, edge case, or non-blocking degradation4 hours

P1 indicators: 5xx on root /, auth endpoint down, payment flow broken, data loss detected P2 indicators: elevated error rate (>1%) on key flow, 1+ regions down, performance >5x baseline P3 indicators: UI glitch, non-critical feature broken, low error rate (<0.1%)

Emit: TRIAGE: [P1|P2|P3] — [one-line impact description]

Step 2 — Contain

<HARD-GATE> During active incident (before CONTAINED status), DO NOT attempt code fixes or root cause analysis. Contain first. Ship code during active P1/P2 without containment = turning P2s into P1s. </HARD-GATE>

Choose containment strategy based on what's available and severity:

StrategyWhen to Use
RollbackLast deploy caused regression (check git log vs incident start time)
Feature flag offFeature-gated code — disable without deploy
Traffic shiftMulti-region: route away from affected region
Scale upResource exhaustion (CPU/memory/connection pool)
Rate limitAbuse pattern or traffic spike
Manual interventionDB locked record, stuck job, cache corruption

Execute containment action. Then invoke watchdog to verify system is stable before proceeding.

Emit: CONTAINED: [strategy used] — [timestamp] or CONTAINMENT_FAILED: [what was tried] — escalate

Step 3 — Verify Containment

Invoke watchdog with current base_url and critical endpoints.

Proceed to Step 4 only if watchdog returns ALL_HEALTHY or DEGRADED with upward trend. If watchdog returns DOWN — return to Step 2 with a different containment strategy.

Step 4 — Security Check

Invoke sentinel to check if the incident has a security dimension:

  • Data exposure (PII, credentials in logs/responses)
  • Unauthorized access pattern in logs
  • Injection attack vector triggered the incident
  • Dependency with known CVE involved

If sentinel returns BLOCK: escalate to security incident — different protocol (notify security team, preserve logs, document access chain). If sentinel returns PASS or WARN: continue to root cause.

Step 5 — Root Cause Analysis

Invoke autopsy with context:

  • Incident start timestamp
  • Failing components identified in Step 2-3
  • Recent deploy info (commit hash, deploy timestamp, changed files)

autopsy returns: root cause hypothesis with evidence, affected code paths, contributing factors.

Do not attempt fixes — incident only investigates. Any code changes are a separate task.

Step 6 — Timeline Construction

Construct incident timeline using:

  • Incident start time (when first detected)
  • Triage time (when severity classified)
  • Containment time (when system stabilized)
  • RCA time (when root cause identified)
  • Resolution time (when fully resolved)

Format:

[HH:MM] Incident detected — [who/what detected it]
[HH:MM] Triage: [P1/P2/P3] — [impact]
[HH:MM] Containment started — [strategy]
[HH:MM] CONTAINED — [watchdog confirms stable]
[HH:MM] RCA: [root cause summary]
[HH:MM] Resolution: [what was done]

Invoke journal to record the timeline and decisions in .rune/adr/ as an incident ADR.

Step 7 — Postmortem

Generate postmortem report and save as .rune/incidents/INCIDENT-[YYYY-MM-DD]-[slug].md:

# Incident Report: [title]

**Severity**: [P1|P2|P3]
**Date**: [YYYY-MM-DD]
**Duration**: [time from detection to resolution]
**Impact**: [users affected, data affected, revenue impact if known]

## Timeline
[from Step 6]

## Root Cause
[from autopsy — specific, not vague]

## Contributing Factors
[from autopsy — what made this worse]

## What Went Well
[containment speed, detection, communication]

## What Went Wrong
[detection lag, failed first containment, etc.]

## Prevention Actions

| Action | Owner | Due | Priority |
|--------|-------|-----|----------|
| [specific action] | [team/person] | [date] | P1/P2/P3 |

## Lessons Learned
[3-5 bullet points]

Output Format

## Incident Response: [title]

### Triage
P2 — Login service returning 503 for ~30% of users

### Containment
Strategy: Rollback to commit abc123 (pre-deploy from 14:32)
Status: CONTAINED at 15:07 — watchdog confirms ALL_HEALTHY

### Security Check
sentinel: PASS — no data exposure detected

### Root Cause (from autopsy)
Connection pool exhausted — new feature added synchronous DB call in middleware,
reducing available connections from 20 to 3 under load
File: src/middleware/auth.ts:47

### Timeline
14:32 Deploy completed
14:45 Alerts fired — 503 rate >1%
14:47 TRIAGE: P2
14:52 Containment: rollback initiated
15:07 CONTAINED
15:20 RCA complete
15:35 Postmortem drafted

### Postmortem saved
.rune/incidents/INCIDENT-2026-02-24-login-503.md

Constraints

  1. MUST triage before any other action — severity determines urgency, approach, and escalation path
  2. MUST contain before root-cause — investigating while system is down prolongs the incident
  3. MUST invoke watchdog to verify containment — never assume contained without measurement
  4. MUST invoke sentinel before closing — every incident has a potential security dimension
  5. MUST NOT make code changes during incident response — incident investigates only; fixes are a separate task
  6. MUST generate postmortem for every P1 and P2 — P3 optional

Mesh Gates (L1/L2 only)

GateRequiresIf Missing
Triage GateSeverity classified (P1/P2/P3) before any other stepClassify before proceeding
Containment Gatewatchdog confirms HEALTHY/DEGRADED-improving before RCAReturn to containment if still DOWN
Security Gatesentinel ran before closing incidentRun sentinel — do not skip
Postmortem GateAll sections populated (Timeline, RCA, Prevention Actions) before status = ResolvedComplete or note as DRAFT

Returns

ArtifactFormatLocation
Incident response reportMarkdowninline (chat output)
Incident timelineText (HH:MM format)inline + postmortem
Postmortem documentMarkdown.rune/incidents/INCIDENT-<date>-<slug>.md
Prevention actions tableMarkdown tablepostmortem
Journal entry (incident ADR)Text.rune/adr/ (via rune:journal)

Sharp Edges

Known failure modes for this skill. Check these before declaring done.

Failure ModeSeverityMitigation
Starting RCA before containment confirmedCRITICALHARD-GATE: check CONTAINED status before calling autopsy
Declaring incident resolved without watchdog verificationHIGHMUST call watchdog after containment — not just assume
Postmortem Prevention Actions without owners or datesMEDIUMEvery action needs owner + due date — otherwise it never happens
Skipping sentinel because "looks like a performance issue"HIGHSecurity dimension is not always obvious — always run sentinel
P1 triage without 15-minute containment urgencyHIGHP1 SLA = 15 min to contain — flag if containment exceeds threshold

Done When

  • Severity triaged (P1/P2/P3) with impact description
  • Containment executed and watchdog confirms stable
  • sentinel ran and security dimension addressed (or escalated)
  • Root cause identified via autopsy with file:line evidence
  • Full timeline constructed
  • Postmortem saved to .rune/incidents/ with Prevention Actions table
  • journal entry recorded

Cost Profile

~3000-8000 tokens input, ~1000-2500 tokens output. Sonnet for response coordination.

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.