agentleFS
pahlevikunpahlevikun/levistack/skills/delivery/write-runbook/SKILL.md

write-runbook

Skill0 starsChanged 19 days agoMITView on GitHub

Write operational runbooks for recovery, troubleshooting, deployment, and migration, with verified prerequisites, phase gates, commands, expected evidence, rollback limits, checkpoint recovery, and escalation. Use when asked to create or revise a runbook, recovery procedure, deployment checklist, operational playbook, migration guide, or troubleshooting procedure. Not for executing production operations, a postmortem (write-postmortem), or an implementation plan (write-plan).

5 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident-triage, review-change and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • testified-ossSkill

    incident-triage

    Triage production incidents with severity assessment, root cause hypothesis, impact analysis, and escalation recommendations. Use when analyzing outages, errors, or production issues.

    Also in 3 projects that use this

  • thlaureSkill

    review-change

    Use this skill when the user asks for a code review, a correctness pass, a check before PR, or asks whether a Signalist change follows project conventions.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    release-notes

    Author and update release notes for Azure App Configuration libraries and providers. USE FOR: write release notes, add release note entry, update release notes, draft release notes, new version release notes, format release notes. DO NOT USE FOR: generating changelogs from git history, writing internal engineering notes.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write for an operator who must act under pressure.

    line 40
  2. Distinctive:

    Write the shortest usable sequence.

    line 51
  3. Distinctive:

    Put a destructive or irreversible consequence immediately before its action.

    line 55
  4. Distinctive:

    Use a troubleshooting table for branching symptoms.

    line 63
  5. Distinctive:

    Use the local format, or start from the runbook template.

    line 71
  6. Distinctive:

    Use exact commands, paths, units, and system names.

    line 83
  7. Distinctive:

    Check commands against installed tools, scripts, tests, or documented interfaces.

    line 87
  8. Distinctive:

    Do not contact production, execute a destructive command, or reproduce an outage merely to prove prose.

    line 90
  9. Distinctive:

    Check completion, stop, rollback, and escalation conditions against the source.

    line 91
  10. Distinctive:

    Keep publishing, announcements, external ticket updates, and execution outside the authoring task unless separately requested.

    line 95

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Write a runbook

Write for an operator who must act under pressure. A documentation task does not authorize the operation itself.

Establish the operating context

  1. Identify the triggering symptom or scheduled task, affected system, intended outcome, operator role, and limits. Use the existing runbook format and document location. Record its owner and review date. Keep those separate from the last actual exercise and its result. Add recurrence only when the task has an established schedule.
  2. Find an existing procedure before creating a second owner. Read current scripts, configuration, tests, operational records, and relevant Git history. Check earlier incident lessons and plans where they explain dependencies. Record source locations and the revision checked. Search connected knowledge sources read-only when relevant and available.
  3. Verify prerequisites against the actual tooling. Identify the target account, environment, service, release artifact, working directory, and required access where relevant. Include current health, backups, and dependencies where they matter. Name the established escalation route and confirm contact currency from available records. Leave unavailable values explicit and say how to obtain them.
  4. Continue within the user's authorized documentation scope without another approval pause. Keep service code unchanged. Execution of production or destructive steps needs its own authorization.

Build the procedure

Write the shortest usable sequence. For every material action, provide the exact command or UI action, expected evidence, and what to do when the result differs. Keep prerequisites and conditions before the step they guard.

Give steps stable identifiers. At a phase boundary, state what evidence permits continuation, what stops the procedure, and who decides when the result is uncertain. Derive metric thresholds, observation windows, backup requirements, and rollout increments from the target service's policies or configuration. Missing values are unresolved gates, not permission to substitute generic numbers.

Put a destructive or irreversible consequence immediately before its action. Explain a required order when reversing steps can cause failure. Do not repeat the full sequence in a second overview.

Give a stop condition and recovery path for each state-changing stage. State when rollback cannot restore data or undo an external effect. Do not invent a rollback command to fill a template.

Document whether a step can be repeated safely. After an interruption or timeout, require the operator to inspect current state and reconcile any uncertain outcome before resuming. A saved checkpoint identifies prior evidence; it does not prove that the target still has that state. Explain compensation or escalation where replay is unsafe.

Finish with observable service and user checks. Include cleanup or a monitoring period when supported by the system. Name the evidence that allows the operator to stop or escalate.

Use a troubleshooting table for branching symptoms. Start with the searchable symptom, give a cheap diagnostic, then the recovery action and its success check. Avoid speculative causes without a way to distinguish them.

For a migration, add old-to-new mappings, caller changes, cutover conditions, rollback limits, and treatment of unmigrated callers. Record dates and retirement conditions only when established.

For a deployment or cutover, read deployment.md for preflight, promotion, rollback boundaries, and handoff. When the document needs an exercise record or must learn from an interrupted attempt, read run-evidence.md. These references describe the operator's evidence requirements; they do not authorize execution.

Output shape

Use the local format, or start from the runbook template. Its minimum shape is:

Task and when to use it
Scope, environment, access, prerequisites
Procedure: action, expected evidence, stop or recovery condition
Completion checks
Recovery and escalation
Phase gates and restart conditions where applicable
Last exercise: date, environment, branches checked, limitations

Use exact commands, paths, units, and system names. Label placeholders and explain where the operator obtains their values. Exclude credentials and personal data from examples.

Verify

  • Check commands against installed tools, scripts, tests, or documented interfaces. Exercise safe paths in a local or disposable environment when available.
  • Distinguish syntax checks, dry runs, tests, and live exercises. Label examples and branches that were not run. A dry run does not prove a destructive rollback works.
  • Define the meaning of tool outcomes. A required probe that failed, never ran, is unconfigured, or rejected its arguments cannot pass a gate. Record partial coverage separately from full success. Confirm that logging or capture pipelines preserve the actual command result; an HTTP client exit alone may not establish the expected HTTP or business outcome.
  • Do not contact production, execute a destructive command, or reproduce an outage merely to prove prose. If only production can exercise a branch, retain a draft or explicit verification limitation.
  • Check completion, stop, rollback, and escalation conditions against the source. Open links and review the procedure as an operator without author context.
  • Where possible, have a reader unfamiliar with the task rehearse the safe path. Record which prerequisites or branches could not be exercised. Update the procedure from confirmed deviations without overwriting earlier execution evidence.
  • Deliver the document, evidence snapshot, branches exercised, and remaining limitations. An untested recovery sequence remains a draft or carries an explicit limitation.

Keep publishing, announcements, external ticket updates, and execution outside the authoring task unless separately requested. An execution-only request belongs to the applicable operator workflow; do not disguise it as a documentation check or impose a new approval count of your own.

Behavior scenarios are in evals/evals.json.

Related skills

  • verify: investigate a failing check or run safe authorized validation.
  • write-postmortem: record an incident after stabilization and preserve its recovery lessons.
  • write-plan: plan implementation work that makes a proposed operational path possible.
  • create-documentation: document ordinary product use and reference material.
  • polyglot-copywriter: clarify operator instructions while preserving exact commands and consequences.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.