一键导入
wb-plan
WannaBuild planning phase entrypoint for turning a brief or concrete task into architecture direction, implementation slices, and verification expectations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
WannaBuild planning phase entrypoint for turning a brief or concrete task into architecture direction, implementation slices, and verification expectations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | wb-plan |
| description | WannaBuild planning phase entrypoint for turning a brief or concrete task into architecture direction, implementation slices, and verification expectations. |
This prompt follows docs/contract-standard.md and inherits the four mandates in
skills/internal/build/references/doctrine.md; where this file is silent, the doctrine governs.
Shared contract: purpose, inputs, process, hard gates, evidence, output, handoff, forbidden actions.
Runtime gates fail closed and cannot be rationalized past; a runtime-unavailable gate is a hard stop, never permission to proceed. Specialist judgment stays advisory unless a gate or acceptance criterion requires evidence.
Use this phase skill when the user invokes planning or the active WannaBuild workflow is in Plan. A wb-plan or wannabuild:wb-plan invocation starts or resumes the full WannaBuild loop unless the user explicitly says plan only or do not implement.
Before any planning phase work:
Produce a concrete, verifiable plan from a completed discovery brief and its requirements (.wannabuild/spec/requirements.md). Discovery is the only valid input to Plan — a bare "clear task" never substitutes for it.
scripts/wannabuild-session.sh assert-discovery-ready . MUST succeed. If .wannabuild/spec/requirements.md, the five discovery artifacts, or the requirements Acceptance Criteria section are missing or empty, STOP and route to wb-discover — never plan against an undiscovered or unmeasurable goal.scripts/wannabuild-session.sh assert-plan-ready . succeeds and the plan artifacts are written."Missing env", "no access", or "can't check" is never grounds to drop a feasibility claim or stop planning — it is grounds to obtain the resource or ask the user.
.wannabuild/outputs/acquisition-log.json (what was needed, which tools/connectors/CLIs were tried, the result). assert-acquisition-attempted rejects any blocked status without a logged attempt.Decide with the user at decision points; execute autonomously within the phase.
Where the host supports sub-agents, spawn one per trigger that is present; otherwise produce the same analysis directly. The set is determined by these triggers, never by self-judgment, so identical input plans identically every run.
wb-discover and stop.assert-plan-ready passes.In a WannaBuild workspace, Planning must produce:
.wannabuild/spec/design.md — design direction, options considered with the recommended choice, and every material tradeoff. State the canonical integration test command here as part of the test strategy..wannabuild/spec/tasks.md — ordered slices, each mapped to acceptance criteria and carrying an executable verification step..wannabuild/config.json — set integration_test_command to the canonical integration test command from the design's test strategy (merge-update; do not replace the file). QA cannot pass until this is set, because the runtime executes it to produce signed integration evidence; if Plan omits it, wb-integration-tester must set it before recording..wannabuild/outputs/plan/plan-options.json — adversarial plan options conforming to plan-options.schema.json..wannabuild/outputs/plan/adversarial-plans.html — a single self-contained render of those options (recommended highlighted) for side-by-side comparison.These artifacts are the contract handoff to Implement and are always written in full-loop/workspace mode — never gated on the user explicitly asking for them. Record completed planning evidence in .wannabuild/state.json under the plan/design and tasks fields, and the chosen option under plan_options (merge-update only; never replace the file wholesale).
Before the Plan → Implement boundary, surface the plan as competing options rather than a single narration:
wb-plan-options agent to produce N genuinely distinct, complete plans for the discovered goal — each a different engineering stance with a critique_of_others red-team section, and one marked recommended_id. N comes from plan_adversarial_count (default 3, clamped 2–5)..wannabuild/outputs/plan/plan-options.json and validate it with scripts/validate-wannabuild-artifacts.sh (fails closed on a malformed artifact).scripts/wb-render-plan-html.sh --input <plan-options.json> into a self-contained adversarial-plans.html and best-effort open it (honoring plan_adversarial_auto_open); on a headless host, or when plan_adversarial_enabled is false, fall back to printing the file path.state.plan_options.chosen_id, write the chosen plan into design.md/tasks.md, and proceed once assert-plan-ready passes.Enforcement boundaries: producing plan-options.json and recording the chosen plan are required Plan deliverables — not optional. The render step and browser open are deliberately best-effort and never block the boundary, and the runtime assert-plan-ready gate intentionally checks only design.md+tasks.md (so a headless host or non-Claude operator still completes Plan) rather than adding a fail-closed dependency on the HTML. The renderer renders every plan in plan-options.json; it never silently truncates configured options.
assert-discovery-ready passes, or improvising the missing discovery in place of routing to wb-discover..wannabuild/outputs/acquisition-log.json.assert-plan-ready succeeds.Hand off to wb-build / Implement automatically after the plan-completeness and assert-plan-ready gates pass and the plan artifacts are written — unless the user explicitly requested plan-only, or an options-with-recommendation decision is still awaiting the user's choice.
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.
Automatic repo-native WannaBuild full-loop workflow for natural "I want to build/add/change..." prompts and any WannaBuild phase skill entrypoint.
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 QA phase entrypoint for validating acceptance criteria, integration behavior, and release readiness evidence.