
Runbook Creation
- 403 installs
- 305 repo stars
- Updated March 4, 2026
- aj-geddes/useful-ai-prompts
runbook-creation is a Claude Code skill that authors operational runbooks, SOPs, and incident response guides with detection steps, diagnostics, escalation paths, and rollback procedures for developers who document on-ca
About
runbook-creation is a Claude Code skill from aj-geddes/useful-ai-prompts, a library of 260+ auto-triggering agent skills. The skill guides coding agents to produce production-ready operational runbooks, standard operating procedures (SOPs), and incident response guides for on-call engineers. It follows Progressive Disclosure Architecture: a concise SKILL.md hub with a quick-start incident response Markdown template, DO/DON'T best-practice checklists, and 6 on-demand reference guides—symptoms, investigation-steps, resolution-steps, verification, communication, and post-incident. Generated runbooks define P0–P3 severity levels, tiered response-time targets, PagerDuty escalation contacts, exact shell commands with expected outputs, rollback procedures, and stakeholder communication templates. Engineers reach for runbook-creation when formalizing tribal incident knowledge into executable playbooks for service outages, deployments, database failures, or disaster recovery after postmortems reveal documentation gaps.
- Templates alerts-to-action troubleshooting flows
- Defines severity levels and escalation contacts
- Documents rollback, failover, and communication steps
- Links observability signals to concrete remediation commands
Runbook Creation by the numbers
- 403 all-time installs (skills.sh)
- Ranked #409 of 1,879 Documentation skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill runbook-creationAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 403 |
|---|---|
| repo stars | ★ 305 |
| Last updated | March 4, 2026 |
| Repository | aj-geddes/useful-ai-prompts ↗ |
How do you write an on-call incident response runbook?
Author operational runbooks with detection steps, diagnostics, escalation paths, and rollback procedures for on-call engineers.
Who is it for?
SRE and platform engineers who need structured, executable on-call playbooks after recurring incidents expose undocumented recovery steps.
Skip if: Developers seeking automated incident detection or live paging integrations rather than Markdown operational documentation.
When should I use this skill?
User requests a runbook, playbook, SOP, on-call guide, incident response doc, escalation procedure, or disaster recovery steps for a service or outage.
What you get
Markdown runbook with severity tiers, investigation and resolution steps, verification checks, escalation contacts, communication templates, and post-incident checklist.
- Incident response runbook (Markdown)
- On-call playbook with escalation paths
- Post-incident review checklist
By the numbers
- Includes 6 reference guides covering symptoms through post-incident review
- Defines P0–P3 severity levels with tiered response-time targets
- Part of useful-ai-prompts library with 260+ Claude Code skills
Files
Runbook Creation
Table of Contents
Overview
Create comprehensive operational runbooks that provide step-by-step procedures for common operational tasks, incident response, and system maintenance.
When to Use
- Incident response procedures
- Standard operating procedures (SOPs)
- On-call playbooks
- System maintenance guides
- Disaster recovery procedures
- Deployment runbooks
- Escalation procedures
- Service restoration guides
Quick Start
Minimal working example:
````markdown
Incident Response Runbook
Quick Reference
Severity Levels:
- P0 (Critical): Complete outage, data loss, security breach
- P1 (High): Major feature down, significant user impact
- P2 (Medium): Minor feature degradation, limited user impact
- P3 (Low): Cosmetic issues, minimal user impact
Response Times:
- P0: Immediate (24/7)
- P1: 15 minutes (business hours), 1 hour (after hours)
- P2: 4 hours (business hours)
- P3: Next business day
Escalation Contacts:
- On-call Engineer: PagerDuty rotation
- Engineering Manager: +1-555-0100
- VP Engineering: +1-555-0101
- CTO: +1-555-0102
// ... (see reference guides for full implementation)
## Reference Guides
Detailed implementations in the `references/` directory:
| Guide | Contents |
|---|---|
| [Symptoms](references/symptoms.md) | Symptoms, Severity: P0 (Critical), Initial Response (5 minutes) |
| [Investigation Steps](references/investigation-steps.md) | Investigation Steps |
| [Resolution Steps](references/resolution-steps.md) | Resolution Steps |
| [Verification](references/verification.md) | Verification |
| [Communication](references/communication.md) | Communication |
| [Post-Incident](references/post-incident.md) | Post-Incident |
## Best Practices
### ✅ DO
- Include quick reference section at top
- Provide exact commands to run
- Document expected outputs
- Include verification steps
- Add communication templates
- Define severity levels clearly
- Document escalation paths
- Include useful links and contacts
- Keep runbooks up-to-date
- Test runbooks regularly
- Include screenshots/diagrams
- Document common gotchas
### ❌ DON'T
- Use vague instructions
- Skip verification steps
- Forget to document prerequisites
- Assume knowledge of tools
- Skip communication guidelines
- Forget to update after incidents
Communication
Communication
Initial Update (within 5 minutes):
🚨 INCIDENT: Service Down
Status: Investigating
Severity: P0
Impact: All users unable to access application
Start Time: 2025-01-15 14:30 UTC
We are investigating reports of users unable to access the application.
Our team is working to identify the root cause.
Next update in 15 minutes.Progress Update (every 15 minutes):
🔍 UPDATE: Service Down
Status: Identified
Root Cause: Database connection pool exhausted
Action: Restarting application pods
ETA: 5 minutes
We have identified the issue and are implementing a fix.Resolution Update:
✅ RESOLVED: Service Down
Status: Resolved
Resolution: Restarted application pods, reset database connections
Duration: 23 minutes
The service is now fully operational. We are monitoring closely
and will conduct a post-mortem to prevent future occurrences.Investigation Steps
Investigation Steps
Check Application Health
# 1. Check pod status
kubectl get pods -n production -l app=api
# Expected output: All pods Running
# NAME READY STATUS RESTARTS AGE
# api-7d8c9f5b6d-4xk2p 1/1 Running 0 2h
# api-7d8c9f5b6d-7nm8r 1/1 Running 0 2h
# 2. Check pod logs for errors
kubectl logs -f deployment/api -n production --tail=100 | grep -i error
# 3. Check application endpoints
curl -v https://api.example.com/health
curl -v https://api.example.com/api/v1/status
# 4. Check database connectivity
kubectl exec -it deployment/api -n production -- sh
psql $DATABASE_URL -c "SELECT 1"Check Infrastructure
# 1. Check load balancer
aws elb describe-target-health \
--target-group-arn arn:aws:elasticloadbalancing:... \
--query 'TargetHealthDescriptions[*].[Target.Id,TargetHealth.State]' \
--output table
# 2. Check DNS resolution
dig api.example.com
nslookup api.example.com
# 3. Check SSL certificates
echo | openssl s_client -connect api.example.com:443 2>/dev/null | \
openssl x509 -noout -dates
# 4. Check network connectivity
kubectl exec -it deployment/api -n production -- \
curl -v https://database.example.com:5432Check Database
# 1. Check database connections
psql $DATABASE_URL -c "SELECT count(*) FROM pg_stat_activity"
# 2. Check for locks
psql $DATABASE_URL -c "
SELECT pid, usename, pg_blocking_pids(pid) as blocked_by, query
FROM pg_stat_activity
WHERE cardinality(pg_blocking_pids(pid)) > 0
"
# 3. Check database size
psql $DATABASE_URL -c "
SELECT pg_size_pretty(pg_database_size(current_database()))
"
# 4. Check long-running queries
psql $DATABASE_URL -c "
SELECT pid, now() - query_start as duration, query
FROM pg_stat_activity
WHERE state = 'active'
ORDER BY duration DESC
LIMIT 10
"Post-Incident
Post-Incident
1. Create post-mortem document
- Timeline of events
- Root cause analysis
- Action items to prevent recurrence
2. Update monitoring
- Add alerts for this scenario
- Improve detection time
3. Update runbook
- Document any new findings
- Add shortcuts for faster resolution
---
Resolution Steps
Resolution Steps
Option 1: Restart Pods (Quick Fix)
# Restart all pods (rolling restart)
kubectl rollout restart deployment/api -n production
# Watch restart progress
kubectl rollout status deployment/api -n production
# Verify pods are healthy
kubectl get pods -n production -l app=apiOption 2: Scale Up (If Overload)
# Check current replicas
kubectl get deployment api -n production
# Scale up
kubectl scale deployment/api -n production --replicas=10
# Watch scaling
kubectl get pods -n production -l app=api -wOption 3: Rollback (If Bad Deploy)
# Check deployment history
kubectl rollout history deployment/api -n production
# Rollback to previous version
kubectl rollout undo deployment/api -n production
# Rollback to specific revision
kubectl rollout undo deployment/api -n production --to-revision=5
# Verify rollback
kubectl rollout status deployment/api -n productionOption 4: Database Connection Reset
# If database connection pool exhausted
kubectl exec -it deployment/api -n production -- sh
kill -HUP 1 # Reload process, reset connections
# Or restart database connection pool
psql $DATABASE_URL -c "SELECT pg_terminate_backend(pid)
FROM pg_stat_activity
WHERE application_name = 'api'
AND state = 'idle'"Symptoms
Symptoms
- Health check endpoint returning 500 errors
- Users unable to access application
- Load balancer showing all instances unhealthy
- Alerts:
service_down,health_check_failed
Severity: P0 (Critical)
Initial Response (5 minutes)
1. Acknowledge the incident
# Acknowledge in PagerDuty
# Post in #incidents Slack channel````
2. Create incident channel
Create Slack channel: #incident-YYYY-MM-DD-service-down
Post incident details and status updates3. Assess impact
# Check service status
kubectl get pods -n production
# Check recent deployments
kubectl rollout history deployment/api -n production
# Check logs
kubectl logs -f deployment/api -n production --tail=100Verification
Verification
# 1. Check health endpoint
curl https://api.example.com/health
# Expected: {"status": "healthy"}
# 2. Check API endpoints
curl https://api.example.com/api/v1/users
# Expected: Valid JSON response
# 3. Check metrics
# Visit https://grafana.example.com
# Verify:
# - Error rate < 1%
# - Response time < 500ms
# - All pods healthy
# 4. Check logs for errors
kubectl logs deployment/api -n production --tail=100 | grep -i error
# Expected: No new errors#!/bin/bash
# validate-api.sh - Validate API specification
# Usage: ./validate-api.sh <openapi_spec>
set -euo pipefail
SPEC_FILE="${{1:?Usage: $0 <openapi_spec>}}"
echo "Validating API spec: $SPEC_FILE"
# TODO: Add API validation
# - Validate OpenAPI/Swagger syntax
# - Check endpoint naming conventions
# - Verify response schemas
# - Check for required headers
# - Validate authentication definitions
echo "API validation complete."
# API Endpoint Scaffold
# TODO: Customize for your API framework
openapi: "3.0.3"
info:
title: "API Service"
version: "1.0.0"
paths:
/api/v1/resource:
get:
summary: "List resources"
# TODO: Define parameters and responses
responses:
"200":
description: "Success"
post:
summary: "Create resource"
# TODO: Define request body and responses
responses:
"201":
description: "Created"
Related skills
How it compares
Pick runbook-creation over general documentation skills when the output must be executable under incident pressure with severity tiers, shell commands, and escalation paths.
FAQ
What does runbook-creation generate?
runbook-creation generates Markdown operational runbooks and SOPs with P0–P3 severity tiers, investigation and resolution steps, verification checks, escalation contacts, communication templates, and post-incident review sections structured across 6 reference guides.
When should an agent invoke runbook-creation?
Invoke runbook-creation when a developer asks to document on-call procedures, incident response playbooks, deployment runbooks, disaster recovery steps, or escalation paths—the skill auto-triggers on keywords like runbook, playbook, SOP, and operational procedures.
What reference guides does runbook-creation include?
runbook-creation bundles 6 reference guides in references/: symptoms, investigation-steps, resolution-steps, verification, communication, and post-incident. Agents load these on demand after reading the SKILL.md hub for Progressive Disclosure depth.