| id |
03-build-screens |
| title |
Build Screens |
| description |
Per-screen vertical pipeline — prompt, design, JSX, split — for every screen in screens.json |
| wbs |
| type |
path |
nodejs |
./wbs.js |
|
| blocking |
true |
| dependencies |
003-implement-design-tokens |
|
| tags |
|
| inputs |
.stitch/screens.json |
.stitch/DESIGN.md |
.stitch/UX.md |
|
| outputs |
src/pages/**/*.tsx |
src/components/**/*.tsx |
src/App.tsx |
|
| checks |
| id |
cmd |
description |
screens-json-exists |
test -f .stitch/screens.json |
Screen definitions exist |
|
| id |
cmd |
description |
pages-created |
ls src/pages/*.tsx 2>/dev/null | wc -l | awk '{if ($1 > 0) exit 0; exit 1}' |
At least one page component was created |
|
| id |
cmd |
description |
typescript-valid |
npx tsc --noEmit |
All generated code compiles |
|
|
Reads .stitch/screens.json and spawns a 4-step pipeline per screen:
- Generate Prompt — create
.stitch/prompts/{screenId}.md from UX + design system
- Generate HTML Design — run Stitch to produce
.stitch/designs/{screenId}/design.html
- Convert to JSX — transform HTML into
src/pages/{Component}.tsx with routing
- Split Components — extract reusable atoms/molecules/organisms via react-prune
Screens are chained sequentially so each completes before the next begins.