Workflow
Execute the following steps strictly in order. Do not start Step 2 until Step 1 is fully completed and verified. After each step, pause, show the output to the user, and wait for confirmation before continuing.
- Run figma-extract skill and use the output for the next step.
- reference
- api + composition → api_gate (below). Confirm with the user before moving to next steps.
- build
- demo
- tests — after
demo; tests smoke-render every demo example - code_connect
- publish
- exit_gate (below)
api_gate
Before build: output export list (one-line purpose each) + demo plan (examples[] names and what each proves). Stop if exports exceed shadcn baseline + QBDS axes from the alignment table, or if the demo plan splits axis values or show* toggles into separate examples. Trim per composition.md and demos.md.
exit_gate
npm run lint && npm run typecheck && npm run test:unit && npm run registry:build && npm run figma:parse
Fix until all five pass. Triage individually when && hides failures. npm run prettier:fix for format. Prop surface change → return to api, re-show prop list, continue forward.
Ask before continuing when: Figma axis has no sensible React expression, sibling contradicts shadcn naming, export list exceeds closest shadcn sibling without Figma reason, or a new token is needed.