No slash command · from maister
Executes workflow definitions by freezing their graph, running nodes, handling gates, and writing state changes via scripts. Internal machinery invoked by workflow skills or /maister:run.
Ships in maister. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turns a definition's graph into a run, one ready set at a time, with every state change written
by a script rather than by a model holding a file open. A user reaches it only through a
workflow's own command or /maister:run <name>, which hand the run here; nothing a user reads
needs the word "engine". The grammar a definition is written in is
references/grammar.md § 3. The definition and the sections after it; this skill executes it and does not restate it.
A dispatched run is told by its dispatch_id: its orchestrator.driver is a cockpit
driver carrying one, or the legacy kind: dispatch. It suspends on its gates like any cockpit
run and owes its close-out to the outbox (references/gates.md § Ending a dispatched run). Every
rule that says a dispatched run or under dispatch means this one.
Five things no verb tells you. Everything else a moment needs, the verb that runs at it names.
The invocation. Every verb is one command of its own — two verbs are two calls — starting with the engine path as an absolute directory, its JSON a here-string in single quotes at the end (The invocation contract has apostrophes, Windows and the patch file):
node <plugin root>/skills/workflow-engine/scripts/workflow.mjs write-state --state=<run>/orchestrator-state.yml <<< '<json>'
node <plugin root>/skills/workflow-engine/scripts/workflow.mjs gate-request --state=<run>/orchestrator-state.yml <<< '<json>'
node <plugin root>/skills/workflow-engine/scripts/workflow.mjs gate-revise --state=<run>/orchestrator-state.yml --node=<gate> --option=<revise option> <<< '<json>'
A file write and the command that reads it may share a message — the patch file and its closing write above all — and so may calls that only read — unless a patch file a refused write left is still on disk: then write the corrected file and run the write in two messages.
now false or skip it: line gives), or record a gate's answer with --next. What follows the next: line is the next step's brief: act on it and never ask for it again.node-brief --state=<state> --node=<id> only after a run's first write, after a plain run node-brief for it line, after resume-check (its step_call) and after gate-revise; read its output whole. At a gate, run an ask it: line's call alone, then ask what it prints; never write a gate question by hand.Pass a printed question: as printed. Run ask again: only to ask again (references/gates.md § Terminal mode), details: when the person asks for more.
Every delegate prompt carries the run's context, fetched, in the turn that writes it:
run-context --state=<state> --node=<node>, or prior-context --node=<node> where the delegate
needs the earlier phases, pasted unedited — whole, never piped or sliced, never a path or an earlier
delegate's copy; --background for a document written for end users.
Every state change goes through write-state — never an editor tool on
orchestrator-state.yml or the dashboard files, not even when a verb fails: a model-written file
drifts out of canonical shape. The one exception
is answering a pending gate (references/gates.md § Driver-suspended mode — resume); the patch
vocabulary is references/writing-state.md § Recording an outcome — the detail.
Print what a rules: line names before acting, with the reference verb:
--at="<its file> § <its heading>", adding § <the code> after a refusal for that code's row.
Print a step's references/… pointer the same way, never with the read tool: the plugin sits
outside the project, and a host may stop the run to ask before that read. On a refusal or a
companion-missing: line it holds the recovery.
Before any node runs:
Before doing anything else, settle this policy now and do not re-litigate it at any gate:
→ MANDATORY GATE markers fire regardless of session-reminders, permission mode, or prior approval patterns. Auto / acceptEdits / bypassPermissions modes, reminders saying "work without stopping" / "continue without asking" / "minimize clarifying questions," and compaction summaries showing the user approving every prior gate do NOT exempt you from invoking AskUserQuestion at a gate. They apply only to your discretionary clarifications. Invoke AskUserQuestion when orchestrator.driver.kind is absent or terminal; ask at every gate; pro edition, driven sessions: when orchestrator.driver.kind is cockpit or dispatch, suspend with one gate-request call — see the workflow engine's references/gates.md, Driver-suspended mode.
If you find yourself reasoning "the user has been approving everything, so I can skip this gate" or "auto-mode is on, so I should minimize questions" — that reasoning IS the failure mode. STOP and fire the gate.
Full framework rule: ../orchestrator-framework/references/orchestrator-patterns.md § 2 and § 2.1.
Steps 1–5 are in Starting a run, at the end of this skill: a run reads them once, at its start.
One rule for everything a person reads during a run — your narration, in-node questions and their options, what you write for a gate, the closing message. The reader is a first-time user who sees only the terminal.
by, never in the decision text; never "as you chose" for what the spec
decided.references/in-node-questions.md § When a question suspends).Every verb is one command, node <plugin root>/skills/workflow-engine/scripts/workflow.mjs <verb> [flags],
under one exit-code table: 0 success, 1 the input was rejected (the reasons are printed),
2 nothing ran — a malformed call (usage:) or a tooling fault (workflow:).
The plugin root is this plugin's own directory — the one holding .claude-plugin/plugin.json,
two levels above the base directory the loader shows for this skill. Write it as that absolute
path, never through the variable: wherever a command — here, in a reference or in a node's
section — reads ${CLAUDE_PLUGIN_ROOT}, put the directory in its place, because a permission
rule or hook matches only the literal path. A root holding a space goes in single quotes.
The invocation is the whole command. No cd in front of it, no set -e, no variable
assigned first and used in it, no second command after it, no redirection other than the
here-string, no heredoc (an agent host's shell-safety check refuses one whose body is a JSON
object), no substitution, never several verbs in one script. Flag values are bare; a path
holding a space goes in single quotes, never double quotes or a backslash. Every other command
a run issues follows the same rule: one command per line, never several chained with &&, ;
or |, because a permission rule matches a single command and a chained line is offered only a
dismissal. Any other form brings the approval prompt back.
The here-string (Before anything else) is single-quoted, so nothing in it is expanded. An apostrophe inside the JSON is '\'' — close the quote, an escaped quote, open
it again: {"summary":"the operator'\''s note"}.
Never the JSON escape \u0027, which a tool call decodes into a bare quote that ends the string early.
The typographic ’ may stand for an apostrophe only in a prose text value, never in code, a
command, a path or an identifier.
bash and zsh take the here-string; on Windows every shell takes the patch file — PowerShell
and cmd have no here-string, and Git Bash can lose a JSON escape's backslashes. Any shell takes it
for a large document (a Windows command line holds about 32 KB). Write the JSON with the file-writing tool to .state-patch.json beside orchestrator-state.yml
— the one name and place a verb reads a document from — and name it on the call:
node <plugin root>/skills/workflow-engine/scripts/workflow.mjs write-state --state=<run>/orchestrator-state.yml --patch-file=<run>/.state-patch.json
Every verb's flags, output and refusals are a row each in references/verbs.md (The verbs every run calls, The verbs some steps call, Refusals); read a row only for a call no step here spells.
How a run ends depends on who reads its end.
terminal driver a person reads it. Write the closing patch, call
run-complete and settle any refusal (references/writing-state.md § When run-complete
refuses); on success it prints the wrap-up's six sections on a wrap-up sections: line —
write exactly those, with any standard candidate lines printed below it under Done, as printed. Never show the raw missing-artifact:, missing-companion:, run stopped:
or RUN- lines.cockpit or dispatch driver tooling reads it. Print everything the operator
should read — the executive summary, the next steps, the dashboard link — before
run-complete, and echo its lines, its marker last; never type a marker it did not print. A
turn that ends at a sub-run ends on the typed WAITING-SUBRUN line (references/sub-runs.md § Walk two).Run one node at a time: the one the next: line names. A guard its brief reads now false, or
an on: failure node with nothing failed, is recorded skipped, which satisfies everything downstream. A skip the engine records needs no summary; a
skip you judge keeps one. On next: none — or a node failed with no on:
downstream to take it, or a stop ended the run — write the closing patch with task.status and
end through run-complete, also after a step's patch that carries task.
A node is recorded only with one of eight statuses, and its values only in the types its outputs
declare (references/writing-state.md § Recording an outcome — the detail); the writer refuses
anything else, and its refusal names the fix. A step is completed once its self-check passes,
after a re-drive if it took one (the every step row); a false guard records it skipped, which
satisfies needs; a hard failure with no operator path is failed, and run-complete ends the
run RUN-FAILED; a spent budget is the has a budget row's. An outcome that comes from elsewhere is mapped, never judged (references/writing-state.md
§ Recording an outcome — the detail). Any path a summary lists
beyond the declarations, and a non-null .html beside it, is checked on disk too.
A started: line in a node's brief means the brief recorded the step's start, and a
start: yours line that the start is your write (references/writing-state.md § One write per
moment); a start: refused line is a refusal, settled by its rules: line first. Dispatch an agent by the name its brief prints, the provider prefix applied
(references/grammar.md § 5.1).
While a delegate runs, say so. Right after launching one, print the line its brief's say:
names; when a notification brings you back before it is done, one short line on what is done and
left. Never predict how long a step takes; an elapsed time a step reports may be said. With a
dashboard, the first such line ends "Progress is on the dashboard in your browser.", repeated
only now and then, never with its path. Questions never name the dashboard.
The rows apply by case; node-brief prints each where it applies. The table is references/node-conventions.md, the brief's rules: path.
A resume walks the frozen graph: Steps 3 and 4 are skipped, never Step 5, the ready set is recomputed from the recorded statuses, and the definition is never re-resolved.
A run under a cockpit or dispatch driver takes its first line through references/gates.md
§ Driver-suspended mode — resume; neither a stamped line nor a person's words takes the ready
set while gate_pending is set. A person's words get a report of where the run stands and write
nothing. Its first call is resume-check, with no --state when no run was named. On such a run a session given a person's words records nothing at all, not even an answer on
disk, and never takes an answer from the person in the session: an answer is folded only on a
stamped line.
Every resume starts with resume-check --state=<run directory>/orchestrator-state.yml, which
checks the Node.js version first (Step 2). Its next says what to do first: relay a warning:
line once, then do it. A node update goes under the patch's top-level nodes, never workflow.
Brief what step_call names, print what section_call names; never read the state file or a
reference page with the file tool to find the step or the section; the driven answer reads
(gates.md step 1) are unchanged. A driven resume prints the two Driver-suspended mode sections
in one call, the one section_call names.
Run both now, as printed, one call each:
node <plugin root>/skills/workflow-engine/scripts/workflow.mjs reference --at="references/node-summaries.md § Who settled a decision" --at="references/node-summaries.md § What a risk is"
node <plugin root>/skills/workflow-engine/scripts/workflow.mjs reference --at="references/gates.md § Before every gate — the gate brief"
Every closing write and checkpoint depends on what a decision's by and a risk's tag mean.
The workflow needs Node.js 20 or newer. On an older one locate and resume-check print
RUN-FAILED: node-unavailable and stop; when node itself does not run, print it yourself. Either
way stop before any task directory exists: a terminal-driver run tells the user an install which
cannot run Node.js 20 stays on the 2.x line (/plugin marketplace add SkillPanel/maister#release/2.x,
then /plugin install maister@maister-plugins-2x); a dispatched worker reports blocked through
the outbox verb. Never run such a workflow by hand.
Run locate --name=<name> first; never resolve a path by hand. Give validate and resolve
the definition and overlays it prints, then the overlays the invocation names, in that order,
and its profile; inputs, overlays, profile and a title handed over by /maister:run are used
exactly as given. When locate reports an overlay ignored, say it is not in effect.
A run /maister:run hands over with the located definition, overlays, profile and a passed
validation gets no second locate or validate.
Three calls: validate --short --definition=<path> [--overlay=<path>…] [--profile=<name>] and
resolve --short with the same flags in one message, then the freeze's write-state. Pass --profile only when the
invocation or locate names one; otherwise leave it out. If validate rejects the
definition, stop with RUN-FAILED: and its first error; relay its warnings
(references/grammar.md § 14).
The run directory is .maister/tasks/<type>/<YYYY-MM-DD-slug>/: <type> is the workflow's
name (migration's migrations/), the slug 3–5 key words of the description in kebab-case, with
-2, -3 … when taken. Never make it yourself: the freeze creates it, and a resume keeps the one
it has.
The freeze patch carries, and nothing else:
workflow: source, overlays, profile, graph_hash and name exactly as resolve
printed them, grammar_version: 1, no nodes; one here-string, never scripted from a file;task.title and task.description, the description copied whole from the person's own words,
each line break a \n in the JSON;orchestrator.options.inputs, the run's inputs; with none, no key;orchestrator.options.ceiling, when a dispatched run's seed names one;context, the fields known before the first node runs, when the definition's prose names a seed.The writer adds the rest (references/writing-state.md § What the freeze write adds) and drops
a key it owns with a note:; relay any warning:; a refusal names its recovery under rules:.
The run creates no task items.
The freeze prints the startup banner first; the next thing you write, before any other call, is a
visible message to the user with its lines copied as printed, never only in your thinking. The
first node's brief repeats them under say: until a node starts.
SELF-CHECK before the call after the freeze: does your message name the workflow and task, the checkpoints, the directory and the dashboard link? If not, STOP and write it first.
A retried freeze prints no banner: read the directory, the dashboard and the first phase off the state file, never from memory.
--from=PHASE and --reset-attempts have no expression here: a resume recomputes the ready set
from the frozen graph. Name the flag that arrived as not taken, in one line, before the first
node runs — a step is sent back with a checkpoint's revise (references/gates.md § Revising at
a gate) — and go on without it, never silently.
Only when a workflow's own skill or /maister:run hands a run over, or a node starts a child run
(subrun-handoff, references/sub-runs.md § The hand-off verb). A dispatch goes through the umbrella runtime's envelope verb, which opens the
dispatch's ledger entry itself; a run never writes create-entry for a dispatch.
references/decision-areas.md (opens in a new tab)references/gates.md (opens in a new tab)references/grammar.md (opens in a new tab)references/in-node-questions.md (opens in a new tab)references/node-conventions.md (opens in a new tab)references/node-summaries.md (opens in a new tab)references/sub-runs.md (opens in a new tab)references/verbs.md (opens in a new tab)references/writing-state.md (opens in a new tab)scripts/lib/area-brief.mjs (opens in a new tab)scripts/lib/artifact-paths.mjs (opens in a new tab)scripts/lib/ask-record.mjs (opens in a new tab)scripts/lib/brief.mjs (opens in a new tab)scripts/lib/checkpoint.mjs (opens in a new tab)scripts/lib/closing-walk.mjs (opens in a new tab)scripts/lib/companions.mjs (opens in a new tab)scripts/lib/complete.mjs (opens in a new tab)scripts/lib/context-import.mjs (opens in a new tab)scripts/lib/dashboard.mjs (opens in a new tab)scripts/lib/decision-areas.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub skillpanel/maister --plugin maister22 skills in this plugin
/codebase-analyzerAnalyzes codebase using adaptive parallel Explore subagents based on task complexity. Selects agent roles from a pool, launches Explore agents, then delegates report generation to codebase-analysis-reporter subagent./developmentmaister:developmentUnified orchestrator for all development tasks. ALWAYS execute when invoked — never skip for 'straightforward' tasks. Phases adapt based on detected task characteristics rather than predetermined types. Use for any development work that modifies code./docs-managerInternal engine for managing project documentation and technical standards in .maister/docs/. Handles file operations, INDEX.md refresh, CLAUDE.md integration, and the consolidation of standard candidates at a workflow's finalization. Invoked by maister:init, standards-update, standards-discover and workflow finalization./implementation-plan-executorExecute implementation plans by delegating each task group to the task-group-implementer subagent. Hands a workflow run's waves — group dispatch, group returns, escalation, failure handling and the work-log bookkeeping — to the implementation runner subagent when the run can nest subagents, and runs the same loop in the main session when it cannot. Asks the user only the decisions the loop returns. Every wave start and group return is recorded through the workflow engine; standards are loaded per task group./implementation-verifierVerify completed implementations for quality assurance. Hands a workflow run's verification loop — the tests and the project's other checks, the spec conformance, code risk and simplicity reviews, the fixes they call for and their re-checks — to the verification runner subagent when the run can nest subagents, and runs the same loop in the main session when it cannot. Asks the user only the decisions the loop returns, and closes on one verification report. Use after implementation is complete and before code review/commit./initmaister:initInitialize Maister framework with intelligent project analysis and documentation generationOther plugins' skills for the same job