skills/runbook/SKILL.md
Runs in two modes. Seed mode when the user asks to "create a runbook", "set up an autonomous loop", "start a hardening pass", "run a refactoring loop", "focus on X and loop", "set up a cron loop", mentions FOCUS.md, or wants to decompose work into a steerable autonomous workflow — it aligns on intent and writes the durable state files. Execute mode when the user asks to "run", "continue", or "resume a runbook", to invoke execute mode against a directory, or when the named directory already holds FOCUS.md — the current session becomes the orchestrator that drives the loop, delegating all implementation to subagents. Triggers: create a runbook, autonomous loop, hardening pass, refactoring loop, cron loop, run the runbook, continue the runbook, resume the runbook, execute mode against a directory, FOCUS.md.
npx skillsauth add synapseradio/ai-skills runbookInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A runbook decomposes work into a steerable autonomous loop and then runs it. Seeding facilitates an alignment conversation and writes the durable state that encodes intent. Executing turns the current session into the orchestrator that drives the loop from that state.
Two modes share this skill. Route to one before doing anything else.
Routing is layered. Apply the explicit signal first; fall back to artifact presence only when no explicit signal fires.
| Signal | Mode | |--------|------| | "execute mode against a directory", "run/continue/resume the runbook" | Execute | | "create a runbook", "set up an autonomous loop", "start a hardening pass" | Seed | | No explicit signal, FOCUS.md present in the target directory | Execute | | No explicit signal, FOCUS.md absent | Seed |
The target directory is the directory the user names. If the user names no directory, it is the current working directory.
Two ambiguity guards override the table. If artifacts are already present but the user asks to redesign the runbook, confirm before overwriting anything — do not silently seed over existing state. If the user asks to execute but no artifacts are present, there is nothing to run; offer seed mode instead.
Load references only when the current phase needs them. Each phase loads only its own file.
| Phase | Load |
|-------|------|
| Alignment | references/alignment-guide.md |
| Gate check | references/checklist.md |
| Seeding | references/seeding-guide.md |
| Execute | references/execution-guide.md |
Load references/alignment-guide.md and follow its protocol.
The alignment conversation surfaces seven elements:
The alignment conversation also surfaces behavioral exclusions (no-gos) and risks as part of the scope and decomposition discussion. These are not separate elements — they emerge naturally from probing scope boundaries and hidden risks.
Use inline visualizations, scope diagrams, and AskUserQuestion for structured choices. Decompose vague intent into specific, testable goals.
Most work is a tight loop: one lens, one scope, grind until converged. This is the default.
Recursive decomposition is opt-in, for work that has independent sub-problems benefiting from separate lenses. When selected, the parent FOCUS.md seeds child FOCUS.md files, each scoped tighter. Children report outcomes upward via LEARNINGS.md. The parent aggregates.
Only propose recursive mode when the problem's structure demands it.
Apply all three, in order:
references/checklist.md. Validate every gate.
Present pass/fail to the user.Load references/seeding-guide.md.
Before entering plan mode, ask the user for two things:
Enter plan mode. Write the plan file following the structure in
references/seeding-guide.md. The plan writes only the three durable
artifacts — no loop prompt. The plan file contains:
| Section | Content |
|---------|---------|
| Context | Why this loop exists — motivation and intended outcome |
| FOCUS.md → path | Complete FOCUS.md with all sections populated, including a Route: line |
| TASKS.md → path | Empty board skeleton |
| LEARNINGS.md → path | Empty structured memory |
| Execution & Deployment | One-time wiring: the chosen route, and the schedule target if unattended |
Exit plan mode for user review.
Nothing from the alignment conversation survives as conversational residue in the plan. The plan reads as if written by someone who already knew the requirements.
Precondition: exactly one FOCUS.md in the target directory. A parent FOCUS.md
that carries a ## Children table is a coordination document, not a runnable
loop — list its children and ask which one to run.
Load references/execution-guide.md and follow its protocol. The
orchestrator never implements directly. All implementation, discovery, and
side-effect work is delegated to subagents. If the environment cannot
delegate to subagents, stop and tell the user — never fall back to
implementing the work yourself.
Read the route from FOCUS.md's Route: line. If the line is absent, treat
the route as attended. Keep each round cheap: re-read TASKS.md and the
LEARNINGS.md Summary section only, per round.
references/alignment-guide.md — Conversation protocol for Phase 1:
decomposition techniques, question patterns, visualization approachesreferences/checklist.md — Structured gate validating alignment
completeness before seedingreferences/seeding-guide.md — Artifact templates and production
instructions for FOCUS.md, TASKS.md, LEARNINGS.mdreferences/execution-guide.md — The execute-mode protocol: round
lifecycle, delegation briefs, the placement framework, and convergencedata-ai
Locate where a small change shifts the whole system
tools
Surface unstated assumptions at multiple levels and rank them
data-ai
Assess how well evidence supports claims
testing
Spot logical errors in reasoning