name: storybook-init description: Use when adding Storybook to a project that does not have Storybook configured yet, especially before enabling Storybook MCP workflows.
Storybook Init
Use this skill when a project does not already have Storybook configured.
Workflow
- Inspect the project to understand its framework, package manager, and workspace layout. Prefer the package manager already used by the repo.
- Run Storybook's official initializer from the project root:
npm create storybook@latest
Use the matching package-manager command when appropriate, such as pnpm create storybook@latest or yarn create storybook.
- Prefer the recommended setup unless the user asks for a minimal setup.
- If auto-detection fails, rerun the initializer with the closest explicit
--typevalue. - Add the MCP addon:
npx storybook add @storybook/addon-mcp
- Use
/storybook-setup-claude-launchto configure.claude/launch.jsonand start Storybook through that launch entry. - Note the Storybook invocation directory (where
storybook devruns) ascwdwhen using Storybook MCP proxy tools.
Guardrails
- Do not hand-write a full Storybook config when the official initializer can do it.
- Preserve existing app source and package manager choices.
- Do not start Storybook as an ad hoc Bash command or background task in Claude; use the Claude launcher entry.