К основному содержанию
скилл CX Codex

writing-runbooks — скилл для Claude Code: операционные документы

Скилл для написания ранбуков, инструкций по установке и миграции, где читатель выполняет шаги под давлением времени.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add riekelt/technical-writer --skill writing-runbooks -a claude-code
Открыть на GitHub

Что делает writing-runbooks

Скилл задаёт структуру операционного текста: легенда риска в начале, TL;DR с happy path, затем те же шаги нумерованными секциями. Каждая команда должна копироваться как есть, а порядок шагов несёт последствие: «deploy jar, then DB cleanup; wrong order = silent data loss».

Отдельные правила для разбора сбоев и миграций. Записи о проблемах строятся от симптома: сначала дословный текст ошибки, потом причина, потом точные команды. В гайдах по миграции нужна таблица соответствий старых и новых ключей, обязательный откат на каждом шаге и даты, когда что перестанет работать.

Скилл требует фонового technical-writing и опирается на реальные прогоны. Процедура, которую ни разу не выполняли, — это черновик, а не ранбук; если часть веток не проверена, их помечают как черновик и просят первого исполнителя отчитаться. Неизвестные значения остаются в квадратных скобках, выдумывать их нельзя.

Какие задачи решает

  • описать процедуру релиза так, чтобы её выполнили без вопросов
  • оформить запись о сбое от симптома до точной команды
  • составить гайд по миграции с таблицей старых и новых ключей
  • указать откат для каждого шага, меняющего состояние
  • пометить рискованные команды до того, как их скопируют

Примеры запросов агенту

  • напиши ранбук для релиза: шаги, легенда риска, проверка результата
  • оформи разбор сбоя: симптом, причина, команды исправления
  • составь гайд по миграции с таблицей соответствий и датами отключения

Как установить writing-runbooks

1Через Skills CLI (Vercel)

npx skills add riekelt/technical-writer --skill writing-runbooks -a claude-code

2Вручную: положить файлы

~/.claude/skills/writing-runbooks/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/writing-runbooks/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о writing-runbooks

Как установить writing-runbooks в Claude?

Выполните npx skills add riekelt/technical-writer --skill writing-runbooks -a claude-code. Скилл появится в ~/.claude/skills/writing-runbooks/SKILL.md.

Что делает writing-runbooks?

Задаёт скелет операционного документа: легенду риска, нумерованные шаги по одному действию, откат, раздел проверки результата. Работает для ранбуков, инструкций по установке, миграции и разбора сбоев.

Нужен ли скилл technical-writing?

Да, он указан как обязательная основа: жёсткие правила, правила правды и стиль берутся оттуда. Без него writing-runbooks опирается на пустую базу.

Исходный текст

SKILL.md · MIT
---
name: writing-runbooks
description: Use when writing operational documentation - runbooks, setup guides, release procedures, migration guides, deprecation guides, troubleshooting entries, or any ordered procedure someone will execute under time pressure. Encodes the runbook skeleton, the risk legend, the symptom-first troubleshooting format, and the migration-guide rules (mapping table, mandatory rollback, deprecation dates, built-in expiry). Use whenever someone will execute the text, even if it is called a "guide" or "setup notes".
---

# Writing runbooks

**REQUIRED BACKGROUND:** the `technical-writing` skill (hard rules, truth rules, style).

## Overview

The reader is in a hurry, often mid-incident. Every runbook is ordered, one action per step, copy-pasteable, with danger marked where the eye already is.

Write from a real run: every step one actually taken, every failure named one that actually happened. A procedure imagined at the desk is a draft, not a runbook. A partially exercised procedure may be published with per-branch honesty: name the variant that has not run yet, mark that branch draft, and ask its first real runner to report back. A procedure with no real run behind any branch is a draft outright. When a value the commands need is genuinely unknown, keep the placeholder visibly bracketed, never invented, and fill it from a real run before publishing; truth outranks paste-readiness.

## When to invoke, and not

Invoke for anything a person will execute: runbooks, setup and release procedures, troubleshooting entries, operational checklists, and the operator-facing strings inside a system. Do NOT invoke for design rationale (`writing-design-docs`) or for reference material nobody executes. If the procedure has not been run at least once, either run it first or label the document a draft; publishing an untested procedure as a runbook is the defect, not the labeling.

## Structure

- Title carries the scope: "MVP runbook (Reddit)", "Release runbook".
- Open with what this document is relative to its siblings ("this doc is the sequence; deep detail per step lives in X") and state what it does NOT cover.
- **Legend up front** when steps differ in risk, applied to every command: safe to run anytime / operator-only (writes to production) / manual step outside the terminal. Tags combine where a step is more than one thing.
- **TL;DR happy path first**, then the same steps as numbered sections for the reader who needs only one.
- Version-pinned prerequisites before any command, each with a check command.
- Numbered ordinal steps (not bullets), one action each, present tense or imperative, with a visible actor.
- Every command copy-pasteable as-is, with concrete example values ("common paths: `/public_html/`, `/www/`"). Label variants inside the code block:

```bash
# safe mode
app sync run --channel=reddit --limit=100

# live mode (writes to the provider)
app sync run --live --approval-token=...
```

- Ordered steps state the consequence of wrong ordering inline: "deploy jar, then DB cleanup; wrong order = silent data loss."
- Every state-changing procedure names its rollback, or states plainly that none exists and what that means.
- End with a "verify it worked" section: the observable end state and the command that proves it.
- Mark the preferred path "(recommended)" when several paths exist; document UI and CLI for the same task side by side rather than twice.
- If the runbook will shrink when tooling lands, say so: "when X lands, steps 2 to 4 become one command and this document keeps only the judgment."

## Troubleshooting entries

Symptom-first:

```markdown
## <symptom as the user sees it>
**Symptom**: verbatim error strings (searchable)
**Cause**: ...
**Fix**: exact commands
```

Order diagnostic steps cheapest first. Group entries by failure class. Cross-link the deeper doc instead of inlining it.

## Migration and deprecation guides

A migration guide is a runbook whose subject is the change itself: everything above applies, plus five rules of its own. The argument for the migration is a design doc (`writing-design-docs`), the decision to deprecate is an ADR (`recording-decisions`), the announcement is a changelog entry (`writing-changelogs`); this section covers only the guide the reader executes.

1. **History is the content here, stated positively.** The before/after comparison is the job, not a violation: this is the document class the no-history hard rule explicitly carves out. Write "the tag now replaces the manual version bump" freely; that sentence is banned everywhere else and load-bearing here.
2. **The mapping table is the core artifact.** Old to new per behavior, config key, command, or API, one row each. Prose explains the rows that need it; the table carries the migration.
3. **Rollback is mandatory, per step.** Every step names its undo, or states plainly that it is irreversible and what that means for the ordering around it.
4. **The deprecation contract carries dates.** What stops working, on which date, what happens to stragglers, and where the escape hatch is until then. "Will be removed in a future release" names no date and is banned here.
5. **Born with an expiry.** When the migration completes, the owner reclassifies the guide as historical and adds the superseded banner pointing at the current-state documentation, never deleting it silently. State the completion condition in the guide itself.

## Operator-facing strings

Error messages and log lines are runbook prose with the shortest reading window: keep remediation specific and actionable, and make error states visible rather than letting workflows appear healthy.

© riekelt · MIT · riekelt/technical-writer

Похожие скиллы

Всё по теме «Тексты и документация» →
technical-writing akillness Пишет внутренние технические документы: спеки, архитектурные заметки, ADR, ранбуки, планы миграций и гайды для разработчиков. CX Codex +1 544установок documentation официальный anthropics Скилл для технического письма: собирает README, справочник по API, ранбук, архитектурный документ или гайд для новичков. Пригодится, когда код есть, а описания к нему нет. CX Codex +1 10 300установок runbook официальный anthropics Скилл превращает повторяемую операцию в пошаговый runbook с проверкой, устранением сбоев, откатом и маршрутом эскалации. CX Codex +1 3 100установок writing-documentation-with-diataxis sammcj Скилл раскладывает техническую документацию на четыре типа по фреймворку Diataxis и помогает писать или проверять каждый из них. CX Codex +1 615установок adev-writing-guide angular Скилл задаёт правила технического писательства Google и разметку для документации Angular в adev/. Он нужен при создании, правке и ревью страниц в каталоге adev/src/content. CX Codex +1 912установок grounded-writing chrisbanes Скилл убирает выдуманные факты, рекламный тон и лишние детали реализации из публичной документации и технических отчётов. CX Codex +1 448установок

Из того же набора10

reviewing-technical-prose Скилл для вычитки чужих технических текстов: находит запрещённые конструкции, слабые утверждения и структурные дефекты, а перед сдачей документа прогоняет чек-лист. CX Codex +1 18 200установок writing-design-docs Шаблон и правила подготовки дизайн-документов, RFC и миграционных планов. Задаёт скелет документа, карточки обоснований Why & What и проверку на неопределённости. CX Codex +1 18 200установок writing-changelogs Готовит записи журнала изменений, релизные заметки и сводки о выпущенной работе. Нужен после заметных изменений, исправлений или удалений. CX Codex +1 18 100установок documenting-legacy-codebases Скилл восстанавливает документацию по коду, когда старые доки устарели или врут. Сначала инвентаризация системы, потом текст. CX Codex +1 17 900установок writing-issues Задаёт структуру задач, баг-репортов и спайков в трекере. Помогает превратить обсуждение или сырые заметки в понятный тикет с проверяемыми критериями приёмки. CX Codex +1 18 000установок recording-decisions Скилл записывает принятые решения в формате ADR или короткой записи журнала, пока они не остались только в чате. CX Codex +1 18 000установок writing-postmortems Скилл для написания постмортемов и разборов причин сбоя: хронология только по фактам, блиameless-рамка, задачи с владельцами. CX Codex +1 18 000установок diagramming-processes Скилл для ИИ-кодинга, который заставляет агента рисовать процессы, состояния и обмен сообщениями в виде диаграмм с исходником в git, а не картинок. CX Codex +1 17 800установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой