/builder-os:bos-define
- Dispatches
- opportunity-mapper
Arguments
- [--tree-only]
- Build and size the tree, stop before selection.
- [--metric-only]
- Define the success metric against an already-selected opportunity.
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. Load opportunity-mapping; qualify skill names with builder-os: on Claude.
Dispatch the builder-os:opportunity-mapper agent to run BuilderOS phase 2.
Steps
- Check pipeline state. Read the active initiative's
state.json(resolved per the schema, Active Initiative). Phase 1 must have passed, been overridden, or becovered(feature track). If its verdict isKILLED, refuse: the pipeline stopped. If it isanswered, the spike ended there: report the verdict and offer to reclassify. - Read
.builderos/initiatives/{initiative}/BRIEF.md→ Discovery andBRIEF.md→ Frame. Without discovery evidence there is no tree to build, only a wish list. On the feature track neither exists:PRODUCT.mdis the evidence, and the dispatch passes "covered by PRODUCT.md" in their place. - Resolve capabilities per
references/capability-map.mdand derive the operating mode. - Dispatch:
Dispatch builder-os:opportunity-mapper with this context:
Operating mode: [detected mode]
Resolved capabilities: [per references/capability-map.md, or 'none beyond files']
Pipeline state: initiative [slug], phase 2, cycle [C], mode [full|lite], track [spike|change|build|feature|product]
PRODUCT.md:
[content]
BRIEF.md → Frame:
[content]
BRIEF.md → Discovery:
[content]
User request:
[what the user asked]
Write .builderos/initiatives/{initiative}/BRIEF.md → Definition and run gate 2 before declaring completion.- The person chooses the opportunity and its target (2.8): the dispatch returns its round instead of a
**Chosen by:**. Ask it, then dispatch again withChosen by: [person, their words quoted]. - Verify completion:
## DEFINITION COMPLETEwith a gate 2 verdict. The marker is the agent's claim, not the evidence: re-read the artifact it wrote and run gate 2 on it yourself pergate-checks. A missing artifact or a failed condition is what gets reported, whatever the marker says. - Present the tree, the selection with its rejections, and the success metric.
Notes
Gate 2.4 rejects an estimated baseline. If the product is uninstrumented, the honest output is an unknown baseline plus an instrumentation requirement carried into phase 4. Zero needs evidence appropriate to the metric, including why it is zero. Missing data stays unknown; a plausible-sounding guess does not pass.
commands/bos-define.mdView on GitHub