storybook-setup
What it does
This skill guides the AI through setting up Storybook in a project that already has it installed. It creates the preview settings and stories for real components. It is for developers who want their components shown in Storybook.
When to use it
- ✓When Storybook is installed but has no working preview file.
- ✓When you want stories written for your real components.
- ✓When you have just installed Storybook and need the project-specific setup finished.
Skill link
https://github.com/storybookjs/storybook/blob/next/code/lib/claude-plugin/skills/storybook-setup/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Storybook is installed but empty. Set up the preview file and write stories for our main components.”
5 new skills a week. 1 minute to read.
How it works
The AI checks that Storybook is installed and at version 11.0 or later. It then runs the official setup command and follows its printed steps closely, instead of making its own plan.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Prerequisites:
- Confirm Storybook exists (
package.json,.storybook/). If not, switch to/storybook-init. - Storybook must be 11.0 or later. An 11.0 prerelease (
11.0.0-alpha.x) or a canary build (0.0.0-pr-*) also counts. If it is older, or upgrade/repair is needed first, switch to/storybook-upgradeand come back here afterwards. Treat a request to set up or install Storybook as approval to perform any required Storybook upgrade. For other requests, switch only after the user explicitly approves an upgrade.
Run npx storybook skills setup from the project root (or the Storybook package in a monorepo).
Follow the printed Markdown precisely. Do not substitute your own plan.
FAQ
What if Storybook is too old?
The skill says to switch to the upgrade skill first, and to upgrade only when the request or the user approves it.
Can it use its own setup plan?
No. The skill says to follow the printed instructions precisely and not substitute a personal plan.
Where is the preview file?
In the .storybook folder, such as .storybook/preview.ts.
Details
Original description by the author
Use this skill when Storybook is already installed and the user wants a working `preview` file and stories for real components.
repo: storybookjs/storybook
Popularity
- GitHub stars
- 91k
- Ranking position
- #1326
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
handle-pr-comments
91kHelps your agent work through GitHub pull request review comments one at a time, suggesting a fix, applying your choice and resolving the thread.
principle-encode-lessons-in-structure
91kTeaches your agent to turn repeated mistakes into automatic checks, such as a lint rule or script, instead of writing the same reminder again.
storybook-startup-benchmark
91kHelps your agent measure how long Storybook takes to start and show its first story, with repeat runs for fair comparisons.
storybook-upgrade
91kShows your agent how to upgrade all Storybook packages in a project to a chosen version, one major version at a time.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.