snr-incident

snr-incident is a command for Claude Code from Kin9Zeus/senior-engineer-skills. It costs 33 tokens per session (665 once invoked), scanned A, original, MIT.

A defensive process for handling security incidents such as provider breaches, leaked credentials, critical software flaws, or suspected intrusions. It covers investigation, containment, recovery, and secret replacement.

In plain words
What is it for?
Use it to classify an incident, read the primary advisory, isolate systems, rotate affected secrets, check for misuse, investigate evidence, and recover safely.
Why use it?
It gives the response an order so teams can contain damage, preserve evidence, and avoid making the incident worse. Destructive actions such as revoking or deleting require confirmation.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is 2 Inventory bash skills/security-incident-response/scripts/rotation-inventory.sh ..

Part of the senior-engineer-skills plugin — 20 skills, 14 commands, 8 agents shipped together

Good fit Use it to classify an incident, read the primary advisory, isolate systems, rotate affected secrets, check for misuse, investigate evidence, and recover safely.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Kin9Zeus/senior-engineer-skills
agentmods
npx agentmods add commands/kin9zeus/senior-engineer-skills/snr-incident

Made for: Claude Code.

Or install senior-engineer-skills, the plugin that ships this one along with the rest of its 20 skills, 14 commands, 8 agents.

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 snr-incident

README.md
[![agentmods](https://agentmods.dev/badge/commands/kin9zeus/senior-engineer-skills/snr-incident/github.svg)](https://agentmods.dev/commands/kin9zeus/senior-engineer-skills/snr-incident)
Your own site
<a href="https://agentmods.dev/commands/kin9zeus/senior-engineer-skills/snr-incident"><img src="https://agentmods.dev/badge/commands/kin9zeus/senior-engineer-skills/snr-incident/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for snr-incident

Your own site · 80×15
<a href="https://agentmods.dev/commands/kin9zeus/senior-engineer-skills/snr-incident"><img src="https://agentmods.dev/badge/commands/kin9zeus/senior-engineer-skills/snr-incident.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 665 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00033 $0.00665
Opus 5.5 $0.00013 $0.00266
Sonnet 5.5 $0.00007 $0.00133
Haiku 4.5 $0.00003 $0.00067

Measured 2d ago against content hash 6395fcfef23f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

snr-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 2d 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/snr-incident.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Security Incident Response

Incident: $ARGUMENTS (if empty, ask what happened and when it was noticed).

Load the security-incident-response skill. Defensive only — investigate systems the user owns or is authorised to defend; never hack back; every destructive step (revoke, delete, rebuild, wipe) needs the user's confirmation.

1 · Classify in the first minutes

A  Provider / platform breach     → rotate everything the provider stored
B  Leaked credential              → revoke first, then check abuse, then clean up
C  Critical CVE in the runtime    → inventory, patch, restart, assume exposure
D  Active intrusion               → isolate, preserve evidence, then investigate

Two classes can apply at once. A provider breach plus an open runtime CVE is one incident at the higher severity — secrets from A are what an attacker exploiting C would read.

2 · Read the primary source

For a named incident, fetch the provider's own disclosure (not a summary) and the official advisory, and note: what was accessed, the time window, what the provider asks you to do, and what it has not said. The dated case files are in references/platform-breach-playbook.md (Railway, October 2026) and php-hardening/references/php2shell-response.md. Facts there are dated — re-read the source before acting.

3 · Run the response in order

0 Declare      one owner · start templates/incident-timeline.md
1 Contain      stop the bleeding without destroying evidence
2 Inventory    bash skills/security-incident-response/scripts/rotation-inventory.sh .
3 Rotate       blast radius first · issuer first · prove the old value dead
4 Hunt         provider-side audit logs first, then edge, then host
5 Eradicate    remove persistence · patch the entry point (or rebuild clean)
6 Recover      redeploy from a known-good patched build · verify the running version
7 Notify       personal data? ask counsel/DPO about regulator and customer duties
8 Learn        blameless postmortem · add the control that would have caught it

Read the full file on GitHub · 64 lines

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. 2d ago First seen · 64 lines · 33 tokens per session scan A 6395fcfef23f

Subscribe to this mod's changes

snr-incident is a command published in the GitHub repository Kin9Zeus/senior-engineer-skills (3 stars, last pushed 2d ago), licensed MIT. It adds 33 tokens to every session and 665 once invoked, about $0.0001 per session on Opus 5.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-10-24.