agentleFS
irahardiantoirahardianto/awesome-agv/.agents/skills/incident-response/SKILL.md

incident-response

Skill157 starsChanged 4 months agoMITView on GitHub

Structured incident workflow: severity classification, triage, diagnosis, mitigation, postmortem, and prevention. Template-driven with blameless review.

59 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use dora-metrics, exploit-development and 8 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

  • 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

  • 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 16 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After DESIGN phase, before BUILD (in feature pipelines)

    line 103
  2. Distinctive:

    When requested as standalone risk assessment (Template L)

    line 105
  3. Distinctive:

    If any finding is Critical severity + High likelihood → escalate to user before BUILD

    line 166

“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

Structured framework for handling production incidents with blameless postmortems.

When to Invoke

  • Production incidents (P0-P3)
  • Service degradation or outages
  • Post-incident analysis and learning
  • Improving incident response processes

Severity Classification

SeverityImpactResponse TimeExamples
P0Complete outage, data loss riskImmediate (< 15 min)Service down, data corruption
P1Major degradation, many users affected< 30 minCore feature broken, severe performance
P2Partial degradation, some users< 2 hoursNon-critical feature broken, slow queries
P3Minor issue, workaround available< 1 business dayUI glitch, minor performance

Incident Workflow

1. Detect & Alert

  • Automated monitoring triggers alert
  • User reports issue
  • On-call engineer acknowledges

2. Triage

  • Classify severity (P0-P3)
  • Assess blast radius (users, services, data)
  • Identify incident commander
  • Open communication channel

3. Diagnose

  • Form hypotheses (use debugging-protocol skill)
  • Collect evidence (logs, traces, metrics)
  • Identify root cause
  • Document timeline

4. Mitigate

  • Implement immediate fix (rollback, feature flag, hotfix)
  • Verify mitigation effectiveness
  • Communicate status to stakeholders
  • Continue monitoring

5. Resolve

  • Confirm service fully recovered
  • Close incident
  • Schedule postmortem (within 48 hours for P0-P2)

Postmortem Template

# Incident Postmortem: {title}
Date: {date}
Severity: P{0-3}
Duration: {start} → {resolved}
Author: {name}

## Summary
{1-2 sentence impact summary}

## Timeline
| Time | Event |
|---|---|
| HH:MM | {event description} |

## Root Cause
{description with evidence}

## Contributing Factors
- {factor with context}

## What Went Well
- {positive observation}

## What Could Be Improved
- {improvement area}

## Action Items
| Action | Owner | Due Date | Status |
|---|---|---|---|
| {specific action} | @{person} | YYYY-MM-DD | Open |

Principles

  • Blameless — focus on systems and processes, not individuals
  • Evidence-based — every claim backed by data (logs, traces, metrics)
  • Action items are SMART — specific, measurable, assigned, realistic, time-bound
  • Share learnings — postmortems are public within the organization

Pre-Mortem Analysis

Proactive failure analysis: imagine the feature has already failed, then work backward to identify why.

When to Invoke

  • After DESIGN phase, before BUILD (in feature pipelines)
  • For high-risk features (auth, payments, data migrations, public API changes)
  • When requested as standalone risk assessment (Template L)

Pre-Mortem Protocol

Step 1: Assume Failure

The feature has launched and failed catastrophically. Work backward:

  • "The auth system was bypassed" — how?
  • "Data was corrupted during migration" — what went wrong?
  • "The service went down under load" — where was the bottleneck?

Step 2: Failure Mode Identification

For each component in the DESIGN output, enumerate:

  1. What could break? — specific failure scenarios, not vague risks
  2. How likely? — based on complexity, blast radius, novelty
  3. How severe? — data loss, security breach, downtime, degraded UX

Step 3: Cross-Domain Risk Assessment

Each specialist brings a unique failure lens:

AgentRisk DomainExample Findings
incident-responderOperational failures, cascade risks, recovery gaps"No rollback path for schema migration"
security-engineerThreat model, attack vectors, auth bypass"JWT validation missing on webhook endpoint"
performance-engineerScalability limits, resource exhaustion"Unbounded query on user list with no pagination"
database-expertData integrity, migration reversibility, concurrency"Non-idempotent migration with no down script"

Include agents based on feature risk profile:

  • Always: incident-responder (anchor)
  • Auth/security-sensitive: + security-engineer
  • High-traffic/scalable: + performance-engineer
  • Data-heavy/migration: + database-expert

Step 4: Produce Findings

# Pre-Mortem: {feature name}
Date: {date}
Analysts: {agent list}

## Risk Assessment Summary
| Risk | Severity | Likelihood | Mitigation |
|------|----------|-----------|------------|
| {failure scenario} | Critical/High/Medium/Low | High/Medium/Low | {recommendation} |

## Failure Modes
### {failure scenario title}
- **Trigger**: {what causes this failure}
- **Blast Radius**: {what else breaks}
- **Detection**: {how would we know — monitoring, alerts, logs}
- **Recovery**: {rollback path, data recovery, feature flags}
- **Mitigation**: {what BUILD agents should do to prevent this}

## Monitoring Gaps
- {gap}: {recommendation for devops-engineer}

## Design Revision Recommendations
- {if any DESIGN changes are needed before BUILD proceeds}

Pre-Mortem Decision Flow

  • Findings are advisory — BUILD proceeds with risk-aware context
  • If any finding is Critical severity + High likelihood → escalate to user before BUILD
  • Monitoring gap findings → forwarded to devops-engineer during or after BUILD
  • Design revision recommendations → returned to architect for contract updates before BUILD

Related

  • Debugging Protocol @.agents/skills/debugging-protocol/SKILL.md
  • Logging Implementation @.agents/skills/logging-implementation/SKILL.md
  • Monitoring and Alerting Principles @.agents/rules/monitoring-and-alerting-principles.md

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.