agentleFS
AaqibhafeezkhanAaqibhafeezkhan/skillself/skills/runbook-writer/SKILL.md

runbook-writer

Skill0 starsChanged 6 days agoMITView on GitHub

The skill writes AIOps runbooks for a specific alert with symptoms, impact, exact diagnosis commands, bounded auto-remediation, rollback, verification and escalation; use it when asked for an incident or alert response procedure.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when asked to write an incident runbook, respond to an alert, document an operational procedure, or specify automated …

    line 13
  2. Distinctive:

    Read the alert definition, service ownership information and supplied operational telemetry.

    line 26
  3. Very specific:

    Read references/runbook-template.md and preserve its required sections.

    line 27
  4. Distinctive:

    Check every command for correct service names, namespace, flags and required privileges before returning the runbook.

    line 35
  5. Distinctive:

    Use headings in this order: Alert, Symptoms, Impact, Diagnosis, Safe auto-remediation, Rollback, Verification, Escalation.

    line 40
  6. Distinctive:

    If environment, namespace or service identifiers are missing, ask for the one identifier needed to make commands safe.

    line 45
  7. Distinctive:

    When automation authority is unknown, provide operator-approved steps rather than claiming automatic execution is allowed.

    line 46
  8. Distinctive:

    When a destructive action has no verified rollback, mark it manual-only and require an explicit approval gate.

    line 47
  9. Distinctive:

    Do not invent monitoring metric names or thresholds.

    line 48
  10. Distinctive:

    Do not restart or delete resources before collecting read-only evidence.

    line 53
  11. Distinctive:

    Do not use broad wildcard deletion commands.

    line 54
  12. Distinctive:

    Do not make a remediation automatic without a bounded rollback and stop condition.

    line 55

“Common” is measured: kept by at least 6 in 10 of the 4 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

Purpose

Produce a safe, executable AIOps remediation runbook for a concrete alert and service.

When to use

Use this skill when asked to write an incident runbook, respond to an alert, document an operational procedure, or specify automated remediation and rollback steps.

Inputs needed

  • Alert name, trigger and observed symptom.
  • Affected service and known dependencies.
  • Operating environment and approved command surface.
  • Access boundary and actions authorized for automation.

Step-by-step procedure

  1. Read the alert definition, service ownership information and supplied operational telemetry.
  2. Read references/runbook-template.md and preserve its required sections.
  3. Describe the alert condition and distinguish symptoms from confirmed causes.
  4. State customer and system impact using evidence; label unknown scope explicitly.
  5. Order diagnosis steps from read-only checks to progressively more invasive checks and include exact commands.
  6. Define safe automatic remediation only when the action is idempotent, bounded, observable and reversible.
  7. Specify preconditions, approval gates, rate limits and stop conditions for each automated action.
  8. Provide a rollback command and explain how to confirm rollback completion.
  9. Define verification signals, success windows, failure criteria and escalation thresholds.
  10. Check every command for correct service names, namespace, flags and required privileges before returning the runbook.

Exact output format

Use headings in this order: Alert, Symptoms, Impact, Diagnosis, Safe auto-remediation, Rollback, Verification, Escalation. Diagnosis steps must be numbered and contain exact commands. Remediation and rollback must include preconditions and expected command results.

Edge cases

  • If environment, namespace or service identifiers are missing, ask for the one identifier needed to make commands safe.
  • When automation authority is unknown, provide operator-approved steps rather than claiming automatic execution is allowed.
  • When a destructive action has no verified rollback, mark it manual-only and require an explicit approval gate.
  • Do not invent monitoring metric names or thresholds; label suggested thresholds as proposals.

Do not

  • Do not restart or delete resources before collecting read-only evidence.
  • Do not use broad wildcard deletion commands.
  • Do not make a remediation automatic without a bounded rollback and stop condition.

Worked example summary

An API latency alert shows high p95 latency and elevated database connection usage. The runbook checks service health, pool saturation and database status, allows one bounded rollout restart only under approved conditions, and verifies latency and error rate before closing the alert.

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.