smithery/patricio0312rev

incident-runbook-generator

Creates step-by-step incident response runbooks for common outages with actions, owners, rollback procedures, and communication templates. Use for "incident runbook", "outage response", "incident management", or "on-call procedures".

Installation

$ npx skills add smithery/patricio0312rev --skill incident-runbook-generator

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/patricio0312rev · top by installs.

npx skills add smithery/patricio0312rev

Browse all from smithery/patricio0312rev

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,487 B
  • docs SUMMARY.md 267 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Incident Runbook Generator

Create actionable runbooks for common incidents.

Runbook Template

````markdown

Runbook: Database Connection Pool Exhausted

Severity: P1 (Critical) Estimated Time to Resolve: 15-30 minutes Owner: Database Team (On-call)

Symptoms

  • Application errors: "connection pool exhausted"
  • Increased API latency (>5s)
  • Failed health checks
  • CloudWatch alarm: DatabaseConnectionsHigh

Detection

  • Alert: DatabaseConnectionPoolExhausted
  • Metrics: activeconnections > maxconnections * 0.9
  • Logs: "Error: connect ETIMEDOUT"

Immediate Actions (5 min)

  1. Verify the issue

``bash # Check current connections SELECT count(*) FROM pgstatactivity; ` ```

  1. Identify long-running queries

``sql SELECT pid, now() - pgstatactivity.querystart AS duration, query FROM pgstat_activity WHERE state = 'active' ORDER BY duration DESC LIMIT 10; ``

  1. Kill blocking queries (if safe)

``sql SELECT pgterminatebackend(pid) FROM pgstatactivity WHERE state = 'idle in transaction' AND now() - state_change > interval '5 minutes'; ``

Mitigation (10 min)

  1. Scale up connection pool (temporary)

``bash # Update RDS parameter group aws rds modify-db-parameter-group \ --db-parameter-group-name prod-params \ --parameters "ParameterName=max_connections,ParameterValue=200" ``

  1. Restart application (if needed)

``bash kubectl rollout restart deployment/api ``

  1. Monitor recovery

``bash watch -n 5 'psql -c "SELECT count(*) FROM pgstatactivity;"' ``

Root Cause Investigation

Check for:

  • Recent deployment (new code with connection leaks)
  • Traffic spike (legitimate or DDoS)
  • Slow queries holding connections
  • Connection pool configuration too small
  • Application not releasing connections

Rollback Steps

If caused by deployment:

# Rollback to previous version
kubectl rollout undo deployment/api

# Verify
kubectl rollout status deployment/api

Communication Template

Initial (within 5 min):

🚨 INCIDENT: Database connection pool exhausted
Status: Investigating
Impact: API errors and slowness
ETA: 15-30 min
Next update: 10 min

Update (every 10 min):

UPDATE: Killed long-running queries
Status: Mitigating
Impact: Still degraded, improving
Actions: Scaling connection pool
Next update: 10 min

Resolution:

✅ RESOLVED: Database connections normalized
Duration: 25 minutes
Root cause: Connection leak in v2.3.4
Fix: Rolled back to v2.3.3
Follow-up: Bug fix PR #1234
Postmortem: [link]

Prevention

  • Add connection pool metrics to dashboards
  • Implement connection timeout (30s)
  • Add connection leak detection in tests
  • Set up pre-deployment load testing
  • Review connection pool sizing

Related Runbooks

  • Database High CPU
  • Slow Database Queries
  • Application OOM

## Output Checklist

- [ ] Symptoms documented
- [ ] Detection criteria
- [ ] Step-by-step actions
- [ ] Owner assigned
- [ ] Rollback procedure
- [ ] Communication templates
- [ ] Prevention measures
ENDFILE