agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/incident/SKILL.md

incident

Skill1 starsChanged 24 days agoMITView on GitHub

Runs a live production incident: severity, impact, a timestamped timeline, diagnosis, and mitigation options that the user approves one by one; then hands off to /hotfix and /postmortem. Use when the site is down, erroring, slow, leaking data, or payments are failing.

30 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

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

  • MicrosoftSkill

    perf

    Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-delivery.

    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

  • 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

  • VercelSkill

    deploy

    Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".

    Also in 12 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask only what is needed to set severity:

    line 30
  2. Distinctive:

    Create the incident file with severity, start time (UTC), symptoms and impact.

    line 38
  3. Distinctive:

    Wait for the user's choice.

    line 61
  4. Very specific:

    When the user confirms recovery, record the end time, duration, impact (users, revenue, data) and the root-cause hypothesis.

    line 71

“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

Coordinates a production incident and keeps the record in production/incidents/YYYY-MM-DD-<slug>.md (template .claude/docs/templates/incident-report.md). Calm, short messages. Every action that touches production (rollback, redeploy, flag flip, config change, data fix) is proposed with its command and waits for the user's explicit yes; the skill never runs it.

Inputs

  • The user's description (argument), error messages, alerts, screenshots
  • docs/architecture/runbook.md, docs/architecture/architecture.md
  • Recent changes: git log --since=48.hours, production/releases/
  • project.yaml: stack.hosting, stack.observability

Phases

Phase 1: Triage (first reply, within a few lines)

Ask only what is needed to set severity:

SevMeaningExample
SEV1Site down, data loss/leak, payments broken for all5xx on every page; secret exposed
SEV2Core journey broken for many; major degradationlogin fails on mobile; checkout errors 20%
SEV3Partial or workaround existsone integration failing; slow admin page

Create the incident file with severity, start time (UTC), symptoms and impact. Writing the incident file needs no approval; say you created it. Data leak or exposed secret: first step is to rotate/revoke the credential at the provider (the user does it), then continue.

Phase 2: Diagnose (parallel)

Spawn:

  • observability-engineer: read the errors/logs the user pastes; find the first bad signal and its time
  • lead-backend or lead-frontend (whichever side the symptoms point to): correlate with recent commits and releases
  • security-lead if it may be a security incident; payments-specialist if payments are involved

Collect hypotheses ranked by evidence. Update the timeline with each finding.

Phase 3: Mitigate

Offer options, fastest-to-safety first, each with the exact command or dashboard step, its risk and how to verify it:

  1. Roll back to the last good deploy (host-specific: e.g. Vercel instant rollback, fly releases + rollback, Render rollback)
  2. Disable the feature flag / kill switch
  3. Scale or restart the failing component
  4. Forward fix (→ /hotfix), only if rollback is impossible or riskier

Wait for the user's choice. After they act, ask them to confirm the verification signal, and log it with a timestamp.

Phase 4: Communicate

Draft a status update (internal and customer-facing if needed): what is affected, what we are doing, next update time. The user posts it.

Phase 5: Resolve

When the user confirms recovery, record the end time, duration, impact (users, revenue, data) and the root-cause hypothesis. Set Status: mitigated or resolved.

Output

production/incidents/YYYY-MM-DD-<slug>.md; drafted status messages.

Next step

/hotfix if a code fix is still needed; /postmortem for every SEV1/SEV2 (recommended for SEV3).

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.