rescue
Skill123 starsChanged 8 months agoMITView on GitHub
Production Incident Commander — diagnose and recover from production incidents. Use when something is broken in production, site is down, errors spiking, or user reports a critical bug.
- Commits and pushes
7 other projects use a version of this.
Adopted by
Most recently taken up by
- dydtjr1128/claude-bridgetheir own version, first seen Sep 22, 2026
- suboss87/FDEOpstheir own version, first seen Sep 17, 2026
- sendbird/cc-plugin-codextheir own version, first seen Jul 29, 2026
- metallurgical/ogre-runnertheir own version, first seen Jul 7, 2026
- unsafe9/agent-skillstheir own version, first seen Jun 16, 2026
- Rune-kit/runetheir own version, first seen Apr 22, 2026
Used with
Projects with it also use review.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillreview
Fixture review skill.
Also in 4 projects that use this
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- suboss87/FDEOps★ 950same name
- sendbird/cc-plugin-codex★ 219same name
- Rune-kit/rune★ 88same name
- logly/mureo★ 48same name
- dydtjr1128/claude-bridge★ 1same name
- metallurgical/ogre-runner★ 1same name
- unsafe9/agent-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- a11ySkill
- architectureSkill
- brainstormingSkill
- canarySkill
- clone-patternsSkill
- code-reviewSkill
- competeSkill
- costSkill
- demoSkill
- deploySkill
- dispatching-parallel-agentsSkill
- evalsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- growSkill
- guardSkill
- index-fixSkill
- investigateSkill
- launchSkill
- learnSkill
- onboardSkill
- pentestSkill
- perf-auditSkill
- receiving-code-reviewSkill
- releaseSkill
- requesting-code-reviewSkill
- retroSkill
- revise-claude-mdSkill
- security-auditSkill
- seo-auditSkill
- seo-strategySkill
- ship-gateSkill
- sprintSkill
- staying-currentSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-ultrashipSkill
- verification-before-completionSkill
- visual-diffSkill
- writing-plansSkill
- writing-skillsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. 0 are common, 19 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
19
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
When production is down, every minute costs trust.
- Distinctive: line 13
Before doing anything, classify the incident:
- Distinctive: line 34
If the user is panicking, skip questions and use whatever info is available.
- Distinctive: line 59
When it was deployed
- Distinctive: line 89
If the error pattern is clear and the fix is small:
- Distinctive: line 93
Verify with health check
- Distinctive: line 96
If the issue is load-related:
- Distinctive: line 99
Add rate limiting to affected endpoints
- Distinctive: line 103
If the cause isn't clear:
- Very specific: line 104
Check application logs (Railway: railway logs, Vercel: function logs)
- Distinctive: line 105
Check database connectivity and query performance
- Distinctive: line 106
Check third-party service status pages (Stripe, Resend, Supabase, etc.)
- Distinctive: line 107
Check recent environment variable changes
- Distinctive: line 108
Check if DNS/SSL certificate expired
- Distinctive: line 112
After applying a fix:
- Distinctive: line 185
Add a test that reproduces the exact failure
- Very specific: line 186
Add the specific check to the /ship pre-deploy audit
- Very specific: line 190
Add health check endpoint if one doesn't exist (/health or /api/health)
- Distinctive: line 194
Add the failure pattern to code review checklist
- Distinctive: line 195
Document the runbook for this type of incident
- Distinctive: line 196
If this was a database issue: add connection pool monitoring
- Distinctive: line 197
If this was a deployment issue: add canary deployments or staged rollouts
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Production Incident Commander
When production is down, every minute costs trust. This skill runs an incident like a principal SRE — fast triage, clear decision-making, structured recovery, and prevention so it never happens again.
Severity Classification
Before doing anything, classify the incident:
| Severity | Definition | Response Time | Example |
| SEV-1 | Service completely down, all users affected | Immediately | Site returns 500, database unreachable |
| SEV-2 | Major feature broken, many users affected | Within 15 min | Auth broken, payments failing, data loss |
| SEV-3 | Minor feature broken, some users affected | Within 1 hour | One API endpoint slow, email not sending |
| SEV-4 | Cosmetic or edge case | Next business day | UI glitch on one browser, non-critical error log |
Severity determines urgency. SEV-1/2: restore first, investigate later. SEV-3/4: investigate first, then fix.
Process
Phase 1: Gather Context
Ask for:
- Production URL (if not already known)
- What's happening? (down, slow, errors, specific feature broken)
- When did it start? (narrows the commit search window)
- What changed recently? (deploy, config change, dependency update, traffic spike)
If the user is panicking, skip questions and use whatever info is available. Speed > completeness for SEV-1.
Phase 2: Run Diagnostics
node ${CLAUDE_PLUGIN_ROOT}/tools/incident-commander.mjs <project-directory> --url=<production-url>Parse the JSON output.
If a Sentry MCP server is connected (check your available tools — search for sentry tools), pull live production errors before guessing at code: list the most recent / most frequent issues since the incident window, read the top stack traces, and map each frame back to a file and line in this repo. A real stack trace from production beats inferring the culprit from recent commits. Use the actual error signature to narrow the suspect commit. If no Sentry server is connected, continue with the static diagnostics above (and mention that connecting Sentry would sharpen this step).
Phase 3: Triage
Present findings in order of urgency:
Site Status:
- UP / DOWN / DEGRADED
- Response time and status code
- Health endpoint status
- SSL certificate validity
Likely Culprit:
- Most recent commit with significant changes
- Files changed in that commit
- When it was deployed
- Correlation: did the issue start after this deploy?
Error Patterns Found:
- Unhandled promises, missing error handlers
- Environment variable issues (missing, placeholder values)
- Database connection problems
- Third-party service failures
Resource Issues:
- Memory pressure signals (process.memoryUsage patterns in code)
- Unbounded data growth (arrays that grow without cleanup)
- Connection pool exhaustion (too many DB connections)
Phase 4: Recovery Options
Present in order of speed — for SEV-1/2, always recommend Option 1 first:
Option 1: Rollback (fastest — 2-5 min)
git revert <culprit-hash> --no-edit && git pushThis is almost always the right first move. Restore service, then investigate.
When NOT to rollback:
- The rollback would cause data loss (destructive migration already ran)
- The issue isn't in the latest deploy (pre-existing problem that suddenly surfaced)
- The rollback is bigger than the fix (e.g., reverting 50 files when the fix is 1 line)
Option 2: Hot Fix (5-15 min) If the error pattern is clear and the fix is small:
- Apply the fix using Edit tool
- Run tests locally
- Push the fix with a clear commit message:
fix: [what was broken] — incident [date] - Verify with health check
Option 3: Traffic Management (immediate) If the issue is load-related:
- Enable maintenance mode if available
- Scale up infrastructure if possible (Railway: increase instance count)
- Add rate limiting to affected endpoints
- Redirect traffic away from broken feature
Option 4: Investigate Further If the cause isn't clear:
- Check application logs (Railway:
railway logs, Vercel: function logs) - Check database connectivity and query performance
- Check third-party service status pages (Stripe, Resend, Supabase, etc.)
- Check recent environment variable changes
- Check if DNS/SSL certificate expired
Phase 5: Verify Recovery
After applying a fix:
node ${CLAUDE_PLUGIN_ROOT}/tools/health-check.mjs <production-url>Confirm the site is back to healthy status. Check:
- Status code 200
- Response time within normal range
- SSL still valid
- Key functionality working (not just the homepage)
Phase 6: Communication
For SEV-1/2, the user needs to communicate with their users:
Status page update template:
[Investigating] We're aware of [issue description] and are actively working on a fix.
[Identified] We've identified the cause and are deploying a fix.
[Resolved] The issue has been resolved. [Brief explanation]. We apologize for the disruption.If the user has a status page: help them post the update. If they don't: suggest setting up a simple one (Instatus, Betteruptime, or a static page).
Phase 7: Post-Mortem
Generate a post-mortem document from the incident-commander output:
# Incident Post-Mortem — [Date]
## Summary
- **What happened:** [One sentence]
- **Severity:** SEV-[N]
- **Duration:** [start time] to [end time] ([N] minutes)
- **Impact:** [Who was affected, what they experienced]
- **Root cause:** [One sentence]
## Timeline
| Time | Event |
|---|---|
| HH:MM | Issue detected (how: monitoring/user report/deploy) |
| HH:MM | Investigation started |
| HH:MM | Root cause identified |
| HH:MM | Fix deployed |
| HH:MM | Service restored |
## Root Cause Analysis
[Detailed explanation of what went wrong and why]
## What Went Well
- [Fast detection, quick recovery, etc.]
## What Went Wrong
- [Missed in review, no test coverage, no monitoring, etc.]
## Action Items
| Action | Priority | Owner | Deadline |
|---|---|---|---|
| Add test for this failure case | High | [user] | This week |
| Add monitoring for [pattern] | High | [user] | This week |
| Add pre-deploy check that would have caught this | Medium | [user] | This sprint |
| [Update runbook/docs] | Low | [user] | This month |Save to docs/incidents/YYYY-MM-DD-incident.md.
Phase 8: Prevention
Based on the incident, suggest concrete preventive measures:
Immediate (today):
- Add a test that reproduces the exact failure
- Add the specific check to the
/shippre-deploy audit
This week:
- Set up uptime monitoring (Betteruptime, UptimeRobot — free tiers available)
- Add health check endpoint if one doesn't exist (
/healthor/api/health) - Set up error alerting (Sentry free tier, or a simple error webhook)
This month:
- Add the failure pattern to code review checklist
- Document the runbook for this type of incident
- If this was a database issue: add connection pool monitoring
- If this was a deployment issue: add canary deployments or staged rollouts
Key Principles
- Speed over perfection. Restore service FIRST, investigate AFTER. Rollback is almost always the right first move.
- No blame. Post-mortems are about systems, not people. "The deploy process didn't catch this" not "Developer X broke production."
- Every incident is a gift. It reveals a gap in your system. The post-mortem action items are how you prevent the next incident.
- Communicate early and often. Silence during an outage erodes trust faster than the outage itself.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

