# Storybook Setup

> Use this skill when Storybook is already installed and the user wants a working `preview` file and stories for real components.

- Skill: `sanity-io/storybook-setup` (Agent Skill)
- Install (CLI): `npx get-skill add sanity-io/storybook-setup`
- Raw SKILL.md: https://api.skillmd.com/api/skills/sanity-io/storybook-setup/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: sanity-io (https://skillmd.com/u/sanity-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/sanity-io/storybook-setup

---


Prerequisites:

1. Confirm Storybook exists (`package.json`, `.storybook/`). If not, switch to `/storybook-init`.
2. Storybook must be at least 10.5 (or `next` while 10.5 is not yet released). If it is older, or upgrade/repair is needed first, switch to `/storybook-upgrade`.

Run `npx storybook ai setup` from the project root (or the Storybook package in a monorepo).

**Follow the printed Markdown precisely.** Do not substitute your own plan.

