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

  1. Frontend is truth for what exists; prototype only follows. Write only under products/prototype/; frontend, products/fspec/ and products/design/ stay read-only.
  2. Compare structure, never history. Git ranges miss drift landed before last prototype commit; read both sides in full for every page.
  3. 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.md sanctions; restyle app (per progress.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-practices owns (destructive confirmation, validation timing, overlay reset): component behaviour, not page structure.
  4. Prototype has something frontend lacks → not backfill. Listed as non-backfill entry under ## [Unreleased] in prototype CHANGELOG, or as gap in progress.md → pending forward work, leave silently. Else → ask whether code removed it; delete from prototype only on yes.
  5. Match prototype's own idiom: same files, markup style, page ids (data-page), class names; obey ui-ux-best-practices. Page ids come from frontend routes, never invented.

Workflow

Installs
4
Repository
jinsyin/skills
GitHub Stars
1
First Seen
Nov 6, 2026