Runbook generator
Generate complete, actionable runbooks for services, alerts, and operational procedures. Use when an alert has no runbook, when onboarding a new service, when standardizing operational documentation, or when updating stale runbooks. Trigger keywords: generate runbook, create runbook, write runbook, runbook template, document procedure, operational guide, no runbook exists, runbook missing, new service runbook, need a runbook, write up steps, document this alert, how do I document, onboarding docs, ops documentation.From its SKILL.md
npx -y skills add stevancris/sre-ai-agent --skill runbook-generatorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.8 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
Runbook Generator Skill
Setup Check
Before loading context files, check if context/CONTEXT.md exists in the current directory.
If context/CONTEXT.md exists — read it and proceed normally.
If context/CONTEXT.md does not exist — this skill was installed standalone (e.g. via npx skills add). Ask the user these questions before proceeding:
- Role —
junior-sre/senior-sre/sre-manager(shapes output depth and tone) - Cloud provider —
aws/gcp/azure/on-prem/hybrid - Observability stack — e.g. Datadog, Prometheus+Grafana, New Relic
- Company name and primary services affected (if relevant to this task)
Use the answers inline for this session. For persistent setup across all skills, suggest:
pipx install sre-agent
sre-agent init
Instructions
Step 1: Load Context
Read context/CONTEXT.md and context/company/tech-stack.md to understand the
deployment tooling, observability stack, and on-call setup.
Step 2: Gather Inputs
Ask the user for:
- Service name — the name of the service this runbook covers
- Alert name or condition — what alert triggers this runbook (or "general service runbook")
- Severity level — P0 / P1 / P2 / P3
- Owner team — which team owns this service
- What you know about this failure mode — any context from past incidents or code review
If the runbook is being generated during an active incident (incident-response skill invoked it):
- Pull available context from the incident timeline.
- Mark sections that need to be filled in post-incident with
<!-- TODO: fill in from incident -->.
Step 3: Load the Template
Load skills/oncall-runbook/references/runbook-template.md as the base structure.
Step 4: Populate the Runbook
Alert Trigger Condition — populate from:
- The alerting rule (if user can share it)
- The metric name and threshold from the user's observability stack
What This Means — write a plain-language explanation:
- What does this service do?
- What is the user impact when this alert fires?
- What are the most common causes of this alert?
Blast Radius — determine:
- Which services depend on this service?
- Is there user-facing impact?
- Is there any data integrity risk?
Triage Steps — generate concrete diagnostic commands specific to the tech stack.
For Kubernetes / Datadog stack, generate kubectl and Datadog query commands.
For each step, include: the command, expected output, and what to do if output is wrong.
Remediation Steps — generate at least two remediation paths (most common causes). Each path must include a rollback procedure.
Persona adjustments:
- junior-sre: verbose commands with full flags explained, no assumed knowledge.
Example:
kubectl get pods -n production -l app=payment-api --output=wide(The-nflag specifies the Kubernetes namespace.-lfilters by label.--output=wideshows extra info like the node each pod is running on.) - senior-sre: concise commands, assume kubectl and standard tools are known.
Step 5: Validate the Runbook
Check that the generated runbook includes all required sections:
- Alert trigger condition
- What this means (plain language)
- Blast radius
- At least 3 triage steps
- At least 1 remediation path with rollback
- Escalation path with time thresholds
- Post-incident checklist
Step 6: Output the Runbook
Output the complete runbook in Markdown, ready to commit to a runbooks repository.
Suggest the file path: skills/oncall-runbook/references/<service-name>-<alert-name>.md
Step 7: Follow-up
After generating:
- "Would you like me to walk you through this runbook now for the current alert?"
- "Should I add this runbook to the oncall-runbook references index?"
Guidelines
- A runbook is only as good as its "expected output" sections. Never skip them.
- If you do not know what the expected output should be, say so and mark it as
<!-- TODO: validate expected output -->rather than guessing. - Runbooks are living documents — always include the Last Updated date and a prompt to update after each use.
- Every triage step should be independently executable — avoid "do steps 1–3 first."
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.