runbook-creation
ما الذي تفعله
تساعد هذه المهارة على إنشاء أدلة خطوة بخطوة لحل المشكلات أو تنفيذ المهام المهمة على الأنظمة الحاسوبية. وتضمن أن تكون التعليمات واضحة وسهلة الاتباع، حتى تحت الضغط.
متى تستخدمها
- ✓عندما تحتاج إلى توثيق كيفية إصلاح مشكلة شائعة.
- ✓عندما تنشئ دليلًا لمهمة صيانة.
- ✓عندما تريد تسجيل إجراءات الاستعادة بعد عطل.
رابط المهارة
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/runbook-creation/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ دليلًا لإعادة تشغيل خادم قاعدة البيانات.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تزوّد المهارة بالخطوات والأوامر والنتائج المتوقعة. وتنظّم المهارة ذلك في صيغة قياسية تضم أقسامًا للتحقق، والتراجع، واستكشاف الأخطاء.
المحتوى التقني (ملف 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
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
00-andruia-consultant
48kيساعد وكيلك على بدء مشاريع الذكاء الاصطناعي أو تحسينها. يحلل الكود ويقترح الأدوات ويُعد خطط عمل بالإسبانية.
007
48kيتيح لوكيلك إجراء تدقيقات أمنية ونمذجة التهديدات. مفيد لحماية المشاريع من الهجمات والثغرات الأمنية.
10-andruia-skill-smith
48kيساعد وكيلك على إنشاء أدوات الذكاء الاصطناعي أو تحسينها. يحدد طريقة عملها، ويكتب توثيقها، ويتحقق من بنيتها.
20-andruia-niche-intelligence
48kيتيح لوكيلك إعداد ملخص عن صناعة محددة. مفيد لفهم السياق والقواعد وأنماط الاستخدام والمخاطر لمشروع ما، باستخدام مصادر موثوقة.
مهارات مشابهة
obsidian-vault-maintainer
394kيساعد وكيلك على الحفاظ على خزنة ذاكرة متوافقة مع Obsidian، بروابط ويكي تعمل وخصائص متسقة وأقسام آلية آمنة.
wiki-maintainer
394kيساعد وكيلك على صيانة ويكي ذاكرة OpenClaw بصفحات قابلة للتكرار وكتل مُدارة آمنة، مع فحص التناقضات والثغرات.
obsidian
394kيتيح لوكيلك قراءة ملاحظات Obsidian ومهامها وروابطها وخصائصها والبحث فيها وإنشاؤها وتعديلها، عبر سطر أوامر Obsidian الرسمي.