Runbooks Ops
Skill Profile
(Select at least one profile to enable specific modules)
Overview
Runbooks are documented procedures for operational tasks, incident response, and troubleshooting. Essential for maintaining reliable systems and enabling team members to handle issues independently.
Why This Matters
- Faster resolution: Step-by-step guides reduce MTTR
- Consistency: Same procedure every time
- Knowledge sharing: Reduce bus factor
- Onboarding: New team members can handle ops tasks
Core Concepts & Rules
1. Core Principles
- Follow established patterns and conventions
- Maintain consistency across codebase
- Document decisions and trade-offs
2. Implementation Guidelines
- Start with the simplest viable solution
- Iterate based on feedback and requirements
- Test thoroughly before deployment
Inputs / Outputs / Contracts
- Inputs:
- <e.g., env vars, request payload, file paths, schema>
- Entry Conditions:
- <Pre-requisites: e.g., Repo initialized, DB running, specific branch checked out>
- Outputs:
- <e.g., artifacts (PR diff, docs, tests, dashboard JSON)>
- Artifacts Required (Deliverables):
- <e.g., Code Diff, Unit Tests, Migration Script, API Docs>
- Acceptance Evidence:
- <e.g., Test Report (screenshot/log), Benchmark Result, Security Scan Report>
- Success Criteria:
- <e.g., p95 < 300ms, coverage ≥ 80%>
Skill Composition
- Depends on: None
- Compatible with: None
- Conflicts with: None
- Related Skills: None
Quick Start
Assumptions
- Production environment with Kubernetes
- PostgreSQL database
- AWS cloud infrastructure
- PagerDuty for alerting
- Slack for team communication
- Git for version control
Compatibility
- Kubernetes: 1.20+
- PostgreSQL: 12+
- AWS CLI: 2.0+
- PagerDuty API: Latest
- Slack API: Latest
Test Scenario Matrix
| Scenario |
Input |
Expected Output |
Verification |
| Service down incident |
Alert notification |
Runbook executed, service restored |
Incident report |
| Production deployment |
New version |
Deployment successful, no issues |
Smoke tests pass |
| High database CPU |
CPU alert |
Query identified and resolved |
CPU returns to normal |
| Database backup |
Scheduled job |
Backup created and uploaded |
S3 verification |
| On-call handoff |
Shift change |
Handoff notes documented |
Next engineer confirms |
Technical Guardrails
Agent Directives & Error Recovery
(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)
- Thinking Process: Analyze root cause before fixing. Do not brute-force.
- Fallback Strategy: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.
- Self-Review: Check against Guardrails & Anti-patterns before finalizing.
- Output Constraints: Output ONLY the modified code block. Do not explain unless asked.
Definition of Done
A runbook is complete when:
Anti-patterns
- Outdated runbooks: Procedures that don't match current system
- Missing steps: Skipping important verification or rollback steps
- Vague instructions: Not specific enough to follow without guessing
- No owner: Unclear who maintains the runbook
- Untested procedures: Runbooks that haven't been validated
- Missing context: Not explaining why steps matter
- No escalation: Unclear when to escalate and to whom
- Copy-paste errors: Commands that don't work as written
Reference Links
Versioning & Changelog
- Version: 1.0.0
- Changelog:
- 2026-02-22: Initial version with complete template structure
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: runbooks-ops3description: Runbooks are documented procedures for operational tasks, incident response, Use when this capability is needed.4---56# Runbooks Ops78## Skill Profile9*(Select at least one profile to enable specific modules)*10- [ ] **DevOps**11- [x] **Backend**12- [ ] **Frontend**13- [ ] **AI-RAG**14- [ ] **Security Critical**1516## Overview17Runbooks are documented procedures for operational tasks, incident response, and troubleshooting. Essential for maintaining reliable systems and enabling team members to handle issues independently.1819## Why This Matters20- **Faster resolution**: Step-by-step guides reduce MTTR21- **Consistency**: Same procedure every time22- **Knowledge sharing**: Reduce bus factor23- **Onboarding**: New team members can handle ops tasks2425## Core Concepts & Rules2627### 1. Core Principles28- Follow established patterns and conventions29- Maintain consistency across codebase30- Document decisions and trade-offs3132### 2. Implementation Guidelines33- Start with the simplest viable solution34- Iterate based on feedback and requirements35- Test thoroughly before deployment363738## Inputs / Outputs / Contracts39* **Inputs**:40 - <e.g., env vars, request payload, file paths, schema>41* **Entry Conditions**:42 - <Pre-requisites: e.g., Repo initialized, DB running, specific branch checked out>43* **Outputs**:44 - <e.g., artifacts (PR diff, docs, tests, dashboard JSON)>45* **Artifacts Required (Deliverables)**:46 - <e.g., Code Diff, Unit Tests, Migration Script, API Docs>47* **Acceptance Evidence**:48 - <e.g., Test Report (screenshot/log), Benchmark Result, Security Scan Report>49* **Success Criteria**:50 - <e.g., p95 < 300ms, coverage ≥ 80%>5152## Skill Composition53* **Depends on**: None54* **Compatible with**: None55* **Conflicts with**: None56* **Related Skills**: None5758## Quick Start59#6061## Assumptions62- Production environment with Kubernetes63- PostgreSQL database64- AWS cloud infrastructure65- PagerDuty for alerting66- Slack for team communication67- Git for version control6869## Compatibility70- **Kubernetes**: 1.20+71- **PostgreSQL**: 12+72- **AWS CLI**: 2.0+73- **PagerDuty API**: Latest74- **Slack API**: Latest7576## Test Scenario Matrix77| Scenario | Input | Expected Output | Verification |78|----------|-------|-----------------|--------------|79| Service down incident | Alert notification | Runbook executed, service restored | Incident report |80| Production deployment | New version | Deployment successful, no issues | Smoke tests pass |81| High database CPU | CPU alert | Query identified and resolved | CPU returns to normal |82| Database backup | Scheduled job | Backup created and uploaded | S3 verification |83| On-call handoff | Shift change | Handoff notes documented | Next engineer confirms |8485## Technical Guardrails86#8788## Agent Directives & Error Recovery89*(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)*9091- **Thinking Process**: Analyze root cause before fixing. Do not brute-force.92- **Fallback Strategy**: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.93- **Self-Review**: Check against Guardrails & Anti-patterns before finalizing.94- **Output Constraints**: Output ONLY the modified code block. Do not explain unless asked.959697## Definition of Done98A runbook is complete when:99100- [ ] Follows standard template structure101- [ ] Has clear overview and when-to-use sections102- [ ] Lists all prerequisites and required access103- [ ] Provides step-by-step procedures104- [ ] Includes copy-paste ready commands105- [ ] Documents expected outputs106- [ ] Has verification steps107- [ ] Includes rollback procedures108- [ ] Specifies escalation paths109- [ ] Links to related runbooks110- [ ] Has owner and last updated date111- [ ] Has been tested in staging112113## Anti-patterns1141. **Outdated runbooks**: Procedures that don't match current system1152. **Missing steps**: Skipping important verification or rollback steps1163. **Vague instructions**: Not specific enough to follow without guessing1174. **No owner**: Unclear who maintains the runbook1185. **Untested procedures**: Runbooks that haven't been validated1196. **Missing context**: Not explaining why steps matter1207. **No escalation**: Unclear when to escalate and to whom1218. **Copy-paste errors**: Commands that don't work as written122123## Reference Links124- [Kubernetes Documentation](https://kubernetes.io/docs/)125- [PostgreSQL Documentation](https://www.postgresql.org/docs/)126- [AWS Documentation](https://docs.aws.amazon.com/)127- [PagerDuty Documentation](https://support.pagerduty.com/)128- [Incident Response Best Practices](https://sre.google/sre-book/postmortem-culture/)129130## Versioning & Changelog131132* **Version**: 1.0.0133* **Changelog**:134 - 2026-02-22: Initial version with complete template structure135136---137> Converted and distributed by [TomeVault](https://tomevault.io/claim/amnadtaowsoam) — claim your Tome and manage your conversions.138<!-- tomevault:4.0:skill_md:2026-04-13 -->