Skip to content

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: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 area

The 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.

AreaWhat it explainsReads
overviewWhat the plugin is, its terms and how the pieces fit.README.md, skills/runbooks/SKILL.md, CONTEXT.md, templates/readme.md
formatThe runbook file: frontmatter, steps, Expected and the templates.references/format.md, templates/runbook.md, templates/runbook-api.md, templates/placeholder.md
lifecyclePlaceholder, 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
scenariosHow create lists the happy paths, expected errors and edge cases of a flow.skills/scenarios/SKILL.md, instructions/create.md
configrunbooks.config.json, what setup and settings ask, and a UI tests repository.references/config.md, commands/setup.md, commands/settings.md, ADR 0007
runRun modes, step states, reports and check.references/run-modes.md, commands/run.md, instructions/run.md, commands/check.md
scriptsTest 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
coverageHow coverage counts, endpoints by surface, and why mocked runbooks never cover endpoints.references/coverage.md, instructions/coverage.md, ADR 0002, ADR 0004
auditThe audit command and the runbooks a diff affects.instructions/audit.md, commands/list.md
upstreamLive 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
designDesign references and how a run compares a screen with its design.references/config.md, references/run-modes.md, references/format.md
viewportsThe screen sizes a ui runbook runs at.references/config.md, references/run-modes.md
rolesRole 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
contextsContexts and cases, case fixtures and the contexts: commands.references/config.md, references/format.md, references/upstream.md, ADR 0006, commands/contexts/*.md
permissionsThe permission matrix, permissions:manage and roles:generate.references/config.md, commands/permissions/manage.md, instructions/roles/generate.md
modelsThe model each command runs on, sub-agents, --model and escalation.references/agents.md, references/config.md, ADR 0010
commitsWhen and how the plugin commits.references/commits.md
commandsThe 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 as run, or a term of the glossary such as case, 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 uses overview.

How it reads

question

any language

area

--about or picked

files

glossary + area

answer

with sources

help picks the area, reads the glossary and the area's files, then answers with the files it used. Your project's config says which parts apply.
  • 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.json or 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, list or check <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.enabled off, for example, it says the roles behavior does not apply until /runbooks:settings roles turns 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

View source on GitHub