BuilderOS

/builder-os:bos-define

Phase 2: turn discovery evidence into an opportunity tree, select one, and define the success metric with a real baseline

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

  1. Check pipeline state. Read the active initiative's state.json (resolved per the schema, Active Initiative). Phase 1 must have passed, been overridden, or be covered (feature track). If its verdict is KILLED, refuse: the pipeline stopped. If it is answered, the spike ended there: report the verdict and offer to reclassify.
  2. Read .builderos/initiatives/{initiative}/BRIEF.md → Discovery and BRIEF.md → Frame. Without discovery evidence there is no tree to build, only a wish list. On the feature track neither exists: PRODUCT.md is the evidence, and the dispatch passes "covered by PRODUCT.md" in their place.
  3. Resolve capabilities per references/capability-map.md and derive the operating mode.
  4. Dispatch:

Dispatch builder-os:opportunity-mapper with this context:

text
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.
  1. 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 with Chosen by: [person, their words quoted].
  2. Verify completion: ## DEFINITION COMPLETE with 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 per gate-checks. A missing artifact or a failed condition is what gets reported, whatever the marker says.
  3. 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.

Generated from commands/bos-define.mdView on GitHub