Help us improve
Share bugs, ideas, or general feedback.
From dev-kit
Use when something broke after a deploy, a production incident is active, or a rollback needs to be evaluated quickly.
npx claudepluginhub atalias-mkyle/claude-dev-kit --plugin dev-kitHow this skill is triggered — by the user, by Claude, or both
Slash command
/dev-kit:incident-responseThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Scope boundary.** This skill covers one thing: deciding whether to revert, generating the revert, and confirming recovery. It stops at "the system is stable again." Root cause analysis — why the bug existed, what the code should have done — belongs to the `debug-playbook`. Do not mix the two during an active incident. Stabilize first, understand second.
Guides technical evaluation of code review feedback: read fully, restate for understanding, verify against codebase, respond with reasoning or pushback before implementing.
Share bugs, ideas, or general feedback.
Scope boundary. This skill covers one thing: deciding whether to revert, generating the revert, and confirming recovery. It stops at "the system is stable again." Root cause analysis — why the bug existed, what the code should have done — belongs to the debug-playbook. Do not mix the two during an active incident. Stabilize first, understand second.
Before touching git, ask the user the three questions. Don't proceed until you have answers to all three.
If the user doesn't know what was deployed, that's fine — you'll find it in Step 2. But you need the symptom and the time before proceeding.
Run the following, adjusting --since to match the symptom window:
git log --oneline --since="24 hours ago"
If the incident window is narrower (e.g., "it broke 20 minutes ago"), tighten the window. If it's a long-lived system with infrequent deploys, widen it.
Read the output. The suspect commit is the one deployed closest to — and before — the symptom start time. If multiple commits landed in one deploy, treat the entire batch as the suspect.
Note the SHA(s).
Run:
git show <suspect-sha> --stat
For each changed file, answer:
Write down the answers. You need them for Step 4.
If the commit batch is large, run git show <sha> --stat on each commit individually.
STOP and escalate (do not proceed to Step 5) if any of the following are true:
If you stop here, your output to the user should be:
"This commit cannot be safely auto-reverted because [specific reason]. Escalate to an engineer with production DB / external-system access. The safe path forward is [migration rollback procedure / compensating write / service coordination], not a code revert."
If none of the blockers apply, proceed to Step 5.
Produce the command for the user. Do not run it yourself.
git revert <suspect-sha> --no-edit
If the suspect is a merge commit, you'll need --mainline 1:
git revert <suspect-sha> --mainline 1 --no-edit
Then produce a draft PR description for the human to review and edit before pushing:
Title: revert: <original commit subject line>
Body:
Reverts <suspect-sha>.
Reason: <one sentence describing the symptom>
Safe to revert: <yes — no migrations or external writes involved>
What this revert does NOT fix: root cause is unknown; this only removes the most recent change to stop the bleeding. Follow up with debug-playbook once the system is stable.
Monitoring after merge: <see Step 6 checklist>
Present this draft to the user and wait for approval. Do not push or merge.
After the revert is merged and deployed, confirm recovery by watching the following. Present this checklist to the human doing the deploy.
Once all checklist items are confirmed green, close the incident and hand off to debug-playbook for root cause analysis.
git show --stat.debug-playbook, and do it with a cool head.