agentleFS
pvnarppvnarp/agent-skills/skills/incident/SKILL.md

incident

Skill1 starsChanged 9 months agoMITView on GitHub

Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use observability, brainstorm and 5 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.
  • 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 3 projects that use this

  • nicodianskSkill

    brainstorm

    Use when starting creative work - creating features, building components, adding functionality, or modifying behavior. Explores requirements through Socratic dialogue before any implementation.

    Also in 5 projects that use this

  • OpenAISkill

    audit

    Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.

    Also in 5 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 4 projects that use this

  • AWSSkill

    retro

    Conduct a retrospective on a coding session.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    design

    Design rules and conventions for the API Center Portal. Use when editing detail pages, card components, badges, layout, navigation, sidebars, or headers. Covers badge styling, metadata placement, page navigation patterns, and layout alignment.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 6

    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 did it start?: Check monitoring, deployment timeline, recent changes.

    line 12
  2. Distinctive:

    Scale up: if it's a capacity issue

    line 27
  3. Distinctive:

    Restart: if it's a stuck process or resource leak

    line 29
  4. Distinctive:

    Document what you do and when.

    line 31
  5. Distinctive:

    Don't speculate on cause until you know

    line 36
  6. Distinctive:

    Write within 48 hours while memory is fresh.

    line 45

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

During an Incident

1. Triage (First 5 minutes)

  • What's broken? User-facing impact. Who's affected and how many.
  • When did it start? Check monitoring, deployment timeline, recent changes.
  • Is it getting worse? Stable, degrading, or cascading.
  • Severity?
SeverityImpactResponse
SEV1Service down, data loss riskAll hands, immediate
SEV2Major feature broken, many users affectedDrop current work
SEV3Minor feature broken, workaround existsNext working hours
SEV4Cosmetic, edge caseNormal priority

2. Mitigate (Stop the bleeding)

Priority: restore service, not find root cause. Options:

  • Rollback the last deployment
  • Feature flag disable the broken feature
  • Scale up if it's a capacity issue
  • Redirect traffic away from broken component
  • Restart if it's a stuck process or resource leak

Document what you do and when. Timestamps matter.

3. Communicate

  • Notify affected users/stakeholders with honest status
  • Set expectations for next update ("we'll update in 30 minutes")
  • Don't speculate on cause until you know

4. Investigate (After service is restored)

  • Gather logs, metrics, traces from the incident window
  • Correlate with deployment timeline and config changes
  • Identify the triggering event and the root cause (they're often different)

Post-Mortem Template

Write within 48 hours while memory is fresh. Blameless - focus on systems, not people.

# Incident: [Title]
Date: [YYYY-MM-DD]
Duration: [start time → end time]
Severity: [SEV1-4]
Author: [who's writing this]

## Summary
[2-3 sentences: what happened, who was affected, how it was resolved]

## Timeline
- HH:MM - [event]
- HH:MM - [event]
- HH:MM - [detection / alert fired]
- HH:MM - [response began]
- HH:MM - [mitigation applied]
- HH:MM - [service restored]

## Root Cause
[What actually broke and why. Be specific.]

## Contributing Factors
- [Factor 1: why it was possible for this to happen]
- [Factor 2: why it wasn't caught earlier]
- [Factor 3: why recovery took as long as it did]

## What Went Well
- [Things that helped during response]

## What Went Poorly
- [Things that made response harder]

## Action Items
| Action | Owner | Priority | Deadline |
|--------|-------|----------|----------|
| [Prevent recurrence] | ? | P1 | ? |
| [Improve detection] | ? | P2 | ? |
| [Improve response] | ? | P3 | ? |

## Lessons Learned
[What should the team internalize from this?]

Prevention Patterns

PatternPrevents
Canary deploysBad code reaching all users
Health checksServing traffic from broken instances
Circuit breakersCascading failures
Rate limitingResource exhaustion
Automated rollbackProlonged outages from bad deploys
Chaos testingSurprises in production
RunbooksSlow response from unfamiliarity

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.