runbook-generator

runbook-generator is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 65 tokens per session (835 once invoked), scanned A, original, Apache-2.0.

A guide for writing operational runbooks: step-by-step instructions for keeping a service running and responding to problems. It covers service details, dependencies, health checks, alerts, deployment, rollback, escalation, and post-incident follow-up.

In plain words
What is it for?
Use it to create or standardise runbooks, document on-call procedures, write incident playbooks, or onboard engineers to service operations.
Why use it?
It gives an on-call engineer clear commands and decisions to follow, including during an outage or outside normal working hours. It also helps different teams document services in a consistent way.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/tmj-90/gaffer/runbook-generator
Any agent
npx skills add tmj-90/gaffer --skill runbook-generator
Clone the repo
git clone --depth 1 https://github.com/tmj-90/gaffer

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for runbook-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmj-90/gaffer/runbook-generator.svg)](https://agentmods.dev/skills/tmj-90/gaffer/runbook-generator)
Your own site
<a href="https://agentmods.dev/skills/tmj-90/gaffer/runbook-generator"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/runbook-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 835 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.00835
Opus 5 $0.00032 $0.00417
Sonnet 5 $0.00013 $0.00167
Haiku 4.5 $0.00006 $0.00084

Measured 6d ago against content hash 2a2b77be742a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

runbook-generator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

runner/skills/runbook-generator/SKILL.md · 58 lines

How it starts

The opening of the file, as written. The whole thing — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate operational runbooks

A runbook exists so the on-call engineer who has never touched this service can keep it alive at 2 AM. Every section must be executable, not aspirational.

Standard sections (every runbook)

Section Contents
Overview What this service does; who owns it; criticality (P1/P2/P3)
Architecture Dependencies in + out; SLOs; data store(s); diagram link
Start / Stop / Restart Exact commands with flags; expected stdout on success
Health checks How to confirm the service is healthy; which endpoint / metric to check
Common alerts Alert name → probable cause → remediation steps → escalation threshold
Deployment Branch-to-deploy flow; how to roll back; known deploy risks
Rollback Step-by-step; blast radius of a bad deploy; who to notify
Escalation Tier-1 (on-call) → tier-2 (team lead) → tier-3 (vendor / SRE) contacts + SLA
Post-incident checklist What to capture; blameless post-mortem template link

Steps

  1. Read the lore + existing runbooks. search_lore for any existing runbook, ADR, or on-call guide for this service. Extend the existing one rather than creating a duplicate.
  2. Inspect the service. Read the Dockerfile/deployment config, health-check endpoint, environment variables, and alert rules. Every command in the runbook must be real.
  3. Draft from the standard template. Fill every section. Placeholder (TODO:) is acceptable only if you mark it clearly — a missing command is better than a wrong one.
  4. Verify commands. Run start/stop/health commands in a staging environment or against the repo's CI; confirm the expected output matches.
  5. Link to the service. Store the runbook in version control alongside the service code (e.g. docs/runbooks/<service>.md). Link it from the monitoring alert annotations.
  6. Record evidence. Commit the runbook; record test_output via record-evidence; submit for review.

Read the full file on GitHub · 58 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 58 lines · 65 tokens per session scan A 2a2b77be742a

Subscribe to this mod's changes

runbook-generator is a skill published in the GitHub repository tmj-90/gaffer (2 stars, last pushed 5d ago), licensed Apache-2.0. It adds 65 tokens to every session and 835 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.