runbook-creation
できること
このツールは、コンピュータシステムの問題を解決したり、重要な作業を行ったりするための、手順ごとのガイドを作成するのに役立ちます。急いでいるときでも、指示が明確でわかりやすくなるようにします。
使う場面
- ✓よくある問題の直し方を文書にまとめたいとき。
- ✓保守作業のためのガイドを作りたいとき。
- ✓障害が起きた後の復旧手順を記録したいとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/runbook-creation/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“データベースサーバーを再起動するためのガイドを作成してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
手順、コマンド、期待される結果を入力します。ツールは、確認、切り戻し、トラブルシューティングのセクションを備えた標準的な形式に整理します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
…
よくある質問
「runbook(ランブック)」とは何ですか?
システム上で特定の作業を行ったり、問題を解決したりするための詳しい手順が書かれたマニュアルです。
これを使うのにプログラミングの知識は必要ですか?
いいえ。すでに知っている手順やコマンドを説明するだけで十分です。ツールがそれらを整理してくれます。
コマンドを含めることはできますか?
はい。正確なコマンドを含めることができ、ツールがそれを正しい形式に整えます。
詳細
作者による元の説明
Create operational runbooks and standard operating procedures. Document troubleshooting guides and recovery procedures. Use when documenting operational knowledge.
人気
- GitHubのスター
- 48k
- ランキング
- #5652
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
obsidian-vault-maintainer
394kObsidianと相性のよいメモリボールトを整理して、動くウィキリンク、統一されたプロパティ、安全に生成されるセクションを保つようエージェントを支援します。
wiki-maintainer
394k同じ内容を繰り返し保てるページ、安全な管理ブロック、矛盾や抜けの確認を使って、OpenClawのメモリウィキを維持するようエージェントを支援します。
obsidian
394k公式のObsidianコマンドラインを使って、Obsidianのメモ、タスク、リンク、プロパティを読み、検索し、作成し、編集するようエージェントを支援します。