一键导入
wannabuild
Automatic repo-native WannaBuild full-loop workflow for natural "I want to build/add/change..." prompts and any WannaBuild phase skill entrypoint.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Automatic repo-native WannaBuild full-loop workflow for natural "I want to build/add/change..." prompts and any WannaBuild phase skill entrypoint.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when starting any conversation that touches software work — establishes how to find and use WannaBuild skills, requiring skill invocation before ANY response including clarifying questions.
WannaBuild implementation phase entrypoint for implementing a concrete plan or task with focused verification and adaptive delegation.
WannaBuild debugging implementation entrypoint for reproducing, diagnosing, fixing, and verifying bugs within the full loop.
WannaBuild discovery phase entrypoint that grills the user — one question at a time, each with a recommended answer — to clarify vision, audience, flows, constraints, scope, and success signals before continuing the full loop. Also triggers on "grill me" or "grill this idea".
WannaBuild planning phase entrypoint for turning a brief or concrete task into architecture direction, implementation slices, and verification expectations.
WannaBuild QA phase entrypoint for validating acceptance criteria, integration behavior, and release readiness evidence.
| name | wannabuild |
| description | Automatic repo-native WannaBuild full-loop workflow for natural "I want to build/add/change..." prompts and any WannaBuild phase skill entrypoint. |
This prompt follows docs/contract-standard.md.
Shared contract: purpose, inputs, process, hard gates, evidence, output, handoff, forbidden actions.
This skill obeys the four mandates in skills/internal/build/references/doctrine.md: discovery is mandatory and collaborative, resources are exhausted before any blocked claim, gates cannot be rationalized away, and every phase boundary hard-stops for an explicit approval word.
Runtime gates fail closed. Evidence is the default for any pass/fail claim — specialist judgment that affects a review verdict, QA outcome, or gate decision must be backed by it.
Use this skill when the user wants WannaBuild itself, not generic coding help.
Use WannaBuild skills automatically whenever they plausibly apply. Commands are optional shortcuts: keep behavior in skills, and never require a command when intent is clear from natural language.
wannabuild.wannabuild:*, wb-*, or host UI WannaBuild invocation as a workflow entrypoint, not a one-turn command: start or resume the full loop at the invoked phase and preserve .wannabuild/ state across turns until the workflow completes or the user explicitly exits or stops.wb-* phase skill for focused entry, then continue through the natural next phases; if multiple could apply, choose the minimal useful set.WannaBuild has one default surface — full-loop mode: Discover -> Plan -> Implement -> Validate -> QA -> Summary. wb-* skills are phase entrypoints into that loop and behave as one-phase tools only under an explicit single-phase limit.
Keep startup text plain and brief. Do not emit machine-readable start or resume banners in user-visible output; when resuming from .wannabuild/state.json, say so in ordinary prose. Do not offer Full/Light/Spark modes — run the one standard full-loop workflow unless the user explicitly limits the request to one phase.
If the user invokes /wannabuild or $wannabuild with no concrete task, no stage intent, and no exploratory idea — or only asks what the workflow is — do not inspect the repo deeply, infer the task from git state, browse the web, edit files, or start planning. Respond with exactly this plain prompt and wait for the actual goal:
Tell me what you want to build or change.
Use this fallback only for empty or purely meta invocations; a rough goal, open-ended improvement prompt, or brainstorming prompt is actual work for Discover. Never emit identical assistant messages back-to-back — if the command layer already emitted a startup note this turn, or a checkpoint question is awaiting an answer, wait rather than repeat.
Use the current checkout for Discover, Plan, Validate, QA, Summary, and phase-limited work; do not create an isolated workspace before discovery or planning.
Before implementation starts from an approved plan, choose the implementation workspace: (1) continue in the current checkout, or (2) create an isolated worktree under .codex/worktrees/<repo>/.... Use a worktree only when the user selects it, asks for isolation or parallel implementation, or the implementation risk justifies separation. If created, use scripts/wannabuild-workspace.sh --json when available and continue inside the reported workspace_path.
Initialize runtime artifacts in the active checkout before continuing:
scripts/wannabuild-session.sh init <project_root>.scripts/wannabuild-session.sh assert-workflow-active <project_root>.If either fails, stop and report the runtime failure. Do not continue with host-only planning, implementation, or workflow claims.
Run: Discover -> Plan -> Implement -> Validate -> QA -> Summary.
In full-loop mode, Discover always runs an interview before planning — even for a detailed prompt or a one-line change; there is no "trivial" exception. Discover cannot end until six dimensions are explicitly resolved with the user — vision, target audience, primary user flows, constraints, scope boundaries, and success signals — after which you stop for the approval word that hands off to Plan.
The interview is a mandatory Grill following the wb-discover contract:
Keep discovery inspection bounded and relevant to the stated task — a few high-signal reads, not broad repo spelunking. Do not anchor to unrelated in-flight diffs unless the user explicitly says the current diff is the task. If the task is still unclear, ask instead of inferring.
The Grill claim is satisfied only by its record, never by asserting it ran. Before crossing Discover -> Plan, verify a discovery record in .wannabuild/outputs/ enumerates each dimension (vision, audience, flows, constraints, scope, success signals) with the user's confirmed answer, and that .wannabuild/spec/requirements.md carries an Acceptance Criteria section with at least one concrete, checkable criterion. Any unresolved dimension or missing criteria blocks the boundary, mirroring the fail-closed assert-discovery-ready gate.
.wannabuild/decisions.md or checkpoints.Default to guided mode (control_mode: "guided"): gate every transition — Discover -> Plan, Plan -> Implement, Implement -> Validate, Validate -> QA, QA -> Summary — and wait for explicit user approval. At each gate, present what the phase produced, state the next phase, and ask for approval. An explicit approval word — "go", "proceed", "approved", "continue", "next", "lgtm", "do it" — advances exactly one boundary; vague acknowledgments ("ok", "uh ok", "sounds good") never cross a boundary and never permit skipping a phase. If the user invoked a wb-* phase skill, complete that phase, then stop at its boundary and ask before entering the next.
Switch to control_mode: "autonomous" only when the user explicitly asks for autonomous or unattended execution. Then continue through every phase — including Validate and QA — without per-boundary approval, asking only when ambiguity changes product direction or scope, when acquisition is billable/outward-facing/destructive (paid provisioning, deploys, production data, external sends), or when merge/push/PR strategy is needed. Missing env, missing dependency, no access, or can't-test is never a reason to ask or stop until Resource Acquisition below is exhausted and logged — and even then only the billable/outward-facing/destructive subset stops for the user.
This contract applies to Research, Validate, and QA. Before any phase may report blocked, missing-env, missing-dependency, no-access, or can't-test, it MUST first attempt to obtain the resource through every available channel and record what it tried.
Standard acquisition order:
Auto-acquire — no permission needed — anything safe, local, and reversible: running the app, spinning ephemeral or local database branches, driving a real browser, reading live docs, generating fixtures, standing up preview environments. Stop and ask only for billable, outward-facing, or destructive acquisition — paid provisioning, deploys, production data, external sends, anything hard to reverse — presenting the specific resource you need and why.
A blocker claim is valid only with proof you tried: record, per unmet need, what was needed, which tools/connectors/CLIs were attempted, and the result in .wannabuild/outputs/acquisition-log.json. The fail-closed assert-acquisition-attempted gate rejects any blocked or failed status that lacks that entry.
After discovery, run the research bundle. Research is never zero: depth is proportionate — terse for trivial changes, thorough for features — but the check always runs and is always recorded.
Run a research burst whenever any deterministic trigger fires:
For any external dependency or API in scope, fetching live docs via Context7 (or the provider's MCP) through Resource Acquisition is MANDATORY — uncertainty is itself a trigger, not a reason to skip.
When a trigger fires: update stage to research, run a bounded burst with the smallest useful set of specialist agents — each assigned a distinct question, ownership area, capability tier, and reasoning effort; no fixed agent counts, no concrete model IDs — record why that shape was chosen, synthesize a concise research summary, then proceed to planning. When no trigger fires: record the terse feasibility and failure-forecast check that ruled them out — never silently omit it — and move directly to planning, updating stage to plan.
Research through auto-acquire channels proceeds without asking. Stop and ask only when research needs billable, outward-facing, or destructive acquisition, or when it materially changes scope or product direction — then present the options with a recommended answer and proceed once confirmed.
Implement only after Plan has completed or been invoked to completion, and only through the WannaBuild implementation path (wb-build and the implement contract) — never generic coding behavior.
Default to the smallest shape that can implement the plan well; shape scales depth, never coverage. Use single-owner implementation when tasks are tightly coupled; use parallel agents only when slices are genuinely independent or separate expertise materially improves the outcome, assigning each concrete files, risks, acceptance criteria, or questions, and stop adding agents once ownership stops being distinct. Record why this execution shape was chosen, what each agent owns, the selected capability tier and reasoning effort, and the expected evidence and checkpoint paths.
After implementation completes, validate the change. Validate runs the full reviewer set every iteration — security, performance, architecture, testing, code-simplifier, and integration — with no impacted-only subset, no fast-track for small or low-risk changes, and no reviewer self-selecting out. Partial review is a FAIL, not a style choice.
Validate MUST:
.wannabuild/review/ enumerating what it covered and the evidence checkedAfter validation passes, move to QA. QA validates execution, not text markers, and is never collapsed into implementation verification.
QA must:
.wannabuild/outputs/qa-summary.md capturing that execution evidenceDo not emit the final Summary until Review and QA are both complete. Before summarizing, verify:
.wannabuild/review/ contains a verdict file for every changed surface, each naming the surface it covered and the evidence checked"status": "PASS" verdict for the latest iteration — any other status value, or a missing reviewer, blocks the summary.wannabuild/outputs/qa-summary.md exists and records what was executed (real commands, exit codes, output), and any blocked status has a matching entry in .wannabuild/outputs/acquisition-log.jsonA PASS string alone never satisfies these checks; the substance behind it must be present. If any check fails, block the summary and report what is missing. Once all checks pass, summarize.
Always finish with:
Keep the user experience compact even if the internal machinery is deeper.
Persist and update these public stages in .wannabuild/state.json:
discoverresearch when a deterministic trigger fires a bounded research burstplanimplementreview for the Validate stepqasummaryWhen entering or completing a stage, update .wannabuild/state.json — set public_stage: "<stage>", workflow_status: "in_progress", updated_at: <RFC3339 timestamp, e.g. 2026-04-06T14:23:45Z>; at summary, set workflow_status: "complete". Do not skip required stages.
Use these contracts as needed. If installed via the Claude Code marketplace, they are available at their relative paths within the plugin; if working directly from the repo, at the same relative paths.
AGENTS.md (repo root) — primary operator contractskills/internal/build/SKILL.md — full orchestrator contractskills/wb-discover/SKILL.md — discovery phase entrypointskills/wb-plan/SKILL.md — planning phase entrypointskills/wb-build/SKILL.md — implementation phase entrypointskills/wb-debug/SKILL.md — debugging implementation entrypointskills/wb-review/SKILL.md — review phase entrypointskills/wb-qa/SKILL.md — QA phase entrypointskills/wb-ship/SKILL.md — ship/summary phase entrypointskills/internal/requirements/SKILL.mdskills/internal/design/SKILL.mdskills/internal/tasks/SKILL.mdskills/internal/implement/SKILL.mdskills/internal/review/SKILL.mdskills/internal/build/references/ship-phase.mdskills/internal/document/SKILL.mdOptional scripts (repo install only):
scripts/validate-wannabuild-artifacts.shcan be used for artifact validation if the WannaBuild repo is accessible. It is not required for normal skill execution.