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

incident

Skill5 starsChanged 2 months 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'.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use observability, audit and 4 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

  • 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

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 3 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.