- Home
- Skills
- DevOps & Cloud
- Runbook Writer
Runbook Writer
Turn alerts and postmortems into step-by-step runbooks an on-call engineer can follow at 3am, with every unknown marked instead of guessed.
$15
Works with the AI Agents you already use
Runbook Writer
Example session with this skill installed
Draft a runbook for the KubePodNotReady alert. I've attached the Prometheus rule. We usually check logs in Kibana, but if it's a resource issue, we scale the deployment.
- Read your context and instructions
- Compiled the runbook writer
I have drafted the runbook for KubePodNotReady based on the Prometheus rule provided and your notes. I have separated the investigative steps from the scaling mitigation and included mandatory warnings for state changes.
Runbook: KubePodNotReady
Service Owner: TO CONFIRM: Service Team
Severity: P2
Escalation: Platform Engineering (#ops-internal)
1. Triage & Diagnosis
- Check Pod Status:
Runkubectl get pods -n <namespace> -l <label-selector>- If
Pending: Check for unschedulable nodes (Step 1.2). - If
CrashLoopBackOff: Check application logs (Step 1.3).
- If
- Resource Constraints:
Runkubectl describe pod <pod-name> -n <namespace>- Look for "Events" indicating OOMKilled or FailedScheduling.
- Log Analysis:
Access the Kibana Dashboard[Link TO CONFIRM]and filter bykubernetes.pod.name.- Identify recurring stack traces or connection timeouts.
2. Mitigation (Scaling)
WARNING: Scaling a deployment will trigger a rolling update or new pod creation. Ensure the underlying node capacity is sufficient before proceeding.
- Horizontal Scale:
Runkubectl scale deployment <name> --replicas=<current+1> -n <namespace>- Expected Result: A new pod enters
Runningstate within 120s. - If fails: Revert scale and escalate to Platform Engineering.
- Expected Result: A new pod enters
3. Verification
- Check the Prometheus metric
kube_pod_status_ready{condition="true"}. - Threshold: Value must be >= 1 for at least 5 minutes.
4. Rollback
- Run
kubectl scale deployment <name> --replicas=<original-count> -n <namespace>
Next steps
- Provide the Kibana dashboard URL to replace the placeholder.
- Verify the specific
kubectlnamespace and deployment name used in this service. - Perform a dry-run of the scaling command to confirm the responder has
patchpermissions.
Connects securely to your tools. The creator never sees your data.
About this skill
Operational runbooks written during an incident or from memory are often vague, dangerous, or missing critical branches. When responders are paged at 3am, they need exact commands, clear warnings, and verified signals rather than "investigate further." This skill transforms raw alert definitions, incident postmortems, and rough notes into structured, safety-first operational guides.
What it does
- Alert Inventorying scans Prometheus, CloudWatch, and Datadog definitions to scaffold runbook stubs for every firing alert.
- Incident Synthesis converts postmortem threads and chat logs into generalized procedures that address failure classes.
- Safety-First Drafting prioritizes read-only triage, mandates rollback steps, and places warnings before any state-changing command.
- Automated Linting flags vague instructions, missing escalation paths, and risky commands lacking explicit approval steps.
- Gap Identification explicitly marks missing operational facts as
TO CONFIRMitems rather than making dangerous guesses.
How it works
- Source Analysis where you provide alert YAMLs, incident logs, or existing wiki pages for the agent to ingest.
- Drafting using a standardized template that separates diagnosis, mitigation, verification, and escalation.
- Internal Review where the agent lints the draft against strict operational writing standards to remove ambiguity.
- Handoff providing a list of untested commands and a categorized list of questions for specific stakeholders.
Frameworks & tools
This skill uses Python scripts for static analysis of PrometheusRule objects, CloudWatch alarm exports, and Datadog monitor JSON. It follows SRE best practices for incident response and operational documentation.
Why this beats prompting it yourself
Standard LLM prompts often hallucinate plausible-looking but incorrect CLI flags or omit crucial "what if this fails" branches. This skill enforces a "no-guesswork" policy, ensuring that every command and threshold is sourced directly from your infrastructure code or explicitly marked for verification.
Use cases
- Scaffolding documentation for a new service by scanning its Prometheus alert rules.
- Converting a Slack incident thread into a permanent, reusable playbook for future responders.
- Auditing existing runbooks to find missing rollback procedures or outdated escalation contacts.
- Hardening on-call guides by adding "Expected Result" checks to every manual step.
Known limitations
The agent cannot execute commands or verify them against a live environment. It reads static alert definitions but does not expand complex YAML anchors, templates, or dynamically generated rules.
How to use
Skills on Agensi run inside your AI agent. Copy the prompt, paste it into your agent, and it connects to Agensi and installs this skill for you. If a payment is needed, your agent shows it to you first.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 1 day ago
- Passed all security checks, Safe to install