Build Right Preflight
Use this skill to prepare a project before repetitive AI execution begins.
Core rule:
AI drafts the map.
Founder validates the terrain.
Evidence upgrades assumptions into truth.
Only then AI executes.
Required Reading
- Always read
references/workflow.md before acting.
- Read
references/founder-gates.md before asking founder questions,
deciding readiness, or advancing past a stop/ask gate.
- Read
references/research-and-delegation.md only when web research,
public-evidence claims, existing-project inventory, conflict review, or
subagent delegation triggers apply.
- Read
references/artifact-contract.md before creating or updating docs or
tasks.
- Read
references/domain-language.md when overloaded terms, aliases, multiple
actors, or missing domain expertise affect requirements.
- Read
references/prototype-routing.md when a behavioral or visual question
can be answered empirically before planning.
- Read
../build-right-engineering-principles/references/principles.md when
creating or changing architecture boundaries, execution rules, package
ownership, provider boundaries, generated-code rules, or enforceable
engineering policy.
- Use files in
assets/templates/ as starting points when creating artifacts.
- Use bundled
scripts/preflight-check.ts for deterministic inventory,
readiness signals, and one preflight decision. Treat script output as input
to judgment, not authority.
- Use bundled
scripts/ensure-openspec.ts after repository inventory. This is
Build Right's idempotent managed planning setup; do not ask the user to
install, initialize, configure, or invoke the planning provider.
- Invoke every managed helper used as evidence as its own direct Bun shell
command. Do not chain it with
&&, ;, pipes, redirects, or trailing
commands; the native evidence gate binds success to that isolated invocation.
Operating Mode
Inspect the project first.
Classify it as blank/new or existing.
Classify source mode as founder-fed, web-assisted, or
public-first-prototype.
Run the read-only preflight helper when available:
bun <skill-path>/scripts/preflight-check.ts --cwd <project> --mode all --format markdown
Then run managed planning setup before artifact creation or readiness:
bun <skill-path>/scripts/ensure-openspec.ts --cwd <project> --format markdown
Stop fail-closed on provider/runtime, compatibility, or setup failure.
Report the helper findings before writing:
Preflight decision: <decision>
Confidence: <confidence>
Project type: <blank/new | existing>
Next action: <next action>
Missing artifacts: <paths or none>
Readiness warnings: <warnings or none>
Founder input gaps: <gaps or none>
Reconcile the helper decision before continuing:
delegate-inventory: run or prompt an existing-project inventory review.
ask-founder: ask the smallest useful founder-question batch.
run-research: run bounded public research and record public evidence.
write-artifacts: create or update missing canonical docs.
create-sprint0: create Sprint 0 and the first bounded executable task.
ready-for-execution: prepare handoff to execution.
blocked: record the blocker and stop or ask.
Announce a concise file plan:
Create:
- <path> - <purpose>
Update:
- <path> - <purpose>
Leave untouched:
- <path> - <reason>
Needs user input:
- <question or blocker>
In interactive runs, ask a focused founder-question batch before treating
founder intent, customer, positioning, MVP, or product promise as captured.
If those answers are already explicit in the prompt or repo docs, record the
evidence path instead of asking again.
Look up repository and public facts directly. Ask founders for decisions,
not discoverable facts. When missing knowledge belongs to a domain expert,
create a bounded questionnaire instead of inventing an answer.
Create or update CONTEXT.md only when overloaded terms, important aliases,
or multiple actors/concepts materially affect requirements. Keep it
implementation-free and optional.
Route empirically answerable behavioral or visual uncertainty to
$build-right-prototype. Record the result as prototype evidence or a
prototype-assumption, never customer validation.
Create or update docs and task files by default after the file plan.
Stop before writing only when the user requested planning-only mode, a write
would overwrite substantial ambiguous content, project state is too unclear
for a safe edit, or the target belongs to an unrelated generated workflow.
Ask founder questions in small batches. Do not ask for everything at once.
If the user does not answer, continue only with repo-evidence inventory and
mark founder-owned claims as blocked or needing founder validation.
If founder context is thin and fast prototyping is allowed, use bounded web
research to fill gaps and mark those claims as prototype-assumption or
public-evidence-backed.
Use subagents when a required delegation trigger applies and subagent tools
are available. If a trigger applies but subagents are unavailable or the
user forbids them, record the skipped review and reduce confidence.
Mark unsupported claims as assumptions. Do not invent product truth.
Prepare the first executable task, but do not complete it unless the user
explicitly asks to continue into execution.
For an existing project whose completed baseline and blueprint explicitly
route next to build-right-feature-planning, preserve that handoff instead
of inventing a duplicate non-managed execution task.
Run the preflight helper again after artifact creation when available, then
reconcile its warnings against the readiness gate.
Report the helper decision again before claiming readiness.
End with an explicit readiness result. If founder input, external evidence,
required research, or required review is missing, stop at the gate instead
of advancing as if ready.
Project Classification
Treat a project as blank/new when it lacks most product docs, task trackers, and
authority docs. A scaffolded codebase with no product truth still counts as
pre-execution blank.
Treat a project as existing when it has meaningful docs, code structure, task
tracking, release process, or prior product decisions. Preserve existing
structure and create a source index before filling gaps.
Stop States
Use one of these closeout states:
Go for prototype
Go for Sprint 0
No-go for product features
Needs founder/customer validation before product commitment
First blocker: <task path>
First executable AI task: <task path>
Automatic Action Boundary
Never automatically commit, push, merge, publish, deploy, or abort or resolve
an existing Git operation. Perform those actions only when the user explicitly
authorizes the exact action and target.
User-Visible Status Badge
End every final response with exactly one status badge block:
🟢 [GREEN] Status: ALL GREEN
Decision: <decision/result>
Next action: <next action or none>
Needs user input: <none | concise ask>
Blocked by: <none | blocker>
Use this status map:
🟢 [GREEN] Status: ALL GREEN for ready-for-execution,
Go for Sprint 0, Go for prototype, or first executable task ready.
🟡 [YELLOW] Status: NEEDS INPUT for ask-founder or
Needs founder/customer validation before product commitment.
🟠 [ORANGE] Status: NEEDS WORK for delegate-inventory,
run-research, write-artifacts, or create-sprint0.
🔵 [BLUE] Status: WAITING EXTERNAL for missing external proof,
publishing, indexing, credentials, paid services, production access, or
third-party state.
🔴 [RED] Status: BLOCKED for blocked, No-go for product features, open conflicts, failed verification, stale/source mismatch, or
invalid state.
Do not claim product-feature readiness until product truth, MVP scope, evidence,
operating rules, and at least one bounded executable task exist.
1---2name: build-right-preflight3description: Guide founder/product pre-execution setup before AI implementation. Use when the user invokes /build-right-preflight, wants to bootstrap a blank or existing project, capture founder intent, validate assumptions, create product truth, define MVP scope, create operating docs, create Sprint 0 tasks, or prepare the first executable AI task.4---56# Build Right Preflight78Use this skill to prepare a project before repetitive AI execution begins.910Core rule:1112```text13AI drafts the map.14Founder validates the terrain.15Evidence upgrades assumptions into truth.16Only then AI executes.17```1819## Required Reading2021- Always read `references/workflow.md` before acting.22- Read `references/founder-gates.md` before asking founder questions,23 deciding readiness, or advancing past a stop/ask gate.24- Read `references/research-and-delegation.md` only when web research,25 public-evidence claims, existing-project inventory, conflict review, or26 subagent delegation triggers apply.27- Read `references/artifact-contract.md` before creating or updating docs or28 tasks.29- Read `references/domain-language.md` when overloaded terms, aliases, multiple30 actors, or missing domain expertise affect requirements.31- Read `references/prototype-routing.md` when a behavioral or visual question32 can be answered empirically before planning.33- Read `../build-right-engineering-principles/references/principles.md` when34 creating or changing architecture boundaries, execution rules, package35 ownership, provider boundaries, generated-code rules, or enforceable36 engineering policy.37- Use files in `assets/templates/` as starting points when creating artifacts.38- Use bundled `scripts/preflight-check.ts` for deterministic inventory,39 readiness signals, and one preflight decision. Treat script output as input40 to judgment, not authority.41- Use bundled `scripts/ensure-openspec.ts` after repository inventory. This is42 Build Right's idempotent managed planning setup; do not ask the user to43 install, initialize, configure, or invoke the planning provider.44- Invoke every managed helper used as evidence as its own direct Bun shell45 command. Do not chain it with `&&`, `;`, pipes, redirects, or trailing46 commands; the native evidence gate binds success to that isolated invocation.4748## Operating Mode49501. Inspect the project first.512. Classify it as blank/new or existing.523. Classify source mode as `founder-fed`, `web-assisted`, or53 `public-first-prototype`.544. Run the read-only preflight helper when available:5556 ```sh57 bun <skill-path>/scripts/preflight-check.ts --cwd <project> --mode all --format markdown58 ```5960 Then run managed planning setup before artifact creation or readiness:6162 ```sh63 bun <skill-path>/scripts/ensure-openspec.ts --cwd <project> --format markdown64 ```6566 Stop fail-closed on provider/runtime, compatibility, or setup failure.67685. Report the helper findings before writing:6970 ```text71 Preflight decision: <decision>72 Confidence: <confidence>73 Project type: <blank/new | existing>74 Next action: <next action>75 Missing artifacts: <paths or none>76 Readiness warnings: <warnings or none>77 Founder input gaps: <gaps or none>78 ```79806. Reconcile the helper decision before continuing:8182 - `delegate-inventory`: run or prompt an existing-project inventory review.83 - `ask-founder`: ask the smallest useful founder-question batch.84 - `run-research`: run bounded public research and record public evidence.85 - `write-artifacts`: create or update missing canonical docs.86 - `create-sprint0`: create Sprint 0 and the first bounded executable task.87 - `ready-for-execution`: prepare handoff to execution.88 - `blocked`: record the blocker and stop or ask.89907. Announce a concise file plan:9192 ```text93 Create:94 - <path> - <purpose>9596 Update:97 - <path> - <purpose>9899 Leave untouched:100 - <path> - <reason>101102 Needs user input:103 - <question or blocker>104 ```1051068. In interactive runs, ask a focused founder-question batch before treating107 founder intent, customer, positioning, MVP, or product promise as captured.108 If those answers are already explicit in the prompt or repo docs, record the109 evidence path instead of asking again.1109. Look up repository and public facts directly. Ask founders for decisions,111 not discoverable facts. When missing knowledge belongs to a domain expert,112 create a bounded questionnaire instead of inventing an answer.11310. Create or update `CONTEXT.md` only when overloaded terms, important aliases,114 or multiple actors/concepts materially affect requirements. Keep it115 implementation-free and optional.11611. Route empirically answerable behavioral or visual uncertainty to117 `$build-right-prototype`. Record the result as prototype evidence or a118 `prototype-assumption`, never customer validation.11912. Create or update docs and task files by default after the file plan.12013. Stop before writing only when the user requested planning-only mode, a write121 would overwrite substantial ambiguous content, project state is too unclear122 for a safe edit, or the target belongs to an unrelated generated workflow.12314. Ask founder questions in small batches. Do not ask for everything at once.124 If the user does not answer, continue only with repo-evidence inventory and125 mark founder-owned claims as blocked or needing founder validation.12615. If founder context is thin and fast prototyping is allowed, use bounded web127 research to fill gaps and mark those claims as `prototype-assumption` or128 `public-evidence-backed`.12916. Use subagents when a required delegation trigger applies and subagent tools130 are available. If a trigger applies but subagents are unavailable or the131 user forbids them, record the skipped review and reduce confidence.13217. Mark unsupported claims as assumptions. Do not invent product truth.13318. Prepare the first executable task, but do not complete it unless the user134 explicitly asks to continue into execution.135 For an existing project whose completed baseline and blueprint explicitly136 route next to `build-right-feature-planning`, preserve that handoff instead137 of inventing a duplicate non-managed execution task.13819. Run the preflight helper again after artifact creation when available, then139 reconcile its warnings against the readiness gate.14020. Report the helper decision again before claiming readiness.14121. End with an explicit readiness result. If founder input, external evidence,142 required research, or required review is missing, stop at the gate instead143 of advancing as if ready.144145## Project Classification146147Treat a project as blank/new when it lacks most product docs, task trackers, and148authority docs. A scaffolded codebase with no product truth still counts as149pre-execution blank.150151Treat a project as existing when it has meaningful docs, code structure, task152tracking, release process, or prior product decisions. Preserve existing153structure and create a source index before filling gaps.154155## Stop States156157Use one of these closeout states:158159```text160Go for prototype161Go for Sprint 0162No-go for product features163Needs founder/customer validation before product commitment164First blocker: <task path>165First executable AI task: <task path>166```167168## Automatic Action Boundary169170Never automatically commit, push, merge, publish, deploy, or abort or resolve171an existing Git operation. Perform those actions only when the user explicitly172authorizes the exact action and target.173174## User-Visible Status Badge175176End every final response with exactly one status badge block:177178```text179🟢 [GREEN] Status: ALL GREEN180Decision: <decision/result>181Next action: <next action or none>182Needs user input: <none | concise ask>183Blocked by: <none | blocker>184```185186Use this status map:187188- `🟢 [GREEN] Status: ALL GREEN` for `ready-for-execution`,189 `Go for Sprint 0`, `Go for prototype`, or first executable task ready.190- `🟡 [YELLOW] Status: NEEDS INPUT` for `ask-founder` or191 `Needs founder/customer validation before product commitment`.192- `🟠 [ORANGE] Status: NEEDS WORK` for `delegate-inventory`,193 `run-research`, `write-artifacts`, or `create-sprint0`.194- `🔵 [BLUE] Status: WAITING EXTERNAL` for missing external proof,195 publishing, indexing, credentials, paid services, production access, or196 third-party state.197- `🔴 [RED] Status: BLOCKED` for `blocked`, `No-go for product198 features`, open conflicts, failed verification, stale/source mismatch, or199 invalid state.200201Do not claim product-feature readiness until product truth, MVP scope, evidence,202operating rules, and at least one bounded executable task exist.