backfill-prototype
Installation
SKILL.md
Backfill Prototype
After build, small UI changes land straight in code; prototype falls behind. write-fspec, stitch-extract-design-md and design-to-code all read prototype, so stale one makes next forward feature redraw or undo landed work. This skill levels prototype with frontend in one pass. Reply in Chinese.
Codex: $ARGUMENTS = text after command. No interactive picker → print numbered options, stop for user's reply; never answer own question.
Rules
- Frontend is truth for what exists; prototype only follows. Write only under
products/prototype/; frontend,products/fspec/andproducts/design/stay read-only. - Compare structure, never history. Git ranges miss drift landed before last prototype commit; read both sides in full for every page.
- Backfill what user sees: pages, nav entries, blocks and their order, fields and table columns, filters, actions, overlays, copy, enum labels, drawn states. Skip what prototype never carries:
- Data and wiring:
src/api/,src/hooks/,src/mocks/, sample row values. - Visual values DESIGN.md explains, and deviations
.design-to-code/progress.mdsanctions;restyleapp (perprogress.md): all visuals, structure only. - Guards hiding or disabling element prototype already draws: list as
fspec前置条件 material, don't draw. - Interaction conventions
ui-ux-best-practicesowns (destructive confirmation, validation timing, overlay reset): component behaviour, not page structure.
- Data and wiring:
- Prototype has something frontend lacks → not backfill. Listed as non-backfill entry under
## [Unreleased]in prototype CHANGELOG, or as gap inprogress.md→ pending forward work, leave silently. Else → ask whether code removed it; delete from prototype only on yes. - Match prototype's own idiom: same files, markup style, page ids (
data-page), class names; obeyui-ux-best-practices. Page ids come from frontend routes, never invented.