runbook-creation
What it does
This tool helps create step-by-step guides for solving problems or performing important tasks on computer systems. It ensures instructions are clear and easy to follow, even under pressure.
When to use it
- βWhen you need to document how to fix a common issue.
- βWhen creating a guide for a maintenance task.
- βTo record recovery procedures after a failure.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/runbook-creation/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCreate a guide for restarting the database server.β
5 new skills a week. 1 minute to read.
How it works
You provide the steps, commands, and expected outcomes. The tool organizes this into a standard format with sections for verification, rollback, and troubleshooting.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Runbook Creation
Create effective operational runbooks, standard operating procedures, and troubleshooting guides that any on-call engineer can follow under pressure.
Runbook Template β Full Structure
# Runbook: [Service / Process Name]
**Owner:** [Team or individual]
**Last Reviewed:** YYYY-MM-DD
**Version:** X.Y
**Severity if unavailable:** SEV[1-4]
---
## Overview
Brief description of the service, why this runbook exists, and when to
use it.
## Prerequisites
- [ ] Required access / IAM role: [details]
- [ ] Tools installed: [kubectl, aws-cli, psql, etc.]
- [ ] VPN connected to [environment]
- [ ] Communication channel open: [Slack #channel]
## Procedure
### Step 1 β [Action Name]
[Explanation of what this step does and why.]
```bash
# command here
```
**Expected output:** [describe what success looks like]
### Step 2 β [Action Name]
```bash
# command here
```
**Expected output:** [description]
*(Continue with numbered steps...)*
## Verification
How to confirm the procedure succeeded:
- [ ] [Check 1 β e.g., health endpoint returns 200]
- [ ] [Check 2 β e.g., no errors in logs for 5 minutes]
- [ ] [Check 3 β e.g., metrics return to baseline]
## Rollback
If the procedure fails or causes unexpected issues:
### Rollback Step 1
```bash
# rollback command
```
### Rollback Step 2
```bash
# rollback command
```
## Troubleshooting
| Symptom | Likely Cause | Resolution |
|---------|-------------|------------|
| [symptom 1] | [cause] | [fix] |
| [symptom 2] | [cause] | [fix] |
## Escalation
If unresolved after [X] minutes:
- **Primary:** @[team-lead] β [phone/Slack]
- **Secondary:** @[manager] β [phone/Slack]
## Related Runbooks
- [Link to related runbook 1]
- [Link to related runbook 2]
## Change Log
| Date | Author | Change |
|------|--------|--------|
| YYYY-MM-DD | [Name] | Initial version |
Overview
Failover the primary PostgreSQL instance to the synchronous replica when the primary is unreachable or degraded. This runbook covers both planned (maintenance) and unplanned (emergency) failover.
Prerequisites
- DBA or SRE-level access to primary and replica hosts
-
psqlclient installed (v14+) - VPN connected to production network
- Slack channel #db-ops open
- Confirm replica is in sync: replication lag < 1 MB
Procedure
Step 1 β Verify Replica Health
psql -h replica.db.internal -U dba -d postgres -c \
"SELECT pg_is_in_recovery(), pg_last_wal_replay_lsn();"
Expected output: pg_is_in_recovery = t, LSN advancing.
Step 2 β Stop Application Writes
kubectl scale deployment api-server --replicas=0 -n production
kubectl scale deployment worker --replicas=0 -n production
Expected output: Deployments scaled to 0 pods.
Step 3 β Confirm Write Quiesce
psql -h primary.db.internal -U dba -d postgres -c \
"SELECT count(*) FROM pg_stat_activity WHERE state = 'active' AND query !~ 'pg_stat';"
Expected output: Count = 0 (no active queries).
Step 4 β Promote Replica
psql -h replica.db.internal -U dba -d postgres -c "SELECT pg_promote();"
Wait up to 30 seconds, then confirm:
psql -h replica.db.internal -U dba -d postgres -c "SELECT pg_is_in_recovery();"
Expected output: pg_is_in_recovery = f (no longer a replica).
Step 5 β Update DNS
aws route53 change-resource-record-sets \
--hosted-zone-id Z1234567890 \
--change-batch '{
"Changes": [{
"Action": "UPSERT",
"ResourceRecordSet": {
"Name": "db.internal.example.com",
"Type": "CNAME",
"TTL": 60,
"ResourceRecords": [{"Value": "replica.db.internal"}]
}
}]
}'
Step 6 β Restart Application
kubectl scale deployment api-server --replicas=6 -n production
kubectl scale deployment worker --replicas=4 -n production
Verification
-
psql -h db.internal.example.com -c "SELECT 1;"returns successfully - Application logs show successful DB connections (no errors for 5 min)
- Transaction throughput returns to baseline on Grafana dashboard
- No replication-lag alerts firing
Rollback
If the promoted replica has issues, restore from the most recent backup:
# Restore latest automated snapshot (RDS example)
aws rds restore-db-instance-from-db-snapshot \
--db-instance-identifier prod-db-restored \
--db-snapshot-identifier prod-db-latest-snapshot
Escalation
β¦
FAQ
What is a 'runbook'?
It's a manual with detailed instructions for performing a specific task or resolving an issue on a system.
Do I need to know how to code to use this?
No, you just need to describe the steps and commands you already know. The tool helps organize them.
Can I include commands?
Yes, you can include exact commands, and the tool will format them correctly.
Details
Original description by the author
Create operational runbooks and standard operating procedures. Document troubleshooting guides and recovery procedures. Use when documenting operational knowledge.
Popularity
- GitHub stars
- 48k
- Ranking position
- #5652
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
obsidian-vault-maintainer
394kHelps your agent keep an Obsidian-friendly memory vault tidy, with working wiki links, consistent properties, and safe generated sections.
wiki-maintainer
394kHelps your agent maintain an OpenClaw memory wiki with repeatable pages, safe managed blocks, and checks for contradictions or gaps.
obsidian
394kLets your agent read, search, create, and edit Obsidian notes, tasks, links, and properties using the official Obsidian command line.