/builder-os:bos
Arguments
- [intent]
- optional. What the user wants, matched against the phase routing table.
- [--phase N]
- force a phase with
bos.mjs jump N --reason "..."(the person's words); back reopens phases, forward records them overridden. - [--initiative slug]
- switch with
bos.mjs resume {slug}, then route; named to the user.
What it does
Resources: The installation root is the parent of this loaded commands/ directory (or the hook’s installation-root line). Resolve skills/, references/ and scripts/ there; project artifacts belong in the working project.
Dispatch: On Claude Code use the namespaced profiles below, foreground (run_in_background: false), and await completion before the next dispatch or gate. On any other host resolve subagent.dispatch: pass the skill and context to an available generic agent, or run inline. Do not assume Claude profiles exist.
Stateful entry point. Reads where the project stands and routes to the next phase, or answers a direct request by dispatching the right phase agent.
REQUIRED BACKGROUND: builder-os skill for the phase map, routing table and dispatch protocol.
Steps
Read
.builderos/WORK.mdand resolve the active initiative per the schema (Active Initiative), then read itsstate.json. If.builderos/is missing, say so in one line and offer/builder-os:bos-init. Do not guess a phase and do not scaffold silently. If aschema: 1file sits at.builderos/state.json, migrate it per the schema's Rules first and say what moved.Read
PRODUCT.md(orPM-CONTEXT.mdas fallback).Resolve capabilities per
references/capability-map.mdand derive the operating mode.Route:
- No argument → report current phase, last gate result, and dispatch the current phase's command
- Argument present → match intent against the phase routing table in
builder-os. If the intent belongs to a phase that is not current, say which phase it belongs to and what the pipeline skips by jumping there, then let the user choose - Intent is new work unrelated to the active initiative ("we should also add X") → offer a new initiative with
/builder-os:bos-init, which pauses the current one; never fold it into the active pipeline - Intent is a standalone analysis question ("what's my churn", "write a PRD") → route per
using-builder-osto the specialist skill, no pipeline involvement. A PRD for an unbuilt feature can also be standalone; preserve the requested scope and destination perreferences/operating-modes.md
Enforce the previous gate. If the previous phase's gate failed, was not overridden and the phase is not
covered, refuse with the failed condition pergate-checks. If phase 1 isanswered, the spike is over: report its verdict and offer to reclassify.Dispatch and await completion using the agent prompt template in
builder-os, including mode, resolved capabilities,PRODUCT.md, and the previous phase artifact.
Output
Before dispatching, one block:
**{Product}** · {initiative} · cycle {C} · phase {N}: {phase name} · mode {full|lite} · track {spike|change|build|feature|product}
Last gate: {passed | passed (overridden) | failed: {condition}}
→ Dispatching {agent}Then the agent's output, then the next command.
commands/bos.mdView on GitHub