agentleFS
gonimargonimar/claude-web-studio/skills/incident/SKILL.md

incident

Skill4 starsChanged 46 days agoMITView on GitHub

Runs incident response and the blameless postmortem — severity, containment, diagnosis (logs/metrics/containers via a deployment skill when present), fix or rollback, timeline, root cause, actions — into docs/ops/incidents/INC-NNN.md. Use when production is down or degraded, after /hotfix, for 'we have an outage', 'postmortem', 'incident report'.

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

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

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

  • mijunriSkill

    database

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

    Also in 3 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 6 projects that use this

The file

Files
SKILL.md

Incident

Reply in the project conversation language (CLAUDE.md → Language); code, identifiers, paths and commit messages stay in English.

Template incident-postmortem.md. In the commands below, <hooks> is .claude/hooks/ in copy mode and ${CLAUDE_PLUGIN_ROOT}/hooks/ in plugin mode. Other studio skills run through the Skill tool — /deploy (Phase 1 and 3), /hotfix (Phase 3) and /backlog add (Phase 4) — as /web-studio:<name> in plugin mode and /<name> in copy mode (coordination-rules § Subagents); each keeps all of its own phases and gates, its verdict comes back as text this skill quotes, and they run one after another, never two at once. /create-stories is a hand-off in the closing AskUserQuestion, not run from here.

Phase 1: Containment

Severity; what users see; immediate measures (rollback via /deploy/the deployment skill, feature kill switch, rate limit) — with confirmation. Security (leak/breach?) → security-lead immediately: isolate, rotate secrets, preserve logs.

Phase 2: Diagnosis

Logs (delegate verb logs [service] [--since] by .claude/docs/deploy-target-contract.md, or docker compose logs), metrics, recent deploys/migrations, git log; hypotheses → verification. No logs (the delegate answers NOT SUPPORTED or FAILED, no compose access, the retention window has passed, the service never logged) → say so in the diagnosis in one line ("no logs: <reason>"), continue from metrics, recent deploys and git log, mark every hypothesis that logs would have confirmed as unverified, and note it in the postmortem under "What did not work" with a detect action (log retention, structured logs, the delegate's logs verb). Never silently diagnose as if logs had been read.

Phase 3: Fix

/hotfix or /deploy rollback, each run through the Skill tool with its own confirmations (coordination-rules § Subagents; the incident continues into the postmortem afterwards, so these are runs, not hand-offs); verify by metrics.

Phase 4: Postmortem

  1. Timeline, root cause (system/process, blameless), what worked/did not, actions (fix/prevent/detect) with owners and dates in the postmortem's Actions table — the table is the record of owner and due date. Render the postmortem in the chat (rule 7, readable rendering) and name the actions that step 5 will record.
  2. Actions → backlog, not the roadmap. The roadmap holds story lines only (templates/roadmap.md: - [ ] [ID](path) · Title + markers, 🏷 is the layer, no owner marker), and /create-stories does not read Backlog lines — so no line is written to production/roadmap.md here. Each action becomes one production/backlog.md item (I-NNN) in step 5; the prevent/detect actions become stories through /create-stories from the postmortem (the next step). A fix action that is already a hotfix is recorded with its PR link in the Actions table and gets no backlog item.
  3. "May I write docs/ops/incidents/INC-NNN.md?" — one AskUserQuestion: write (Recommended) · show the draft/diff first · not now. After the "write" answer: touch .claude/.write-consent (rule 7 — the consent-guard hook checks the marker), then write it.
  4. Commit gate (rule 7 (4), .claude/docs/git-workflow.md § Documents), recorded before it is asked — <hooks>session-state.sh set Gate "/incident Phase 4: commit?" — and cleared after the answer (<hooks>session-state.sh set Gate "—"), so an open gate survives the next turn; one AskUserQuestion: docs: postmortem INC-NNN staging exactly docs/ops/incidents/INC-NNN.md — on the default branch when no story or hotfix work is in progress; when HEAD is a story or hotfix branch, name it and offer: switch to the default branch and commit there (Recommended — a pipeline-wide document) · commit here (the postmortem belongs to this hotfix) · leave uncommitted. The fix's code, configs and workflows never ride the docs: commit — they belong to the /hotfix branch and its PR; name them. Nothing is committed without the answer.
  5. Record the actions, after the commit gate and before the next step: /backlog add "<action> 🔗 INC-NNN" through the Skill tool (/web-studio:backlog add in plugin mode), one call per action, one after another, each with its own write and commit gate inside /backlog (source: incident INC-NNN); /backlog creates production/backlog.md when the project has none. An action that is neither in the Actions table nor recorded as an I-NNN is gone at the end of the session — the result lists every I-NNN next to its action.

Verdict: RESOLVED | MITIGATED | OPEN. Next step — one AskUserQuestion: /create-stories for the prevent/detect actions (Recommended) · /hotfix · close the incident.

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.