Create or update Storybook stories and documentation for a Spark UI component. Use when the user wants to add stories, update documentation, or improve component documentation in Storybook.
60
70%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./.cursor/skills/create-storybook-docs/SKILL.mdCreate or update Storybook stories and MDX documentation for Spark UI components.
ComponentName.stories.tsx)Meta Definition:
const meta: Meta<typeof ComponentName> = {
title: 'Components/ComponentName',
component: ComponentName,
}
export default metaStory Guidelines:
*.stories.tsx extensionComponents/* meta structure_args when using JS logic (useState, etc.)Required Stories (in order):
Default: Minimal common caseUncontrolled: Stateful with internal stateControlled: Stateless with propsComponentName.doc.mdx)Sections Order (must follow this exact order):
<Meta of={stories} />ArgTypes componentUsage Section Format:
## Usage
### Default
<Canvas of={stories.Default} />
### Uncontrolled
Description of uncontrolled usage.
<Canvas of={stories.Uncontrolled} />
### Controlled
Description of controlled usage.
<Canvas of={stories.Controlled} />For Compound Components:
ArgTypes with subcomponents propSee documentation/contributing/WritingStories.mdx for complete guidelines.
Reference existing stories in packages/components/src/*/ComponentName.stories.tsx and ComponentName.doc.mdx.
76a3678
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.