incident-response
Skill1 starsChanged 9 months agoApache-2.0View on GitHub
Engineering incident response covering on-call runbooks, blameless postmortems, status pages, rollback procedures, communication protocols, severity levels, and SLO breach handling.
- Reads credentials
59 other projects use a version of this.
Adopted by
Most recently taken up by
- fmind/dottheir own version, first seen Oct 5, 2026
- harness/harness-skillstheir own version, first seen Oct 5, 2026
- juanitourquiza/shipframetheir own version, first seen Oct 1, 2026
- Cure-Consulting-Group/ProductEngineeringSkillstheir own version, first seen Sep 28, 2026
- ZeroTokenClaw/agents-skillstheir own version, first seen Sep 21, 2026
- hypnguyen1209/offensive-claudetheir own version, first seen Sep 21, 2026
Used with
Projects with it also use dora-metrics, cli-development and 9 more.
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.
caiaffaSkilldora-metrics
Measure and improve engineering delivery performance using the four DORA metrics — deployment frequency, lead time for changes, change failure rate, and time to restore. Use to assess delivery health and find the next bottleneck.
Also in 3 projects that use this
nimadorostkarSkillcli-development
Use when building command-line tools. Covers argument design, exit codes, streams and piping, progress output, configuration precedence, and behavior that respects the shell.
Also in 3 projects that use this
jessefmooreSkillexploit-development
PoC development, payload crafting, shellcode generation, ROP chains, heap exploitation, bypass techniques for modern mitigations (ASLR, DEP, CFI, stack canaries)
Also in 3 projects that use this
witi-projectsSkillreact-native-patterns
Build mobile apps with React Native and Expo — navigation, platform-specific code, performance, and native modules. Use when the user says "/react-native-patterns", "react native patterns", or asks about react native patterns.
Also in 3 projects that use this
mmondoraSkilldata-modeling
Schema design, multi-tenant data isolation, and migration management. Firestore and PostgreSQL patterns, RLS, UUID v7 conventions. Use when designing database schemas, writing migrations, or implementing multi-tenant data access.
Also in 4 projects that use this
Robotti-ioSkillsecure-code-review
Repeatable process for an application security code review that produces prioritized findings and fix guidance.
Also in 4 projects that use this
Other versions59 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 59
- anthropics/knowledge-work-plugins★ 26ksame name
- hypnguyen1209/offensive-claude★ 385same name
- irahardianto/awesome-agv★ 157same name
- 686f6c61/alfred-dev★ 116same name
- harness/harness-skills★ 115same name
- thiientv/godmode★ 96same name
- nahid-sparktales/agent-dispatcher★ 59same name
- drafthq/draft★ 40same name
- Happy-Technologies-LLC/happy-platform-skills★ 40same name
- Hack23/European-Parliament-MCP-Server★ 28same name
49 more not listed
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 repository73 other files it gives its agents.
- accessibility-wcagSkill
- api-designSkill
- api-testingSkill
- asset-optimizationSkill
- audio-systemsSkill
- aws-essentialsSkill
- ci-cd-pipelinesSkill
- codebase-analysisSkill
- code-reviewerSkill
- container-securitySkill
- cost-optimizationSkill
- database-designSkill
- data-visualizationSkill
- doc-generationSkill
- docker-kubernetesSkill
- docxSkill
- email-notificationsSkill
- env-configSkill
- flutter-mobileSkill
- framer-motionSkill
- frontend-code-reviewSkill
- frontend-designSkill
- fullstack-developerSkill
- game-enginesSkill
- gameplay-designSkill
- game-programming-languagesSkill
- game-serversSkill
- git-workflowSkill
- godot-4Skill
- golang-proSkill
- go-linter-configurationSkill
- graphics-renderingSkill
- i18n-localizationSkill
- level-designSkill
- llm-integrationSkill
- local-securitySkill
- memory-managementSkill
- monetization-systemsSkill
- monitoring-observabilitySkill
- multiplayer-netcodeSkill
- nextjs-16Skill
- notebooklm-researchSkill
- npm-packageSkill
- oauth-authSkill
- particle-systemsSkill
- performance-optimizationSkill
- playwright-testingSkill
- postgres-advancedSkill
- programming-architectureSkill
- project-migrationSkill
- publishing-platformsSkill
- python-best-practicesSkill
- react-nativeSkill
- redis-patternsSkill
- refactoring-patternsSkill
- remotion-best-practicesSkill
- rust-best-practicesSkill
- scraping-automationSkill
- security-reviewSkill
- seo-metaSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 50 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 62
Write runbooks for every known failure mode.
- Very specific: line 70
Use a dedicated incident channel (Slack, Teams).
- Distinctive: line 76
Update every 30 minutes during an active incident, even if there is no progress.
- Distinctive: line 77
Use structured updates: current status, what we know, what we are doing, next update time.
- Distinctive: line 79
Avoid blame language during the incident.
- Distinctive: line 80
After resolution, send a final summary: root cause, fix applied, user impact duration, follow-up actions.
- Distinctive: line 85
Use clear, non-technical language: "Some users may experience slow page loads" over "Database replica lag exceeding threshold."
- Distinctive: line 93
Every deployment must have a documented rollback path before it ships.
- Distinctive: line 151
When the error budget is exhausted, freeze feature releases and focus on reliability work.
- Distinctive: line 155
Use SLO data to justify reliability investments.
- Distinctive: line 161
Add monitoring for the specific failure mode that caused the incident.
- Distinctive: line 162
Update runbooks with lessons learned from the incident.
“Common” is measured: kept by at least 6 in 10 of the 50 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
Purpose
Handle production incidents with speed, clarity, and accountability. This skill provides frameworks for on-call response, structured communication, rollback execution, and learning from failures.
Severity Classification
- SEV-1 (Critical): Complete service outage, data loss, or security breach. All hands on deck. Resolve in minutes.
- SEV-2 (Major): Significant degradation affecting most users. Dedicated incident commander. Target resolution under 1 hour.
- SEV-3 (Minor): Partial degradation, workaround available. On-call engineer handles. Target resolution under 4 hours.
- SEV-4 (Low): Cosmetic issues, minor bugs, non-user-facing failures. Handle during business hours.
- Classify based on user impact, not technical complexity. A simple bug affecting all users is higher severity than a complex bug affecting one.
- Escalate severity upward when impact grows. Never downgrade severity during an active incident.
On-Call Runbooks
BAD - Vague runbook:
## Database Issues
If the database is slow, check the connections and maybe restart it.
Contact the DBA if it doesn't work.GOOD - Actionable runbook with copy-paste commands:
## Runbook: Database Connection Pool Exhausted
### Symptoms
- API returns 503 errors
- Grafana alert: `db_active_connections > 95% of pool_size`
- Logs: "connection pool exhausted, 0 idle connections"
### Diagnose (< 1 minute)
kubectl exec -it deploy/api -- curl localhost:8080/debug/db
# Shows: active=100, idle=0, max=100, waiting=47
psql -h $DB_HOST -c "SELECT count(*) FROM pg_stat_activity WHERE state='active';"
### Fix (choose one)
1. **Kill idle transactions** (safest):
psql -h $DB_HOST -c "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE state='idle in transaction' AND query_start < now() - interval '5 min';"
2. **Increase pool size** (temporary):
kubectl set env deploy/api DB_POOL_SIZE=200
kubectl rollout restart deploy/api
3. **Rollback last deploy** (if caused by new code):
kubectl rollout undo deploy/api
### Do NOT
- Do NOT restart the database. Active transactions will be lost.
- Do NOT increase pool size above 200 without DBA approval.
### Escalation
- Slack: #team-platform | PagerDuty: Platform On-CallWrite runbooks for every known failure mode. Structure: symptom, diagnostic commands, fix steps, escalation contacts. Store where on-call engineers find them in 30 seconds. Link directly from monitoring alerts. Review quarterly.
Incident Command Structure
- Assign an Incident Commander (IC) immediately. The IC coordinates, does not debug.
- The IC's responsibilities: delegate tasks, track progress, communicate externally, decide on escalation.
- Assign a Communications Lead for SEV-1 and SEV-2 incidents. They update the status page and notify stakeholders.
- Engineers working the incident report findings to the IC, not to each other. Single channel of communication.
- Use a dedicated incident channel (Slack, Teams). Name it
#inc-YYYY-MM-DD-description. - The IC calls the all-clear. No one else declares the incident resolved.
Communication Protocols
- First update within 5 minutes of detection for SEV-1, 15 minutes for SEV-2.
- Update every 30 minutes during an active incident, even if there is no progress. Silence causes panic.
- Use structured updates: current status, what we know, what we are doing, next update time.
- Internal updates go to the engineering team and leadership. External updates go to the status page.
- Avoid blame language during the incident. Focus on symptoms and actions.
- After resolution, send a final summary: root cause, fix applied, user impact duration, follow-up actions.
Status Page Management
- Maintain a public status page for external services. Update it before customers ask.
- Use clear, non-technical language: "Some users may experience slow page loads" over "Database replica lag exceeding threshold."
- Define status levels: Operational, Degraded Performance, Partial Outage, Major Outage.
- Pre-write templates for common scenarios. Fill in specifics during the incident.
- Include estimated resolution time when possible. Update it as the estimate changes.
- Post a follow-up after resolution confirming the issue is fully resolved.
Rollback Procedures
- Every deployment must have a documented rollback path before it ships.
- For application deployments: revert to the previous container image or artifact version.
- For database migrations: write and test the down migration before applying the up migration.
- For feature flags: disable the flag. This is the fastest rollback available.
- For infrastructure changes: use version-controlled IaC. Revert the commit and apply.
- Practice rollbacks in staging. A rollback you have never tested is a guess, not a plan.
- Set a time limit for debugging before rolling back. For SEV-1, roll back first, debug later.
- Preserve logs, metrics, and state before rolling back. You need evidence for the postmortem.
Blameless Postmortems
BAD - Blame-focused postmortem:
Root Cause: John deployed broken code on Friday at 5pm without testing.
Action Items: John needs to be more careful.GOOD - Systems-focused postmortem:
## Postmortem: API Outage 2025-03-15
### Timeline (UTC)
- 16:42 - Deploy v2.3.1 to production (automated via merge to main)
- 16:44 - Error rate spikes from 0.1% to 34%
- 16:47 - PagerDuty alert fires, on-call acknowledges
- 16:52 - IC declared, #inc-2025-03-15-api-errors created
- 16:58 - Root cause identified: missing DB migration
- 17:01 - Rollback initiated (kubectl rollout undo)
- 17:03 - Error rate returns to 0.1%, all-clear declared
### Impact
- Duration: 21 minutes
- Users affected: ~12,000 (API returned 500 on /orders endpoint)
- Revenue impact: ~$3,200 in failed checkouts
### Root Cause
Deploy v2.3.1 added a query on `orders.status_v2` column. The migration
to add this column was not included in the deploy pipeline.
### Contributing Factors
- CI pipeline does not run pending migrations before integration tests
- No pre-deploy check that verifies schema compatibility
- Deploy happened automatically on merge, no manual gate
### Action Items
| Action | Owner | Due |
|--------|-------|-----|
| Add migration check to CI pipeline | @platform | 2025-03-22 |
| Add schema compatibility pre-deploy hook | @platform | 2025-03-29 |
| Document migration-first deploy process | @docs | 2025-03-22 |Conduct postmortems for every SEV-1 and SEV-2 within 48 hours. Focus on system failures, not human errors. Ask "why did the system allow this?" Track action item completion. Review quarterly for recurring themes.
SLO Breach Handling
- Define SLOs (Service Level Objectives) for latency, availability, and error rate before incidents happen.
- Calculate error budgets: if SLO is 99.9% uptime, the error budget is 43.2 minutes per month.
- When the error budget is exhausted, freeze feature releases and focus on reliability work.
- Alert at 50% and 80% error budget consumption. Do not wait until the budget is gone.
- Tie SLO breaches to business impact. Leadership cares about customer trust, not percentiles.
- Review SLOs quarterly. Adjust targets based on customer expectations and operational capacity.
- Use SLO data to justify reliability investments. "We burned 90% of error budget last month" is a concrete argument.
Post-Incident Improvement
- Convert every postmortem action item into a tracked issue with a deadline and an owner.
- Prioritize automation that prevents recurrence over documentation that describes it.
- Add monitoring for the specific failure mode that caused the incident.
- Update runbooks with lessons learned from the incident.
- Share incident learnings in team retrospectives and engineering all-hands.
- Measure MTTR (Mean Time to Resolution) and MTTD (Mean Time to Detection) over time. Both should trend downward.
PagerDuty/OpsGenie Webhook Integration
// ✅ Production-Ready: PagerDuty Events API v2
import axios from "axios";
interface PagerDutyEvent {
routing_key: string;
event_action: "trigger" | "acknowledge" | "resolve";
dedup_key?: string;
payload: {
summary: string;
severity: "critical" | "error" | "warning" | "info";
source: string;
timestamp?: string;
custom_details?: Record<string, unknown>;
};
}
async function triggerPagerDutyAlert(
routingKey: string,
summary: string,
severity: "critical" | "error" | "warning" | "info",
details?: Record<string, unknown>
) {
const event: PagerDutyEvent = {
routing_key: routingKey,
event_action: "trigger",
payload: {
summary,
severity,
source: "monitoring-system",
timestamp: new Date().toISOString(),
custom_details: details,
},
};
const response = await axios.post(
"https://events.pagerduty.com/v2/enqueue",
event,
{ headers: { "Content-Type": "application/json" } }
);
return response.data.dedup_key; // Use this to acknowledge/resolve later
}
// Usage: trigger SEV-1 alert
const dedupKey = await triggerPagerDutyAlert(
process.env.PAGERDUTY_ROUTING_KEY!,
"Database connection pool exhausted",
"critical",
{ activeConnections: 100, maxConnections: 100, queuedRequests: 250 }
);# OpsGenie Alert API
import requests
import os
def create_opsgenie_alert(message: str, priority: str, details: dict):
"""Create OpsGenie alert via REST API."""
url = "https://api.opsgenie.com/v2/alerts"
headers = {
"Authorization": f"GenieKey {os.getenv('OPSGENIE_API_KEY')}",
"Content-Type": "application/json"
}
payload = {
"message": message,
"priority": priority, # P1-P5
"details": details,
"tags": ["production", "automated"],
"source": "monitoring"
}
response = requests.post(url, json=payload, headers=headers)
response.raise_for_status()
return response.json()["requestId"]
# Usage
create_opsgenie_alert(
message="API latency p99 > 2s for 5 minutes",
priority="P1",
details={"p99_latency": "2.3s", "endpoint": "/api/orders", "region": "us-east-1"}
)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.

