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 `$storybook:write-stories` instead.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Setup?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/storybookjs-setup)
---
name: 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 `$storybook:write-stories` instead.
---
Prerequisites:
1. Storybook is installed when `package.json` lists a `storybook` dependency, of any version, or the project has a `.storybook/` directory (hidden: `ls -a` lists it, `rg --files` does not). Only when it has neither, switch to `$storybook:init`.
2. Storybook must be 11.0 or later. An 11.0 prerelease (`11.0.0-alpha.x`, `-beta.x` or `-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:upgrade` and 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).
Read its output in full, without `head` or `tail`: every step in it is required. **Follow the printed Markdown precisely.** Do not substitute your own plan.