build-right-preflight
Skill4 starsChanged 4 months agoMITView on GitHub
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.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- build-right-engineering-principlesSkill
- build-right-executionSkill
- build-right-feature-planningSkill
- build-right-prototypeSkill
- build-right-wayfinderSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. About 0 are common, 17 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈17
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill to prepare a project before repetitive AI execution begins.
- Very specific: line 21
Always read references/workflow.md before acting.
- Very specific: line 22
Read references/founder-gates.md before asking founder questions, deciding readiness, or advancing past a stop/ask gate.
- Very specific: line 24
Read references/research-and-delegation.md only when web research, public-evidence claims, existing-project inventory, conflict review, or …
- Very specific: line 27
Read references/artifact-contract.md before creating or updating docs or tasks.
- Very specific: line 29
Read references/domain-language.md when overloaded terms, aliases, multiple actors, or missing domain expertise affect requirements.
- Very specific: line 31
Read references/prototype-routing.md when a behavioral or visual question can be answered empirically before planning.
- Very specific: line 37
Use files in assets/templates/ as starting points when creating artifacts.
- Very specific: line 38
Use bundled scripts/preflight-check.ts for deterministic inventory, readiness signals, and one preflight decision.
- Very specific: line 41
Use bundled scripts/ensure-openspec.ts after repository inventory.
- Distinctive: line 54
Run the read-only preflight helper when available:
- Distinctive: line 66
Stop fail-closed on provider/runtime, compatibility, or setup failure.
- Distinctive: line 108
If those answers are already explicit in the prompt or repo docs, record the evidence path instead of asking again.
- Distinctive: line 110
Look up repository and public facts directly.
- Very specific: line 113
Create or update CONTEXT.md only when overloaded terms, important aliases, or multiple actors/concepts materially affect requirements.
- Distinctive: line 119
Create or update docs and task files by default after the file plan.
- Distinctive: line 120
Stop before writing only when the user requested planning-only mode, a write would overwrite substantial ambiguous content, project state …
- Distinctive: line 123
Ask founder questions in small batches.
- Distinctive: line 124
If the user does not answer, continue only with repo-evidence inventory and mark founder-owned claims as blocked or needing founder …
- Very specific: line 126
If founder context is thin and fast prototyping is allowed, use bounded web research to fill gaps and mark those claims as …
- Distinctive: line 129
Use subagents when a required delegation trigger applies and subagent tools are available.
- Distinctive: line 138
Run the preflight helper again after artifact creation when available, then reconcile its warnings against the readiness gate.
- Distinctive: line 147
Treat a project as blank/new when it lacks most product docs, task trackers, and authority docs.
- Distinctive: line 151
Treat a project as existing when it has meaningful docs, code structure, task tracking, release process, or prior product decisions.
- Distinctive: line 157
Use one of these closeout states:
- Distinctive: line 170
Never automatically commit, push, merge, publish, deploy, or abort or resolve an existing Git operation.
- Distinctive: line 186
Use this status map:
- Distinctive: line 201
Do not claim product-feature readiness until product truth, MVP scope, evidence, operating rules, and at least one bounded executable task …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.mdbefore acting. - Read
references/founder-gates.mdbefore asking founder questions, deciding readiness, or advancing past a stop/ask gate. - Read
references/research-and-delegation.mdonly when web research, public-evidence claims, existing-project inventory, conflict review, or subagent delegation triggers apply. - Read
references/artifact-contract.mdbefore creating or updating docs or tasks. - Read
references/domain-language.mdwhen overloaded terms, aliases, multiple actors, or missing domain expertise affect requirements. - Read
references/prototype-routing.mdwhen a behavioral or visual question can be answered empirically before planning. - Read
../build-right-engineering-principles/references/principles.mdwhen 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.tsfor deterministic inventory, readiness signals, and one preflight decision. Treat script output as input to judgment, not authority. - Use bundled
scripts/ensure-openspec.tsafter 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, orpublic-first-prototype. Run the read-only preflight helper when available:
bun <skill-path>/scripts/preflight-check.ts --cwd <project> --mode all --format markdownThen run managed planning setup before artifact creation or readiness:
bun <skill-path>/scripts/ensure-openspec.ts --cwd <project> --format markdownStop 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.mdonly 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 aprototype-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-assumptionorpublic-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 GREENforready-for-execution,Go for Sprint 0,Go for prototype, or first executable task ready.🟡 [YELLOW] Status: NEEDS INPUTforask-founderorNeeds founder/customer validation before product commitment.🟠 [ORANGE] Status: NEEDS WORKfordelegate-inventory,run-research,write-artifacts, orcreate-sprint0.🔵 [BLUE] Status: WAITING EXTERNALfor missing external proof, publishing, indexing, credentials, paid services, production access, or third-party state.🔴 [RED] Status: BLOCKEDforblocked,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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

