What problem does it solve?
Writing consistent Storybook stories for Vue components requires matching repo-specific conventions, title patterns, and typing helpers, which is error-prone when done manually.
Core Features & Use Cases
- Convention Matching: Guides story creation by reading neighboring
.stories.ts files and matching local title patterns such as Components/Input/SearchInput or Widgets/<WidgetName>.
- Story Patterns: Provides templates for stateful
v-model inputs, slot-driven content, and variant grids using @storybook/vue3-vite and ComponentPropsAndSlots typing.
- Figma Mapping: Converts named Figma design states into prop-driven stories like
Disabled, Loading, or AllVariants.
- Use Case: When adding a new button component to
src/components/ui/button/, use this Skill to generate a co-located Button.stories.ts file with autodocs tags, proper typing, and validation via pnpm storybook, pnpm typecheck, and pnpm lint.
Quick Start
Use the writing-storybook-stories skill to create a Storybook story for the SearchBox component following the repo conventions.