runbook-generator

runbook-generator is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 65 tokens per session (1,212 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.

Good fit Use it to create or standardise runbooks, document on-call procedures, write incident playbooks, or onboard engineers to service operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmj-90/gaffer/runbook-generator
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for runbook-generator

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 1,212 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.01212
Opus 5.5 $0.00026 $0.00485
Sonnet 5.5 $0.00013 $0.00242
Haiku 4.5 $0.00006 $0.00121

Measured 2mo ago against content hash f9d550c192e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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 · 93 lines

How it starts

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

Generate operational runbooks

A runbook lets an on-call engineer who has never seen this service diagnose and mitigate it at 3am. It is a how-to guide in Diátaxis terms: task-first, numbered, copy-pasteable, with the expected result after each step. A wrong command is worse than a missing one.

Required sections

Section Contents
Overview What the service does, owner team, criticality, SLO link
Dependencies Upstream/downstream services, data stores, queues; what breaks if each fails
Health How to tell it is healthy: endpoint, metric, dashboard; the expected healthy output
Alerts One subsection per alert, anchored so the alert can link to it (below)
Routine operations Start, stop, restart, scale, rotate a credential — exact commands
Deploy and rollback How a release goes out; the exact rollback command and how to confirm it worked
Data safety Backups, restore procedure, what must never be done to the data store
Escalation Who next, how to reach them, when (time or severity threshold); postmortem template link

Per-alert template

### <AlertName>
**Means:** <user impact in one sentence>
**Check:** <command/query> → healthy looks like <output>
**Likely causes:** <ranked, each with the check that confirms it>
**Mitigate:** 1. <command> → expect <output>  2. ...
**Escalate if:** <condition or elapsed time> → <team/channel>

Procedure

  1. Gather facts, not memories. search_lore for existing runbooks and on-call conventions; find existing runbooks in the repo (docs/runbooks/, ops/, README). Extend one if it exists. Read the deployment manifests, Dockerfile/compose, health endpoints, config keys, and alert rule files — the alert names and thresholds come from there, not from invention.
  2. List every alert defined for the service and give each a subsection with a stable anchor. An alert without a runbook section is a gap to report.
  3. Write every command against the real service: real binary names, flags, namespaces, label selectors, metric names. Parameterise only what varies (<pod-name>), and say how to obtain it (kubectl get pods -l app=api -n prod). Mark destructive commands (delete, restore, force-unlock, failover) with a warning and a precondition check.
  4. Make lock and lease recovery safe. If the service uses locks, leases or leader election, the runbook must say how to prove the holder is dead (process gone, node drained, fencing token advanced) before breaking the lock — never "delete the stale lock file". Breaking a lock held by a paused-but-alive process lost acknowledged writes in live runs.
  5. Include rollback as steps, with the verification that it worked (version endpoint, error ratio back under threshold), not "revert the deploy".
  6. Verify what you can (below). Anything you could not execute is marked UNVERIFIED: with the reason; do not present it as tested.
  7. Link both ways. Put the runbook next to the code (docs/runbooks/<service>.md unless the repo has a convention) and add or update each alert's runbook_url annotation to point at its anchor. Evidence with the record-evidence skill, then stop.

Read the full file on GitHub · 93 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. 2mo ago Changed · +35 lines f9d550c192e3
  2. 3mo 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 (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 65 tokens to every session and 1,212 once invoked, about $0.0003 per session on Opus 5.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.

Related

runbook-generator compared with skills from other repositories

runbook-generator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
runbook-generatortmj-90/gafferSkill14d agoApache-2.0A65Claude Code, Codex
bulwark-brainstormQBall-Inc/the-bulwarkSkill9yesterdayMITA50Claude Code
plan-creationQBall-Inc/the-bulwarkSkill9yesterdayMITA38Claude Code
anthropic-validatorQBall-Inc/the-bulwarkSkill9yesterdayMITA40Claude Code
create-subagentQBall-Inc/the-bulwarkSkill9yesterdayMITA42Claude Code
test-auditQBall-Inc/the-bulwarkSkill9yesterdayMITA0Claude Code
code-reviewQBall-Inc/the-bulwarkSkill9yesterdayMITA61Claude Code