# storybook-setup

Creates a working Storybook preview file and real component stories in a project that already runs Storybook 11 or later.

Skill by Storybook. Category: Web and browsers.

## Install

Project (for this project only):

```sh
npx skills add storybookjs/storybook --skill storybook-setup
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

Global (for every project on this machine):

```sh
npx skills add storybookjs/storybook --skill storybook-setup -g
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

## Tags

- Runs on your computer: It runs as a program on your machine, with your access.

## Security audits

- Gen Agent Trust Hub: Pass
- Socket: Pass
- Snyk: Warn

Installs: 37. Installs counted by skills.sh. [Open on skills.sh](https://www.skills.sh/storybookjs/storybook/storybook-setup)

## Source

[Open the source](https://github.com/storybookjs/storybook/tree/HEAD/code/lib/claude-plugin/skills/storybook-setup). Checked 2026-10-10. This summary may contain AI-generated text, so it can be wrong. Check the source before you rely on it.

## SKILL.md

````markdown
---
name: storybook-setup
description: Use this skill when Storybook is already installed and the user wants a working `preview` file and stories for real components.
---

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`, but only if the user explicitly approved a Storybook 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.
````

- Previous: [stories](https://syn4pse.dev/terminal/storybook-stories.md)
- Next: [storybook-init](https://syn4pse.dev/terminal/storybook-init.md)
- [Terminal](https://syn4pse.dev/terminal.md)
- [Suggest a change](mailto:terminal@syn4pse.dev?subject=Terminal%20suggestion)
