runbooks / command
Help
Ask anything about the plugin, in any language, and get an answer taken from the docs of the version you have installed.
❯ /runbooks:help [--about area] [\"question\"] [--model <model>]❯ $runbooks:runbooks-help [--about area] [\"question\"] [--model <model>]/runbooks:help answers a question about the plugin. It picks the area of the question, reads that area's files in the installed plugin, and answers from what it read. Every claim comes from a file, and the answer ends with the files and sections it used. It is read-only: it runs no runbook, writes no file and commits nothing.
By default, a question goes to a sub-agent on sonnet, and the main session prints its answer. Listing the areas or explaining one runs in the main session. The help rows of the models table set both, and --model overrides them for one question.
How it works
Three ways to ask
- With no argument, it lists the areas with one line each, and an example.
- With only
--about, it explains the area: what it is for, its terms, how its pieces relate and its commands. - With a question, with or without
--about, it answers the question.
❯ /runbooks:help # list the areas
❯ /runbooks:help --about upstream # explain one area
❯ /runbooks:help --about roles "How do roles work?" # a question in one area
❯ /runbooks:help "Why does my mocked runbook not count as coverage?" # the command picks the areaThe areas
Each area reads the files below, every path under the plugin's folder. references/ is short for skills/runbooks/references/, and instructions/ for skills/runbooks/instructions/, where the procedure of each command that can run in a sub-agent lives from 1.13.0. In a long reference, the command reads the sections the area names first, such as Roles in config.md, then any other section the question reaches.
| Area | What it explains | Reads |
|---|---|---|
overview | What the plugin is, its terms and how the pieces fit. | README.md, skills/runbooks/SKILL.md, CONTEXT.md, templates/readme.md |
format | The runbook file: frontmatter, steps, Expected and the templates. | references/format.md, templates/runbook.md, templates/runbook-api.md, templates/placeholder.md |
lifecycle | Placeholder, draft, active and deprecated, and the commands that move a runbook between them. | templates/readme.md, references/format.md, instructions/map.md, instructions/create.md, instructions/update.md, commands/orchestrator.md |
scenarios | How create lists the happy paths, expected errors and edge cases of a flow. | skills/scenarios/SKILL.md, instructions/create.md |
config | runbooks.config.json, what setup and settings ask, and a UI tests repository. | references/config.md, commands/setup.md, commands/settings.md, ADR 0007 |
run | Run modes, step states, reports and check. | references/run-modes.md, commands/run.md, instructions/run.md, commands/check.md |
scripts | Test scripts, to-test, api runbooks that run through their script, and scripts in a UI tests repository. | instructions/to-test.md, references/format.md, ADR 0001, ADR 0007 |
coverage | How coverage counts, endpoints by surface, and why mocked runbooks never cover endpoints. | references/coverage.md, instructions/coverage.md, ADR 0002, ADR 0004 |
audit | The audit command and the runbooks a diff affects. | instructions/audit.md, commands/list.md |
upstream | Live and mocked upstream, fixtures, the upstream server copy in the project and an API in another repository. | references/upstream.md, ADR 0003, ADR 0004, ADR 0005, ADR 0011 |
design | Design references and how a run compares a screen with its design. | references/config.md, references/run-modes.md, references/format.md |
viewports | The screen sizes a ui runbook runs at. | references/config.md, references/run-modes.md |
roles | Role tracking, outcomes, review marks, coverage by role and the roles: commands. | references/config.md, references/format.md, references/run-modes.md, references/coverage.md, commands/roles/*.md, instructions/roles/generate.md |
contexts | Contexts and cases, case fixtures and the contexts: commands. | references/config.md, references/format.md, references/upstream.md, ADR 0006, commands/contexts/*.md |
permissions | The permission matrix, permissions:manage and roles:generate. | references/config.md, commands/permissions/manage.md, instructions/roles/generate.md |
models | The model each command runs on, sub-agents, --model and escalation. | references/agents.md, references/config.md, ADR 0010 |
commits | When and how the plugin commits. | references/commits.md |
commands | The parameters and opening paragraphs of every command. | commands/*.md |
The pages of this site cover the same ground: roles, contexts, permissions and the references. The command reads them for you and answers the one question you asked.
How it picks the area
- With
--about, it takes that area. A command name such asrun, or a term of the glossary such ascase, maps to the area that holds it. - An unknown name gets the list of areas, the closest first, and the command stops.
- Without
--about, it picks the area from the glossary terms and the commands the question names. When two areas fit, it reads both. When none fits, it usesoverview.
How it reads
question
any language
area
--about or picked
files
glossary + area
answer
with sources
- It always reads
CONTEXT.md, the plugin's glossary: runbook, flow, surface, role, permission, context, case, outcome, review and the other terms. The answer uses these words. - It follows a link or a file name in those files when the question needs it, such as an ADR a reference cites.
- It reads your config when it exists. It reads
roles.jsonor a runbook only when the question is about this project, such as "Which roles do I have?", and then prefers the plugin's script:runbooks.mjs roles,listorcheck <id>.
How it answers
- In the language of the question. Without a question, in the config
language, else English. Glossary terms, frontmatter keys, commands and file names stay as they are. - The answer comes first, in a few sentences.
- Then what you need to act on it: an example in the runbook or config format, taken from the references, and the commands that do the work, with their parameters.
- When your config changes the answer, it says how. With
roles.enabledoff, for example, it says the roles behavior does not apply until/runbooks:settings rolesturns tracking on. - It ends with the files the answer came from, each with its section.
Parameters
Read-only. It answers from the plugin's own files, not from memory, in the language of the question, and ends with the files the answer came from. When the project has a config, the answer says how it applies there, such as role tracking being off.
| Parameter | What it does |
|---|---|
--about <area> |
The area of the question: overview, format, lifecycle, scenarios, config, run, scripts, coverage, audit, upstream, design, viewports, roles, contexts, permissions, models, commits or commands. A command name or a term such as case maps to its area. Without it, the command picks the area from the question. |
"question" |
What you want to know, in any language. Without it, the command explains the area: what it is, its terms and its commands. With neither, it lists the areas. |
--model <m> |
Run this invocation on one model: inline (in the main session), haiku, sonnet, opus or fable. Any value but inline runs the command in a sub-agent on that model. Without it, the command takes its row of the models table in the config: by default help runs inline and help <question> runs on sonnet. On Codex, the values are inline, inherit (a sub-agent on the session's model) or a model ID the session supports, and the table is codex.models, where every row that is not inline defaults to inherit. See models. |
/runbooks:help # list the areas
/runbooks:help --about upstream # explain one area
/runbooks:help --about roles "How do roles work?" # a question in one area
/runbooks:help "Why does my mocked runbook not count as coverage?" # the command picks the area
/runbooks:help --model sonnet # in a sonnet sub-agent