Skip to content
Skillpedia
Websites & UI (frontend)91k · #1326

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.md

Copy 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

Use this skill to help me: https://github.com/storybookjs/storybook/blob/next/code/lib/claude-plugin/skills/storybook-setup/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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:

  1. Confirm Storybook exists (package.json, .storybook/). If not, switch to /storybook-init.
  2. 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-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).

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills