create-storybook-docs
БесплатноБез исполняемых скриптовНе проверенCreate or update Storybook stories and documentation for a Spark UI component. Use when the user wants to add stories, update documentation, or improve…
от leboncoin★ 94 звезды на GitHubОб этом скилле
Create Storybook Documentation
Create or update Storybook stories and MDX documentation for Spark UI components.
When to Use
- User wants to add Storybook stories
- User wants to update component documentation
- Component is missing stories or documentation
- User mentions "stories", "storybook", or "documentation"
Instructions
Stories File (ComponentName.stories.tsx)
Meta Definition:
const meta: Meta<typeof ComponentName> = { title: 'Components/ComponentName', component: ComponentName, } export default metaStory Guidelines:
- Use
*.stories.tsxextension - One story per prop/feature (avoid mixing many props)
- Use
Components/*meta structure - Avoid
_argswhen using JS logic (useState, etc.) - Include all variants and states
- Use
Required Stories (in order):
Default: Minimal common caseUncontrolled: Stateful with internal stateControlled: Stateless with props- Other variants alphabetically
Documentation File (ComponentName.doc.mdx)
Sections Order (must follow this exact order):
- Title: H1 heading with component description
- Meta: Link to stories using
<Meta of={stories} /> - Install: Installation instructions
- Import: Import examples
- Props table: Use custom
ArgTypescomponent - Usage: Examples in specific order (Default, Uncontrolled, Controlled, others alphabetically)
- Advanced Usage: Complex examples and edge cases
- Accessibility: Keyboard interactions and a11y requirements
Usage 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:
- Use
ArgTypeswithsubcomponentsprop - Document each sub-component separately
- Use
Reference
See documentation/contributing/WritingStories.mdx for complete guidelines.
Examples
Reference existing stories in packages/components/src/*/ComponentName.stories.tsx and ComponentName.doc.mdx.
Установить create-storybook-docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл create-storybook-docs?
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.
Как установить скилл create-storybook-docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл create-storybook-docs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic