vintasoftware/vinta-schedule-frontend-web/add-storybook-story
Claude Code and agent skill by vintasoftware/vinta-schedule-frontend-web
- community
Checking that the SKILL.md file is still in the repository.
Add or update a colocated Storybook story (*.stories.tsx) for a component, following this repo's @storybook/nextjs-vite conventions (meta/StoryObj, viewports, themes, fullscreen). Use when the user says "add a story", "put X in Storybook", "document this component in Storybook", "add a Storybook example", or after creating/changing a visual component. NOT for non-visual logic.
Install
npx vskill@latest install vintasoftware/vinta-schedule-frontend-web/add-storybook-storySKILL.md
Add Storybook Story
Create a colocated *.stories.tsx next to the component, matching this repo's @storybook/nextjs-vite setup. Reference stories: `box.stories.tsx`, `page-header.stories.tsx`, `app-sidebar.stories.tsx`. See DESIGN.md §8 (Storybook) for the rules.
Steps
- Create `<component>.stories.tsx` colocated with the component file.
- Meta block —
satisfies Meta<typeof Component>,title: 'Group/Name'
(groups in use: Layout/, UI/, Components/…), tags: ['autodocs'], default args, and argTypes controls for the key props:
```tsx import type { Meta, StoryObj } from '@storybook/nextjs-vite'; import { Thing } from './thing';
const meta = { title: 'UI/Thing', component: Thing, tags: ['autodocs'], args: { variant: 'default', children: 'Thing' }, argTypes: { variant: { control: 'select', options: ['default', 'info', 'success'] }, }, } satisfies Meta<typeof Thing>;
export default meta; type Story = StoryObj<typeof meta>; ```
- Stories — a
Playground(empty{}uses meta args) plus a gallery story
that renders all variants/states side by side:
```tsx export const Playground: Story = {};
export const Variants: Story = { render: () => ( <div style={{ display: 'flex', gap: '1rem', flexWrap: 'wrap' }}> <Thing variant='default'>default</Thing> <Thing variant='info'>info</Thing> <Thing variant='success'>success</Thing> </div> ), }; ```
Repo-specific conventions (DESIGN.md §8)
- Full-bleed layouts/compositions (shells, bars, pages):
parameters: { layout: 'fullscreen' } on the story or meta.
- Required props: if the component needs props and you don't supply meta
args, type the story as StoryObj (not StoryObj<typeof meta>) to avoid required-arg type errors — or just supply args.
- Viewports (configured in .storybook/preview.tsx):
Mobile 375 / Mobile L 430 / Tablet 768 / Laptop 1024 / Desktop 1440. For responsive components, add a variant pinned to a small viewport:
``tsx export const Mobile: Story = { globals: { viewport: { value: 'mobile' } }, }; ``
- Themes: light/dark are wired via
withThemeByClassNameglobally — no
per-story setup needed; just toggle in the toolbar.
- Tailwind v4 literal-class rule: only literal class strings get generated.
bg-vinta-${n} won't emit — list classes literally in swatch/foundation stories.
Verify
npm run storybookand confirm the story renders in light + dark and at the
mobile viewport (for responsive components).
npm run typecheck+npm run lintclean.npm run build-storybookif you want to confirm a production build passes.
Don't
- Don't hard-code colors in stories — use tokens / token-bound props.
- Don't forget
layout: 'fullscreen'for bars/shells/pages (they look broken centered). - Don't skip the mobile-viewport variant for anything responsive.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingai-tools/skills/add-storybook-story/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/vintasoftware/vinta-schedule-frontend-web/add-storybook-story)