Storybook
Skill a5c-ai/babysitter/library/specializations/web-development/skills/storybook
Babysitter enforces obedience on agentic workforces and enables them to manage extremely complex tasks and workflows through deterministic, hallucination-free self-orchestration
npx -y skills add a5c-ai/babysitter --skill storybookAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Storybook configuration, stories, addons, interaction testing, and documentation.
SKILL.md
1.5 KB, as published. Nobody here has run it
Storybook Skill
Expert assistance for component development with Storybook.
Capabilities
- Configure Storybook
- Write component stories
- Add interaction testing
- Configure addons
- Generate documentation
Story Patterns
import type { Meta, StoryObj } from '@storybook/react';
import { Button } from './Button';
const meta: Meta<typeof Button> = {
title: 'Components/Button',
component: Button,
tags: ['autodocs'],
argTypes: {
variant: { control: 'select', options: ['primary', 'secondary'] },
size: { control: 'select', options: ['sm', 'md', 'lg'] },
},
};
export default meta;
type Story = StoryObj<typeof Button>;
export const Primary: Story = {
args: {
variant: 'primary',
children: 'Click me',
},
};
export const WithInteraction: Story = {
args: { children: 'Click me' },
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
await userEvent.click(canvas.getByRole('button'));
},
};
Target Processes
- component-library
- design-system
- documentation