agentleFS
JonDotsoyJonDotsoy/skills/runbook-generator/SKILL.md

runbook-generator

Skill0 starsChanged 10 months agoMITView on GitHub

Creates structured runbooks to document reproducible scenarios for APIs, UX flows, and technical procedures

  • Reads credentials

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 9 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Default runbook location: ./runbooks/<task-name>/STEPS.md

    line 18
  2. Distinctive:

    When asked to create a runbook:

    line 46
  3. Very specific:

    Run the creation script: ./runbook-generator/scripts/create-runbook.sh <runbook-path>

    line 48
  4. Distinctive:

    Ensure all sections are complete and actionable

    line 50
  5. Distinctive:

    Verify the runbook is reproducible

    line 51
  6. Distinctive:

    When asked to update a runbook:

    line 53
  7. Distinctive:

    Update the relevant sections

    line 56
  8. Distinctive:

    Create a runbook for user login flow:

    line 61
  9. Distinctive:

    Create a runbook for API endpoint testing:

    line 66
  10. Distinctive:

    When a runbook contains HTTP requests that can be executed locally, create scripts using httpie to automate the requests and save responses.

    line 73
  11. Very specific:

    Create a .env file for secrets (copy from .env.example):

    line 113
  12. Very specific:

    Use script-http instead of http directly

    line 131
  13. Distinctive:

    Use environment variables for secrets and configuration

    line 132
  14. Very specific:

    When documenting HTTP steps in STEPS.md, reference the activation and scripts:

    line 160

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

Overview

This skill helps create standardized runbooks that document reproducible scenarios in a clear, step-by-step format. Runbooks are ideal for documenting API workflows, user interface flows, deployment procedures, and any technical process that needs to be executed consistently.

A runbook is a living document that describes an ideal, reproducible scenario - not a log of past executions. It should be executable multiple times with the same expected results.

Configuration

Default runbook location: ./runbooks/<task-name>/STEPS.md

You can customize the runbook path when creating a new runbook.

Runbook Structure

Each runbook must include:

  1. Overview: Brief description of what this runbook accomplishes
  2. Technical Requirements: Environment setup needed before execution
    • Git branch/commit to checkout
    • Database state requirements
    • Required credentials or configurations
    • Environment context (local, dev, staging, prod)
    • Any pre-execution setup (delete records, modify configs, etc.)
  3. Steps to Reproduce: Clear, actionable steps
    • Exact commands to run
    • UI elements to click
    • API calls to make (with curl examples)
    • Expected responses at each step
  4. Validations: How to verify successful completion
    • Database queries to run
    • UI states to check
    • API responses to validate
    • Success criteria

Instructions

When asked to create a runbook:

  1. Run the creation script: ./runbook-generator/scripts/create-runbook.sh <runbook-path>
  2. Edit the generated template with specific details
  3. Ensure all sections are complete and actionable
  4. Verify the runbook is reproducible

When asked to update a runbook:

  1. Locate the existing STEPS.md file
  2. Update the relevant sections
  3. Maintain the standard structure

Examples

Create a runbook for user login flow:

./runbook-generator/scripts/create-runbook.sh runbooks/user-login-flow

Create a runbook for API endpoint testing:

./runbook-generator/scripts/create-runbook.sh runbooks/api-payment-flow

HTTP Request Scripts

When a runbook contains HTTP requests that can be executed locally, create scripts using httpie to automate the requests and save responses.

Important: All scripts must be executed under supervision. Review each script before execution and verify the target endpoints are correct for your environment.

Structure for HTTP Scripts

<runbook-path>/
├── STEPS.md
├── scripts/
│   ├── activation.sh        # Environment setup and aliases
│   ├── .env                  # Secrets (git-ignored)
│   ├── .env.example          # Example configuration
│   ├── login.httpie.sh
│   ├── get-user.httpie.sh
│   └── responses/
│       ├── 1738500000-login.httpie.http
│       └── 1738500100-get-user.httpie.http
└── evidence/

Activation Script

The activation.sh script sets up the environment for HTTP scripts:

  1. Loads environment variables from .env file (for secrets)
  2. Creates the script-http function that wraps httpie and saves responses automatically

Usage

# First, activate the environment
source ./scripts/activation.sh

# Then run your scripts
./scripts/login.httpie.sh

Configuration with .env

Create a .env file for secrets (copy from .env.example):

cp .env.example .env

Example .env:

API_BASE_URL=https://api.example.com
API_USERNAME=your-username
API_PASSWORD=your-password
API_TOKEN=your-bearer-token

Script Requirements

Each httpie script should:

  1. Use script-http instead of http directly
  2. Use environment variables for secrets and configuration
  3. Include a comment indicating to run source ./activation.sh first

Naming Convention

Response files follow this pattern:

<unix-timestamp>-<endpoint-name>.httpie.http

Example httpie Script

#!/bin/bash
# Login API request using httpie
# Usage: source ./activation.sh && ./login.httpie.sh

set -e

BASE_URL="${API_BASE_URL:-https://api.example.com}"

script-http POST "$BASE_URL/login" \
    username="${API_USERNAME:-test@example.com}" \
    password="${API_PASSWORD:-secret123}"

STEPS.md Integration

When documenting HTTP steps in STEPS.md, reference the activation and scripts:

## Step 1: Activate environment

\`\`\`bash
source ./scripts/activation.sh
\`\`\`

## Step 2: Authenticate with API

Execute the login script to authenticate:

\`\`\`bash
./scripts/login.httpie.sh
\`\`\`

Expected response: HTTP 200 with JWT token in response body.
Response saved to: `scripts/responses/<timestamp>-login.httpie.http`

Resources

  • Template: assets/runbook-template.md
  • Creation script: scripts/create-runbook.sh

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.