Commission a workflow¶
/spacedock:commission turns a description of the work you want tracked into a runnable workflow: a directory of markdown entities, a README that is the workflow's living spec, and a first officer ready to dispatch an ensign for each seed entity. You answer a short interactive design pass, the skill generates the files, and it launches a pilot run as the first officer.
Invoke it from a session started with spacedock claude. You can pass the mission inline:
Text after the command name is taken as the workflow mission and presented for confirmation rather than asked from scratch. With no argument, the skill greets you and asks.
The four things you name¶
The design pass collects four decisions. Everything else (the directory path, the entity identity scheme, the rejection routing) is derived from these and shown back to you for confirmation before any file is written.
-
The mission and what each entity is. The first question asks what the workflow is for and what each work item represents. From the entity description the skill derives the entity label used throughout the generated files: "a design idea" becomes label
idea, pluralideas, typedesign_idea. An entity is one work item, a markdown file that moves through the stages. -
The stages. The skill detects the workflow's shape from your mission (shipping code, testing a hypothesis, or iterating on an artifact) and proposes a stage list for you to confirm, modify, add to, or trim. Stage names describe the bucket an entity is sitting in: activity-flavored (
implementation,review,validation) or state-flavored (proposed,published,accepted). The skill pushes back on pleonastic names:awaiting_validationreads as "the entity is in awaiting_validation," so it suggestsvalidationinstead.doneis the universal terminal and stays as-is. -
The gated stages. A gate is a stage where the workflow pauses for your decision before an entity advances. By default the skill places one gate before the terminal stage. For each gate it also derives a rejection flow, the earlier stage an entity bounces back to when you reject, defaulting to the stage immediately before the gate. You confirm both in the design summary, stated in plain language ("If you reject at
review, it goes back todraftfor revision"). -
The per-stage rules. Each stage in the generated README carries three bullets that tell a dispatched ensign what "good" means for that stage:
Outputs(what the worker produces),Good(your quality bar), andBad(anti-patterns to avoid). The skill drafts these from the mission, but they are starting prose, not commitments. They are the rules every dispatched agent works from, so tightening them before the first dispatch is the single highest-leverage edit you can make.
You also choose the entity ID style: sd-b32 (recommended when multiple people or agents create entities across branches or worktrees), sequential (single-writer or numeric-continuity workflows), or slug (the filename is the identity). See the frontmatter contract for what each style stores.
What gets generated¶
After you accept the design, the skill writes everything into docs/{mission-slug}/:
README.md: the mission, the schema, a per-stage section for every stage (with theOutputs/Good/Badbullets), and a copy-paste entity template.- One file per seed entity at
docs/{mission-slug}/{slug}.md, each with valid YAML frontmatter and the description you gave. _mods/pr-merge.md, generated only when a stage modifies the repo (a worktree stage) and you accept thepr-mergemod, which tracks PR state on the entity'sprfield instead of modeling merge as its own stage.
If any stage writes code or produces artifacts beyond the entity file, that stage is marked worktree: true so each entity gets an isolated branch and the main checkout stays clean.
Tighten the README before the first dispatch¶
The README is the workflow's living spec. Before launching, the skill reminds you that the auto-generated per-stage bullets are best-guesses and prompts you to tighten them. You have two ways to do it:
- Open
docs/{mission-slug}/README.mdand edit the bullets under each### {stage}heading directly. - Type
review stagesto have the skill walk you through each stage one at a time, flag the bullets that read as generic, and apply your amendments inline.
Editing here costs minutes; un-editing after agents have been dispatched against vague bullets costs more.
What the first officer does next¶
Commission does not stop at generating files. It assumes the first-officer role itself and runs the pilot. There is no separate launch step for the first run.
- It loads the first officer's operating contract and reads the workflow README you just generated.
- It runs
spacedock status --bootto read the workflow's current state. - It probes for the team-mode tools and dispatches an ensign for each seed entity that is ready to advance, processing them through the stages.
- When the workflow goes idle or reaches a gate, it reports the pilot results: which entities moved, which stages they passed through, and any gate waiting on your decision.
To run the workflow in any later session, launch the first officer again:
It reads the workflow state, picks up where the last session left off, and dispatches agents for any entity ready for its next stage. Day-to-day operation (seeing what is ready, dispatching, and handling gate decisions) is covered in Operating a workflow.