runbook-writer

runbook-writer is a skill for Claude Code, Codex from TestAny-io/testany-agent-skills. It costs 45 tokens per session (3,898 once invoked), scanned A, original, MIT.

A skill for writing an operations runbook: a practical guide for deploying, monitoring, troubleshooting, and rolling back a system.

In plain words
What is it for?
Use it after a low-level design is complete to produce deployment, rollback, monitoring, and fault-handling procedures, with checks and traceability.
Why use it?
It turns design and implementation documents into instructions an operations team can follow during normal releases or incidents.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions subagents; names the TodoWrite tool.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **语言规则**:默认跟随用户输入语言;用户显式指定时以用户指定为准;不要因为本 `SKILL.md` 是中文而强制输出中文;`TRACEABILITY-METADATA` 的字段名、枚举值、ID、comment markers 始终保持英文。若本 skill 使用模板或派发子任务,继续传递同一个 `output_la.

Part of the testany-eng plugin — 21 skills, 21 commands shipped together

Good fit Use it after a low-level design is complete to produce deployment, rollback, monitoring, and fault-handling procedures, with checks and traceability.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/TestAny-io/testany-agent-skills
agentmods
npx agentmods add skills/testany-io/testany-agent-skills/runbook-writer

Made for: Claude Code, Codex.

Or install testany-eng, the plugin that ships this one along with the rest of its 21 skills, 21 commands.

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-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/testany-io/testany-agent-skills/runbook-writer/github.svg)](https://agentmods.dev/skills/testany-io/testany-agent-skills/runbook-writer)
Your own site
<a href="https://agentmods.dev/skills/testany-io/testany-agent-skills/runbook-writer"><img src="https://agentmods.dev/badge/skills/testany-io/testany-agent-skills/runbook-writer/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-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/testany-io/testany-agent-skills/runbook-writer"><img src="https://agentmods.dev/badge/skills/testany-io/testany-agent-skills/runbook-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,898 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00045 $0.03898
Opus 5 $0.00023 $0.01949
Sonnet 5 $0.00009 $0.00780
Haiku 4.5 $0.00005 $0.00390

Measured 11d ago against content hash 7c2323d5132f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

runbook-writer 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 11d 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.

plugins/testany-eng/skills/runbook-writer/SKILL.md · 456 lines

How it starts

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

Runbook Writer - 运维手册编写

语言规则:默认跟随用户输入语言;用户显式指定时以用户指定为准;不要因为本 SKILL.md 是中文而强制输出中文;TRACEABILITY-METADATA 的字段名、枚举值、ID、comment markers 始终保持英文。若本 skill 使用模板或派发子任务,继续传递同一个 output_language。详见 ../../references/language-policy.md

你是运维手册编写的协调者。你的职责是收集上下文、派发 subagent 独立写作、组织审查流程,确保 Runbook 质量达到生产就绪标准。

核心定位

协调者,而非作者。

  • ✅ 提取上游文档的关键约束和要求
  • ✅ 派发 writer subagent 独立写作
  • ✅ 派发 reviewer subagent 独立审查
  • ✅ 处理冲突、回答问题、汇总结果
  • ❌ 不自己写 Runbook(context 污染风险)
  • ❌ 不跳过审查环节

核心原则

原则 说明
Context 隔离 Subagent 获得新鲜 context,避免主 session 的假设污染
完整上下文传递 Controller 提取完整约束,subagent 不需要自己读文件猜测
双阶段审查 Spec compliance 先行,quality 后续,避免浪费精力优化不该存在的内容
证据驱动 所有约束必须来自上游文档,不得凭空推测
可执行优先 每个步骤必须有验证命令,回滚路径必须可操作
先做 Guardrails trigger check 若运维要求依赖缺失/过期的项目级规则,先判断是否必须更新 Guardrails

执行进度清单

执行时使用 TodoWrite 工具跟踪以下进度,完成一项后立即标记为 completed:

□ Phase 0: 基线收集
  - 确认上游文档路径(PRD/HLD/LLD/API Contract/Guardrails/Infra)
  - 读取所有上游文档
  - 提取运维相关约束
  - 执行 Guardrails trigger check

□ Phase 1: 上下文准备
  - 提取系统边界与依赖
  - 提取部署流程要求
  - 提取回滚策略约束
  - 提取监控 SLO 要求
  - 提取故障处理要求
  - 识别缺失信息并 AskUserQuestion

□ Phase 2: 派发 Writer Subagent
  - 使用 subagents/writer.md 模板
  - 提供完整上下文(不让 subagent 读文件)
  - 解析 AGENT-RESULT 块判定结果
  - 等待 writer 提问(如有 needs_user_input)并回答

□ Phase 3: Spec Compliance Review(最多 2 轮修复)
  - 使用 subagents/spec-reviewer.md 模板
  - 解析 AGENT-RESULT 块中的 verdict
  - 发现问题 → 返回 writer 修复 → 重新审查(最多 2 轮)
  - 2 轮后仍有 Critical → 停止,输出遗留问题
  - 通过 → 进入 Phase 4

□ Phase 4: Quality Review(最多 2 轮修复)
  - 使用 subagents/quality-reviewer.md 模板
  - 解析 AGENT-RESULT 块中的 verdict
  - 发现 Critical → 返回 writer 修复 → 重新审查(最多 2 轮)
  - 2 轮后仍有 Critical → 停止,输出遗留问题
  - 通过(含 conditional_pass)→ 输出最终 Runbook

□ Subagent 失败处理(贯穿 Phase 2-4)
  - AGENT-RESULT 缺失 → 重试 1 次 → 二次缺失 → 报告用户
  - status=needs_input → AskUserQuestion 转达
  - status=failed + needs_retry → 重试 1 次
  - status=failed + !needs_retry → 报告用户
  - 迭代超限 → 输出遗留问题清单

□ Phase 5: 输出与验证
  - 按 runbook-template.md 格式输出
  - 确认所有章节完整
  - 保存文件

Read the full file on GitHub · 456 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 456 lines · 45 tokens per session scan A 7c2323d5132f

Subscribe to this mod's changes

runbook-writer is a skill published in the GitHub repository TestAny-io/testany-agent-skills (82 stars, last pushed 3d ago), licensed MIT. It adds 45 tokens to every session and 3,898 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens