What problem does it solve?
It removes the guesswork and back-and-forth needed to create a new component spec file, ensuring the initial draft is consistent with the repo’s templates and cross-references (like DESIGN and Figma) without writing any component code.
Core Features & Use Cases
- Interactive spec drafting: Guides the user through defining purpose, props, events, slots, sub-components, storybook stories, and accessibility details in a strict order.
- Category and token assistance: Infers category from the repo taxonomy and can optionally use Figma to pre-populate token information and run token mapping against DESIGN.md.
- Validation-ready output: Writes a
.specs/<name>.md with status: draft, ensuring mandatory sections exist for later approval by spec-validator.
Quick Start
Run /spec-create my-new-component --figma <figma-url> to generate a draft spec at .specs/my-new-component.md for review.