--- name: phase-preview description: Preview a signed-off design one release phase at a time — cut it down into a series of phase screens, each showing only what exists by that phase with the layout untouched, then put them on a scrubber you drag to watch the screen fill in release by release. Use when the user wants a Phase 1 / MVP version of an existing wireframe or mockup, phased or staged screens, a design sliced by release phase or story map, or wants to see what a screen looks like before later features land. --- One design in, one screen per phase out. Each phase file shows everything available **by** that phase and nothing that isn't, in exactly the positions the approved design already put them — so a phase screen is the real build target for that release, not a redrawing of it. Nothing here is drawn: this is the approved design with the later releases taken out, which is why it can be checked mechanically rather than by eye. ``` base.html ──┬──► phase-1/base.html only what ships in phase 1 ├──► phase-2/base.html phase 1 + phase 2 └──► phase-3/base.html phase 1 + 2 + 3 ( = the base, if phases cover it all ) ``` **Subtract only.** Nothing is moved, resized, restyled or repositioned; nothing new is invented. That is the entire discipline of this skill, and §4 proves it mechanically rather than trusting the eye. ## 1 · Resolve the two inputs **The base wireframe** — one self-contained HTML file. If the user hasn't named one, ask; don't guess among the files in `design/`. Never work from an already-phased file: every phase is cut from the original. **The phases, and what belongs to each.** In priority order: 1. A **story map** (`*.json` from `/vstack:user-story-map`) — `phases[]` gives the order and goals, `stories[]` give what lands when. This is the best input; ask for one if a story map exists. 2. A **spec** with P1/P2/P3 priorities, or a roadmap. 3. **The user tells you** the phases in the conversation. If none of those exist, stop and ask — inventing a release plan is not this skill's job. ## 2 · Write the phase plan before touching any HTML Open the base and inventory **every** element, component and interaction in it. Assign each one the **earliest phase it exists in**. Write that out and show the user before generating anything: ```markdown | Element | Earliest phase | Why | |---|---|---| | Candidate table + search | 1 | "Search candidates by name" | | Bulk-select toolbar | 2 | "Move several candidates at once" | | "Ask AI" button + drawer | 3 | "Summarise a candidate with AI" | | Export button | — | not in any story — flag it | ``` This step is the one that makes the rest mechanical. Doing it up front means each phase is a lookup rather than a fresh judgement call, and it surfaces the two things worth a conversation: - **Elements no story covers.** Say so rather than silently keeping or cutting them. Chrome that every phase needs (nav, page title, empty states) is phase 1 by default — call that out too. - **Phase-1 features gated behind later ones.** These need the skeleton rule in §3; find them now, not mid-edit. Confirm the plan, then generate. If the user re-slices the story map afterwards, come back here. ## 3 · Generate the phases, one at a time, in order For each phase 1, 2, 3 … **in order**, and only starting the next once the current one is written, checked and shown: 1. **Start from the original full wireframe.** Never from the previous phase's output — errors compound. 2. **Subtract every element, component and interaction that does not belong to the current phase or any earlier phase.** Phases are cumulative: phase 2 shows phase 1 *and* phase 2. 3. **Keep the exact same layout, spacing, alignment, sizes and visual hierarchy.** Do not move, resize, restyle or reposition any remaining element. Leave the stylesheet exactly as it is — rules that no longer match anything are fine and expected. 4. **Fully implement the features available in this phase** (and earlier). What survives still works; a control that can't act is removed, not left dead. 5. **A current-phase feature gated behind a later-phase one** stays in its original place, and the later-phase gate is replaced with the absolute minimum skeleton — an empty container, a disabled placeholder, or a plain frame — so the current-phase feature stays visible and reachable. **Every skeleton element carries `data-phase-skeleton`**, which is what lets §4 tell an allowed placeholder apart from an invented element. 6. **Do not invent new elements or redesign anything. Only subtract.** Write each to `