create-runbook
Skill3 starsChanged 8 months agoMITView on GitHub
Create a new dops runbook with correct YAML schema and POSIX shell script. Use when the user asks to create a new automation, runbook, or script for dops. Triggers on: 'create a runbook', 'add automation', 'new script', 'scaffold runbook'.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- jettyio/jettyio-skillstheir own version, first seen Oct 17, 2026
- BorjaIP/personal-os-skillstheir own version, first seen Oct 11, 2026
- masonhuemmer/dopsword for word, first seen Mar 24, 2026
Other versions3 projects use a version of this.
Word for word · 1
- masonhuemmer/dops★ 3100% same
Edited · 0
None found.
Wrote their own version · 2
- jettyio/jettyio-skills★ 4same name
- BorjaIP/personal-os-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- bubbletea-patternsSkill
- charm-stylingSkill
- clean-code-boundariesSkill
- clean-code-designSkill
- clean-code-errorsSkill
- clean-code-functionsSkill
- clean-code-namingSkill
- clean-code-solidSkill
- clean-code-testingSkill
- cli-structureSkill
- demo-recordingSkill
- mutation-testingSkill
- shell-scriptsSkill
- spec-workflowSkill
- tdd-workflowSkill
- tui-layoutSkill
- tui-testingSkill
- wizard-formsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 107
Use
$(command): not backticks - Very specific: line 140
Create the directory: mkdir -p ~/.dops/catalogs/<catalog>/<name>
- Very specific: line 141
Write runbook.yaml with the schema above
- Very specific: line 142
Write script.sh following the POSIX template
- Very specific: line 144
If the catalog is new, register it: dops catalog add ~/.dops/catalogs/<catalog>
- Very specific: line 145
Test: launch dops, navigate to the runbook, execute it
≈ “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.
Files
Create a dops Runbook
Directory Structure
Runbooks live under DOPS_HOME/catalogs/<catalog>/<runbook-name>/:
~/.dops/catalogs/<catalog>/<runbook-name>/
├── runbook.yaml # Runbook definition
└── script.sh # Automation script (POSIX sh)runbook.yaml Schema
name: <runbook-name> # Must match directory name
version: 1.0.0
description: Short description of what this runbook does
risk_level: low # low | medium | high | critical
script: script.sh
parameters:
- name: endpoint
type: string # See parameter types below
required: true
description: What this parameter does
scope: global # local | global | catalog | runbook
default: "" # Optional default value
secret: false # If true, masked in UI, excluded from MCP
options: [] # Required for select and multi_selectParameter Types
| Type | Description | Validation |
string | Free text | — |
boolean | Yes/No toggle | — |
integer | Whole number (negative ok) | strconv.Atoi |
number | Non-negative whole number (0+) | Must be >= 0 |
float | Decimal number | strconv.ParseFloat |
select | Single choice from options | Requires options list |
multi_select | Multiple choices from options | Requires options list |
file_path | File system path | — |
resource_id | Resource identifier (ARN, URI) | — |
Risk Levels
| Level | TUI Confirmation | MCP Confirmation |
low | None | None |
medium | None | None |
high | y/N prompt | _confirm_id param must match runbook ID |
critical | Type runbook ID | _confirm_word param must be "CONFIRM" |
Scopes
Values are saved to the encrypted vault.json (age AEAD, tamper-resistant).
| Scope | Where saved | Use when |
local | Not saved | One-time values, never prompted to save |
global | vault.json → vars.global.<name> | Shared across all runbooks (API tokens, regions) |
catalog | vault.json → vars.catalog.<cat>.<name> | Shared within a catalog |
runbook | vault.json → vars.catalog.<cat>.runbooks.<rb>.<name> | Specific to this runbook |
Script Template (POSIX sh)
#!/bin/sh
set -eu
# dops passes parameters as UPPERCASE environment variables.
# Parameter "endpoint" → $ENDPOINT
# Parameter "dry_run" → $DRY_RUN
ENDPOINT="${ENDPOINT:?endpoint is required}"
DRY_RUN="${DRY_RUN:-false}"
main() {
echo "==> Stage 1/2: Validate"
echo " Checking ${ENDPOINT}..."
# TODO: implement
echo ""
echo "==> Stage 2/2: Execute"
echo " Running operation..."
# TODO: implement
echo ""
echo "✓ Done"
}
main "$@"Shell Style Rules (POSIX-compatible)
- Use
#!/bin/sh— not#!/bin/bash(POSIX compatibility for Linux/macOS) - Use
set -eu— notset -euo pipefail(pipefail is not POSIX) - Quote all variables:
"${var}"not$var - Use
[ ]not[[ ]]— POSIX test - Use
$(command)not backticks - Stderr for errors:
echo "error" >&2 - Indent with 2 spaces, no tabs
- Put
main()at the bottom of the script - Use
command -vnotwhich - Use
printfoverecho -efor portability
Output Conventions
# Stage headers
echo "==> Stage 1/3: Build"
# Indented details
echo " Compiling source..."
# Success
echo "✓ Build complete"
# Failure
echo "✗ Build failed" >&2
# Summary block
echo "========================================="
echo " Summary"
echo "========================================="
echo " Status: SUCCESS"
echo "========================================="Workflow
- Determine the catalog name and runbook name
- Create the directory:
mkdir -p ~/.dops/catalogs/<catalog>/<name> - Write
runbook.yamlwith the schema above - Write
script.shfollowing the POSIX template chmod +x script.sh- If the catalog is new, register it:
dops catalog add ~/.dops/catalogs/<catalog> - Test: launch
dops, navigate to the runbook, execute it
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
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.

