incident

incident is a command for coding agents from xcodethink/open-claude-code-skills. It costs 26 tokens per session (330 once invoked), scanned A, original, MIT.

An incident-response command for handling a live production outage or monitoring alert through four stages: stop the damage, find the cause, fix it, and review what happened.

In plain words
What is it for?
Use it to roll back a release, disable a feature flag, add capacity, switch to read-only mode, notify users, track the timeline, investigate causes, and prepare a blameless incident report.
Why use it?
It gives the team a fixed order of operations during a stressful outage, prioritising quick containment before deeper investigation.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/xcodethink/open-claude-code-skills/incident
Clone the repo
git clone --depth 1 https://github.com/xcodethink/open-claude-code-skills

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for incident

README.md
[![agentmods](https://agentmods.dev/badge/commands/xcodethink/open-claude-code-skills/incident.svg)](https://agentmods.dev/commands/xcodethink/open-claude-code-skills/incident)
Your own site
<a href="https://agentmods.dev/commands/xcodethink/open-claude-code-skills/incident"><img src="https://agentmods.dev/badge/commands/xcodethink/open-claude-code-skills/incident.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 330 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00026 $0.00330
Opus 5 $0.00013 $0.00165
Sonnet 5 $0.00005 $0.00066
Haiku 4.5 $0.00003 $0.00033

Measured 4d ago against content hash 0cf9c775fc51, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

incident scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/incident.md · 24 lines

What it actually says

incident — 线上事故 triage

用户输入 /incident $ARGUMENTS 触发 4 阶段标准处置流程

立刻读取并完整加载: ~/.claude/prompts/lib/08-救火/线上事故triage.md

按其"行为契约"段严格执行 4 阶段:

  1. 止血 5 分钟(rollback / 关 flag / scale up / 降级只读 / status page 五选一)+ 同时通知用户 + 冻结新 deploy + 拉时间线
  2. 定位 15-30 分钟(看时间线 / 错误流 / 依赖 / 资源 / 形成假设)
  3. 修复(回滚优先,forward fix 走 bug-fix-standard 加快版)
  4. 复盘 24-48h 内(incident report:TL;DR + 时间线 + 5 Whys + 处置时间 + action items)

参数含修饰符 → 叠加对应文件。

核心契约:优先止血而非根因分析(根因在第 3 阶段做)。Blameless 复盘,涉及数据泄露立即合规通知。

参数: $ARGUMENTS

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 24 lines · 0 tokens per session scan A 0cf9c775fc51

Subscribe to this mod's changes

incident is a command published in the GitHub repository xcodethink/open-claude-code-skills (2 stars, last pushed 29d ago), licensed MIT. It adds 26 tokens to every session and 330 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.