agentsclimarketplace

Incident response

Skill Deadlymind/nanolama/skills/incident-response

A portable Claude Code skills library (plugin) for a Django 5.2 + Next.js 16 house stack: 30 model-agnostic, tenant-isolation-and-security-first skills.

Install
npx -y skills add Deadlymind/nanolama --skill incident-response

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 21 days oldThe repository was created 21 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Runs the response when something is live-broken or a secret is exposed — report first, contain the blast radius, fix the root cause through a reviewed change, then a blameless post-mortem that hardens the lesson into a standing rule. Use when a production endpoint is down or misbehaving, a key/token/credential may have leaked, an account or session looks compromised, a bad deploy is degrading users, or someone asks how to handle an ongoing incident. Not for pre-ship risk auditing (see security-review) or root-causing a failure in isolation (see debug).

SKILL.md

4.2 KB, as published. Nobody here has run it

Incident response (report, contain, fix, prevent)

When to use

Something is broken in production right now, or a secret may have escaped — a leaked key, an endpoint exhausting a shared resource, a bad deploy degrading users. This is the live-fire path, distinct from reviewing code before it ships.

Pattern

Four moves, in order, and the order matters:

  1. Report first. Announce the incident before you touch anything. Quiet fixing hides the blast radius — visibility lets others help, stop dependent work, and catch what you can't see. A wrong-but-loud call beats a right-but-silent one.
  2. Contain. Stop the bleeding before you understand it fully: revoke the key/session, disable or feature-flag the broken endpoint, take the risky feature offline. Reducing exposure is not the fix — it buys time to fix safely.
  3. Fix the root cause through a normal reviewed change, not a panicked hotfix straight to production. The pressure to skip review is exactly when review catches the second bug you'd introduce.
  4. Prevent with a short blameless post-mortem that turns the lesson into a durable standing rule, so the whole class of bug cannot recur.

Adapt to your repo

Define these once so the sequence runs the same every time: where incidents are announced, who can revoke a credential or flip a feature flag, how to roll back or disable a deploy, and where post-mortems live. Wire "assume compromised → rotate" into whatever secret store you use (env, secrets manager, KMS). Keep the loop fast and low-ceremony — a heavy process just tempts people to skip step 1.

Secrets are assumed compromised

Any credential that may have leaked is treated as leaked — rotate it immediately, don't wait for proof it was used. A key printed to a log, pushed to a repo, or pasted anywhere shared is burned. Rotate the value, invalidate old sessions/tokens minted with it, and confirm the new one is live before you call it contained. Redacting the leak after the fact does not un-leak it.

Codify the fix as a rule

A post-mortem that ends at "we fixed it" invites the same bug in a new costume. End it at a rule that makes the whole class impossible. Concretely: if an endpoint polled on an interval overloaded a shared resource, the standing rule is any endpoint polled on an interval must be bounded (page size / row cap) and cached (short server-side TTL) — so no future polled endpoint can exhaust that resource. Write the rule where it will be enforced (a lint check, a review checklist, a skill), not in a doc no one reopens.

# Incident timeline — the shape to reach for
T+0   REPORT    "Payments 500ing since 14:02, investigating" (before touching prod)
T+2   CONTAIN   revoke leaked key + rotate; feature-flag the failing endpoint off
T+15  FIX       reviewed PR for the root cause → deploy through the normal pipeline
T+1d  PREVENT   blameless post-mortem → new standing rule that kills the class

Gotchas

  • Fixing before reporting is the classic mistake — it shrinks the responder pool to just you and hides scope from everyone who could help.
  • Containment is temporary relief, not resolution — a disabled feature still owes a real fix and a re-enable.
  • "It probably wasn't exposed long enough to matter" is not a rotation decision — assume compromised and rotate anyway.
  • A panicked direct-to-prod hotfix routinely ships a second incident; route the fix through review even under pressure (see deploy-aws for safe rollout/rollback).
  • Blame in the post-mortem buys silence next time — keep it about the system, so the next person reports fast instead of hiding.

See also

  • security-review
  • debug
  • deploy-aws

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.