Incident response
Goal
Restore service as fast as safely possible, then understand why. The order matters: stop the harm, then find the cause.
A good response keeps a written timeline and a short status message ready for people who are waiting.
When to use
- Users are affected right now: errors, slowness, data issues or an outage.
- An alert fired and the user does not know how serious it is.
- For the written review afterwards, use
use_skillwithpostmortem-writer.
Steps
- Confirm impact in one pass. Ask with
ask_user: what users see, since when, how many, and whether anyone has changed anything. Do not start with theory. - Set a severity from impact, not from cause: full outage, partial, degraded, or internal only. State it and keep it visible.
- Start the timeline with
update_planentries or a file: each time, action and result. Record the time of every action you take. - Check what changed first. Run
git log --sinceandgit_statuswithrun_command, and ask about deploys, config pushes, flag flips, certificate expiry and provider status pages. - Mitigate before diagnosing when a recent change is the likely cause: roll back, disable the flag, scale up, or fail over. Use
use_skillwithrollback-runbookwhen a release is the suspect. - Read recent errors. Use
run_commandto tail logs or query the log tool, andrgfor the exact error string in the code. - Check the dependencies in order: database, cache, queue, third party APIs, DNS, certificates. Use
search_weborread_urlon provider status pages. - Form one hypothesis at a time and test it with a read-only command. Do not run write or delete commands on production without the user's explicit yes.
- Draft the status message: what is affected, what we know, what we are doing, next update time. Keep it free of guesses about cause.
- After the fix, verify with a real request and the error rate, and wait a full observation window before declaring recovery.
- Hand over the timeline and open questions for the review.
Gotchas
- Restarting everything erases the evidence (memory state, logs on ephemeral disks). Capture logs and a heap or thread dump first when it is cheap.
- Chasing the root cause while users are still down extends the outage. Mitigate first.
- Several people changing things at once makes cause unknowable. Name one person who makes changes.
- A recovered graph is not recovery if queues are backed up or retries are still draining.
- Status messages that promise a time to fix and then miss it hurt more than saying when the next update comes.
- Never paste secrets or customer data from logs into a chat, a ticket or a status post.
- Several alerts firing at once usually share one cause. Find the lowest layer that is broken before chasing each symptom.
Output
- Current severity, impact, suspected change and mitigation in under ten lines.
- The running timeline with timestamps.
- A ready status message.
- Open questions and the next safe check.
