Storybook Setup storybook-setup
Use this skill when Storybook is already installed and the user wants it set up for the project, with a working `preview` file and stories for its real components. To write or update the stories of a component, use `/write-stories` instead.
- Our test
- 7/10✓ Verified
- tested Dec 6, 2026
- GitHub stars
- 92k
- storybookjs/storybook
- Added by
- 0
- members
- Updated
- Dec 6
- commit 925c7d7
- Content
- 1 file
- no scripts · 1 KB
- License
- MIT
- free to use
What our test found
Le skill définit des prérequis et une procédure de configuration vérifiable, mais laisse l’exécution détaillée dépendre entièrement de la sortie de la commande.
Limits spotted
- Does not specify how to determine the Storybook version or handle cases where checks fail.
- Does not describe a fallback procedure if the setup command fails or returns ambiguous steps.
name: storybook-setup description: Use this skill when Storybook is already installed and the user wants it set up for the project, with a working `preview` file and stories for its real components. To write or update the stories of a component, use `/write-stories` instead.
Prerequisites:
- Storybook is installed when
package.jsonlists astorybookdependency, of any version, or the project has a.storybook/directory (hidden:ls -alists it,rg --filesdoes not). Only when it has neither, switch to/storybook-init. - Storybook must be 11.0 or later. An 11.0 prerelease (
11.0.0-alpha.x,-beta.xor-rc.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 in a command of its own, without head or tail, from the project root (or the Storybook package in a monorepo), and read its output: the steps that set up Storybook for this project. Every step in it is required, and setup is done only when its "Done when" list holds, which includes passing story tests.