/orch:orch-setupfrom orch
Drives the step-loop protocol for orch init/configure/configure-local setup interviews. Batches questions, handles pagination, and maintains answer state across steps.
Ships in orch. 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.
This skill drives any of the three orch <cmd> --step interviews. All
three speak the same stateless step-loop protocol
(internal/question): you resubmit everything known so far on every
step, and the core tells you what to do next.
Maintain one AnswerSet across the whole interview:
{"schema_version": 2, "answers": {}}
Question wire schema_version is closed at 2 for both AnswerSet and
Document; reject any other Document before reading kind, questions, or
pagination. A rejected AnswerSet means the setup skill and orch binary are
out of date with each other; update the older side before retrying.
Resubmit it in full on every step — the core holds no session of its own. Never send a partial or incremental update.
AnswerSet to a scratch file (as
orch-delivery does: OS temp, outside the repo).orch <cmd> --step < <scratch-file> and parse the
question.Document on stdout.Document.kind:kind: "questions"Document.questions carries 1–4 independent Questions. If none carries
pagination, present them as one batched AskUserQuestion call. If any
question carries pagination, handle the document in order: ordinary questions
use one-question calls and each pagination page uses one call.
For a question without pagination, use its header and prompt as the
AskUserQuestion header/prompt, and list its options[] with each
option's label for display and description for detail. If an
option has recommended: true, say so in the description text (there
is no separate "recommended" UI affordance to rely on — put it in
words). If the question has a default, mention it in the description
of the matching option too.
When the human answers that ordinary question, record answers[question.id] = option.value
— the option's value, never its label. The label is display
text only; the value is what the core expects back.
When pagination is present, require pagination.hosts to contain claude,
start at pagination.pages[0], and present that page's 2–3 options exactly as
emitted. Use the parent question's header/prompt and mention the page's
index/total in the prompt. Never synthesize, split, merge, reorder, or
replace pages with a request to type an identifier. A page option with value
is a real answer: record it and finish the question. An option with action is
navigation only: next and previous move one page, while cancel stops the
interview without recording an answer. Never submit an action as
answers[question.id].
If a non-paginated question has kind: "text", or free_text: true on a select
question, it never carries meaningful options for that path:
AskUserQuestion's built-in "Other" entry is how the human supplies
free text. Whatever the human types into "Other" is recorded verbatim
as answers[question.id] — do not transform or re-validate it
yourself.
Once every question in this step's batch is answered, return to step 1
with the updated AnswerSet.
protected.paths (asked by orch init always, and by orch configure when
pick.protected is answered yes) is the one question you do not leave to
the human to type. Do not present it as an ordinary free-text question. Read
PROTECTED_PATHS_SURVEY.md in this skill's directory and:
orch-scout subagents,
use them per that methodology. Otherwise perform the same survey as the
Architect. The Architect runs tracking checks and Git commit counts in
either case.answers["protected.paths"] as a string containing JSON array text
of the approved {"path", "reason"} objects, "[]" for an approved empty
list, or "defer" when the user defers. Never put a JSON array directly in
AnswerSet.answers. The core rejects a malformed answer; fix it and
resubmit, do not guess.Before methodology 2 these steps required scouts, summarized only reasons and evidence, and called the answer an array. Now delegation follows the user's authorization, the full survey evidence is presented, and the array is encoded inside the required answer string.
pick.protected defaults to yes when the committed config has no protected
list or one approved under a different survey methodology version, and to no
otherwise; mention that default when you present it. A defer in
orch configure leaves the committed list unchanged.
kind: "summary"Show, in full:
summary.config_toml — the resulting configuration.summary.config_diff — only present for orch configure; the
unified diff between the committed config.toml and this proposal.summary.files[]: path, whether it existed, and
its diff (or, if no diff was supplied, its new_content).[protected] section, a list of every entry
in it, each with its path and reason, so the human approves them here.summary.gitignore_lines, if any.summary.conflicts, if any.The approval question for this summary rides inside Document.questions
(handled the same way as above) unless summary.blockers is
non-empty.
summary.blockersReport every blocker to the human and stop — do not attempt to resolve a blocker yourself, and do not proceed to the terminal form while any blocker remains.
kind: "complete"The interview is answered and approved. Run the terminal form for this
command (see table below) with the final AnswerSet on stdin, and
report its result.
kind: "aborted"The human chose not to proceed. Report that and stop; nothing is written.
| Command | Terminal form | Where it lands |
|---|---|---|
orch init | orch init --bootstrap | Opens a PR a human merges on GitHub. |
orch configure | orch configure --deliver | Opens a PR a human merges on GitHub. |
orch configure-local | orch configure-local --apply | Writes config.local.toml locally — no PR, nothing to merge. |
Say plainly, when reaching a terminal form for init or configure,
that the change lands as a PR the human still has to merge on GitHub —
running the terminal form is not the same as the change taking effect.
orch init, orch configure, and orch configure-local, run with no
flags, are each a human report — a plain-text detection/status
summary. Run this bare form first, before starting the step loop, so
the human sees the current state before answering anything. It never
reads stdin; do not pipe an AnswerSet into it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kninetimmy/orch --plugin orch-claude3 skills in this plugin
/orch-architectStanding posture for operating an Orch-managed repository from Claude Code. Applies whenever a `.orchestrator/` directory exists at or above the working directory. Load this skill before planning any change, and before any request that would modify a tracked file — even a small one. Covers reading machine-truth run state, memhub discipline, and when to hand off to orch-delivery./orch-deliveryDrives an Orch Delivery run from Claude Code: plan construction, the plan gate, activation, and the per-issue dispatch/review/merge loop. Load this after orch-architect, once a mutating request has been read-only investigated and a plan is ready to propose. References the `orch` binary's `orch run <verb>` engine for every decision; never reimplements its policy.Other plugins' skills for the same job