author-build-plan
Draft /implement's build plan for ONE epic — the working spine of the build. Reads the epic's box (the epic record, its functionalities' ICE, the slice's six lenses, the captured repo context + test h
SKILL.mdcore/components/skills/author-build-plan/SKILL.md
GitHubauthor-build-plan
Turns one ready epic into its build plan — the ordered set of pieces /build-work executes. The epic is the tightest box: everything this plan may contain is what the epic carries or references (outcome, user_check, feature refs → ICE, acceptance, context) plus the slice's six lenses and the repository as it actually exists. The plan never crosses those walls; where the box has no wall, the skill records an open question — only the human draws a new wall.
This skill drafts; it never persists to the model and never publishes. /build-work
validates the draft mechanically (validate_plan.py), publishes it to the epic's issue
(project-orchestrator), and anchors the build to it.
Input
| Field | Required | Description |
|---|---|---|
epic_file |
yes | The epic record (read-only) — the box: outcome, user_check, feature_refs, context, acceptance. |
feature_ices |
yes | Resolved ICE paths for the epic's feature_refs (from the readiness gate). Referenced, never copied. |
lens_dir |
yes | The slice's lens folder (read-only) — quality (gates the build must end passing), architecture (components the work threads), ux, agentic, run. |
box_context |
yes | The captured repo context from the play's context step — affected areas, conventions, existing surfaces. |
harness |
yes | harness.yaml — the project's detected test/lint/build commands; names the test framework test pieces use. |
plan_path |
yes | Output path under STM for plan.yaml. |
directives |
no | Path to a revision-directives file (re-plan after retry exhaustion, or steelman refutations to absorb as pieces). When present, revise the existing plan at plan_path per the directives instead of cutting fresh — never silently rewrite unrelated pieces, and never delete a done piece. |
Process
Read the box. The epic record, every feature ICE, the six lenses, the captured repo context, the harness. The plan derives from these and ONLY these.
Cut test-first. For every epic acceptance criterion, author a
testpiece first — derived from the acceptance text and the ICE, never from any implementation piece. A test piece'sacceptance_refslists the acceptance indices it covers; it must not depend on a story/task piece sharing those refs.Cut the work. Stories (user-visible behavior), tasks (the internal work a story needs, pulled INTO the story's chain — never standalone-internal without a surfacing story), and
docspieces (the documentation the change requires — or recorddocs_waiver.reasonwhen genuinely none). Wiredepends_oninto an acyclic DAG with at least one dependency-free piece; order follows the epic's acceptance and the architecture lens's component seams.Ground every piece. Each piece carries
grounding: [{source, ref}]with source one ofepic | ice | lens | repoand a ref precise enough to check (an epic field, an ICE path + clause, a lens file + entry, a repo path). A piece you cannot ground is NOT a piece — record it underopen_questionswith what it is and why the box has no wall for it.Write the draft to
plan_path:plan: epic_ref: <epic id> created_by: author-build-plan version: 1 pieces: - id: p-1-<slug> kind: story | task | test | docs title: <one line> intent: <what this piece delivers, one line> grounding: [{source: epic|ice|lens|repo, ref: <checkable ref>}] acceptance_refs: [<epic acceptance indices>] # tests: required; others: where relevant depends_on: [] status: planned files_hint: [] # best-guess touched paths; the box check uses reports, not this docs_waiver: {reason: ""} # only when no docs piece exists open_questions: [] # [{question, context}] — gate the play's checkpointRevision mode (
directivespresent): apply each directive — new pieces for refutations (grounded in the refutation's cited gap), re-planned pieces for retry exhaustion — bumpplan.version, keepdonepieces intact, and leave arevision_noteper changed piece naming its directive.
Output
The output contract.
Return JSON only: {"plan": "<plan_path>", "pieces": <n>, "open_questions": <n>}.
The artifact lives on disk; the contract carries paths, never content.