Setup

From storybookjs/storybook · View interactive version

Setup is an AI agent skill from the GitHub repository storybookjs/storybook. 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.

How to use this skill

Skill file

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.