agentleFS
pax-kpax-k/build-right/skills/build-right-preflight/SKILL.md

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.

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
  1. Distinctive:

    Use this skill to prepare a project before repetitive AI execution begins.

    line 8
  2. Very specific:

    Always read references/workflow.md before acting.

    line 21
  3. Very specific:

    Read references/founder-gates.md before asking founder questions, deciding readiness, or advancing past a stop/ask gate.

    line 22
  4. Very specific:

    Read references/research-and-delegation.md only when web research, public-evidence claims, existing-project inventory, conflict review, or …

    line 24
  5. Very specific:

    Read references/artifact-contract.md before creating or updating docs or tasks.

    line 27
  6. Very specific:

    Read references/domain-language.md when overloaded terms, aliases, multiple actors, or missing domain expertise affect requirements.

    line 29
  7. Very specific:

    Read references/prototype-routing.md when a behavioral or visual question can be answered empirically before planning.

    line 31
  8. Very specific:

    Use files in assets/templates/ as starting points when creating artifacts.

    line 37
  9. Very specific:

    Use bundled scripts/preflight-check.ts for deterministic inventory, readiness signals, and one preflight decision.

    line 38
  10. Very specific:

    Use bundled scripts/ensure-openspec.ts after repository inventory.

    line 41
  11. Distinctive:

    Run the read-only preflight helper when available:

    line 54
  12. Distinctive:

    Stop fail-closed on provider/runtime, compatibility, or setup failure.

    line 66
  13. Distinctive:

    If those answers are already explicit in the prompt or repo docs, record the evidence path instead of asking again.

    line 108
  14. Distinctive:

    Look up repository and public facts directly.

    line 110
  15. Very specific:

    Create or update CONTEXT.md only when overloaded terms, important aliases, or multiple actors/concepts materially affect requirements.

    line 113
  16. Distinctive:

    Create or update docs and task files by default after the file plan.

    line 119
  17. Distinctive:

    Stop before writing only when the user requested planning-only mode, a write would overwrite substantial ambiguous content, project state …

    line 120
  18. Distinctive:

    Ask founder questions in small batches.

    line 123
  19. Distinctive:

    If the user does not answer, continue only with repo-evidence inventory and mark founder-owned claims as blocked or needing founder …

    line 124
  20. Very specific:

    If founder context is thin and fast prototyping is allowed, use bounded web research to fill gaps and mark those claims as …

    line 126
  21. Distinctive:

    Use subagents when a required delegation trigger applies and subagent tools are available.

    line 129
  22. Distinctive:

    Run the preflight helper again after artifact creation when available, then reconcile its warnings against the readiness gate.

    line 138
  23. Distinctive:

    Treat a project as blank/new when it lacks most product docs, task trackers, and authority docs.

    line 147
  24. Distinctive:

    Treat a project as existing when it has meaningful docs, code structure, task tracking, release process, or prior product decisions.

    line 151
  25. Distinctive:

    Use one of these closeout states:

    line 157
  26. Distinctive:

    Never automatically commit, push, merge, publish, deploy, or abort or resolve an existing Git operation.

    line 170
  27. Distinctive:

    Use this status map:

    line 186
  28. Distinctive:

    Do not claim product-feature readiness until product truth, MVP scope, evidence, operating rules, and at least one bounded executable task …

    line 201

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Inspect the project first.
  2. Classify it as blank/new or existing.
  3. Classify source mode as founder-fed, web-assisted, or public-first-prototype.
  4. 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.

  5. 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>
  6. 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.
  7. Announce a concise file plan:

    Create:
    - <path> - <purpose>
    
    Update:
    - <path> - <purpose>
    
    Leave untouched:
    - <path> - <reason>
    
    Needs user input:
    - <question or blocker>
  8. 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.
  9. 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.
  10. Create or update CONTEXT.md only when overloaded terms, important aliases, or multiple actors/concepts materially affect requirements. Keep it implementation-free and optional.
  11. Route empirically answerable behavioral or visual uncertainty to $build-right-prototype. Record the result as prototype evidence or a prototype-assumption, never customer validation.
  12. Create or update docs and task files by default after the file plan.
  13. 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.
  14. 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.
  15. 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.
  16. 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.
  17. Mark unsupported claims as assumptions. Do not invent product truth.
  18. 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.
  19. Run the preflight helper again after artifact creation when available, then reconcile its warnings against the readiness gate.
  20. Report the helper decision again before claiming readiness.
  21. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.