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

runbook-executor

Skill0 starsChanged 10 months agoMITView on GitHub

Executes runbooks and generates timestamped evidence documentation of the execution results

  • Reads credentials

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When asked to execute a runbook and document evidence:

    line 37
  2. Very specific:

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

    line 39
  3. Very specific:

    Follow the runbook steps in <runbook-path>/STEPS.md

    line 40
  4. Distinctive:

    Document each step's execution in the generated evidence file

    line 41
  5. Distinctive:

    Add screenshots or logs to the evidence directory if needed

    line 45
  6. Distinctive:

    Write the conclusion with overall assessment

    line 46
  7. Distinctive:

    When asked to review past executions:

    line 48
  8. Very specific:

    Run the list script: ./runbook-executor/scripts/list-evidence.sh <runbook-path>

    line 50
  9. 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
  10. Very specific:

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

    line 113
  11. Very specific:

    Use script-http instead of http directly

    line 131
  12. Distinctive:

    Use environment variables for secrets and configuration

    line 132
  13. Very specific:

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

    line 186

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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 execute runbooks and document the execution with timestamped evidence. When a user runs through a runbook's steps, this skill generates a structured evidence file that captures what actually happened during execution, including results, deviations, issues, and validations.

Evidence files are stored alongside the runbook in timestamped directories, allowing multiple executions to be tracked over time without overwriting previous evidence.

Configuration

Evidence location pattern: <runbook-path>/evidence/<YYYY-MM-DD-HH-MM>/result.md

Example: ./runbooks/user-login-flow/evidence/2026-01-31-14-30/result.md

Evidence Structure

Each evidence file documents:

  1. Execution Summary: Status, duration, environment, executor
  2. Technical Requirements Verification: Confirmation of prerequisites
  3. Step-by-Step Execution: Actual commands run, results obtained, timestamps
  4. Validation Results: Database checks, API responses, UI verifications
  5. Issues Encountered: Problems found and their resolutions
  6. Deviations: Any differences from the documented runbook
  7. Recommendations: Suggestions for improving the runbook
  8. Conclusion: Overall assessment and follow-up actions

Instructions

When asked to execute a runbook and document evidence:

  1. Run the evidence creation script: ./runbook-executor/scripts/create-evidence.sh <runbook-path>
  2. Follow the runbook steps in <runbook-path>/STEPS.md
  3. Document each step's execution in the generated evidence file
  4. Capture actual commands, outputs, and results
  5. Note any deviations or issues encountered
  6. Complete all validation sections
  7. Add screenshots or logs to the evidence directory if needed
  8. Write the conclusion with overall assessment

When asked to review past executions:

  1. Run the list script: ./runbook-executor/scripts/list-evidence.sh <runbook-path>
  2. Review the list of executions ordered by date (newest first)
  3. Open the relevant result.md file from the desired timestamp

Examples

Execute a runbook and create evidence:

./runbook-executor/scripts/create-evidence.sh runbooks/user-login-flow

Execute an API testing runbook:

./runbook-executor/scripts/create-evidence.sh runbooks/api-payment-flow

List all evidence executions for a runbook (newest first):

./runbook-executor/scripts/list-evidence.sh runbooks/user-login-flow

HTTP Requests in Runbooks

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

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

Examples:

  • 1738500000-login.httpie.http
  • 1738500100-get-users.httpie.http
  • 1738500200-create-order.httpie.http

Example 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}"

Common httpie Commands

# GET request
http GET https://api.example.com/users -v

# POST with JSON body
http POST https://api.example.com/login username=user password=pass -v

# POST with custom headers
http POST https://api.example.com/data \
    Authorization:"Bearer token123" \
    -v

# PUT request
http PUT https://api.example.com/users/1 name="Updated Name" -v

# DELETE request
http DELETE https://api.example.com/users/1 -v

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/evidence-template.md
  • Creation script: scripts/create-evidence.sh
  • List script: scripts/list-evidence.sh
  • Example httpie script: scripts/login.httpie.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.