About stories
stories is a skill for implementing and maintaining UI stories in projects with Storybook. It defines setup checks, documentation lookup, and a required workflow for creating, previewing, and reviewing stories alongside frontend changes.
Key features
- 01Checks Storybook version and addon setup
- 02Looks up Storybook documentation first
- 03Follows an ordered UI story workflow
- 04Previews and reviews stories
Use cases
- 01Adding stories for a new UI component
- 02Updating stories alongside frontend changes
- 03Checking Storybook usage before editing source
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ storybookjs/ storybook --skill storiesAfter installing, type/storiesin Claude Code to confirm it loaded.
Details
From the project READMEPrerequisites:
- Storybook must be installed in the project. Invoke the
/storybook-initskill to set up Storybook, but only if the user explicitly invoked this skill and approves a Storybook installation. - Storybook must be at least 10.6. (While 10.6 is unreleased,
nextsatisfies this — 10.6.0-alpha.x. Any canary build,0.0.0-pr-*, also qualifies.) Treat a request to set up or install Storybook as approval to perform any required Storybook upgrade. For other requests, invoke the/storybook-upgradeskill only after the user explicitly approves an upgrade. - Ensure
@storybook/addon-mcpis installed. If it is missing, install it withnpx storybook add @storybook/addon-mcp.
Run the Storybook dev server and every Storybook CLI command from the same working directory: the package where Storybook is installed (in a monorepo often a leaf package such as packages/ui).
For docs, props, or usage questions, use npx storybook tools docs list followed by npx storybook tools docs show before inspecting source files. Fall back to source inspection only when the documentation commands are unavailable or return no relevant documentation.
Run npx storybook skills stories and read the output in its entirety to get the mandatory, ordered workflow for working on UI changes, writing stories, and keeping stories in sync with every frontend component you create, modify, or delete. This workflow explains how to write stories, preview stories, and display a curated Storybook review.
Before invoking any npx storybook tools command for the first time in a session, run it with --help appended and read the output fully. The workflow only names the commands; each command's argument shape and usage rules (which fields to include when) live in its own help output. Never guess a command's arguments from its name — a validation error only reports missing required fields, not the optional fields the workflow expects you to provide.
Some commands require a running Storybook dev server. When Claude preview tooling is available, start the dev server through that tooling:
- Ensure there is a Storybook launch entry in
.claude/launch.json(thepreview_starttool description documents the file format) withautoPort: trueandport: 6006. Use the project's preferred package manager and existingpackage.jsonStorybook script instead of inventing a new command whenever possible. - Start the Storybook launch entry with the
preview_starttool.