write-fspec
Installation
SKILL.md
write-fspec
Maintain 功能规格说明书: per product line, which pages and features exist, how each behaves, how that evolved. Prototype is structural source of truth; fspec records what it shows plus what it cannot: preconditions, empty/error/no-permission states, extreme values, roles, terms, don'ts. Readers: design-to-code (undrawn states), whoever corrects feature spec or writes tickets, humans tracing history. Call document 功能规格说明书; reply in Chinese.
Codex: $ARGUMENTS = text after command. No interactive picker → print numbered options, stop for user's reply; never answer own question.
Layout
products/fspec/
└── <line>/ # one V chain per product line, numbered independently
├── CURRENT.md # merged current state, written only by step 6
├── V1__baseline.md # full baseline
└── V2__<slug>.md # deltas
History needs deltas; consumers need full current state. Handing V1 + V2 to builder makes it draw V1 fields V2 already renamed, hence two tracks.