# storybook-init

Adds Storybook to a project that has none yet, running the installer and then the project setup step.

Skill by Storybook. Category: Web and browsers.

## Install

Project (for this project only):

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

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-init -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: Pass

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

## Source

[Open the source](https://github.com/storybookjs/storybook/tree/HEAD/code/lib/claude-plugin/skills/storybook-init). 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-init
description: Use when adding Storybook to a project that does not have Storybook configured yet.
---

1. Run `npm create storybook@latest` inside your project's root directory to install the latest version of Storybook (if the latest stable release is below 11.0, run `npm create storybook@next` instead to get the 11.0 alpha). Use the matching package-manager command when appropriate, such as `pnpm create storybook@latest` or `yarn create storybook`.
2. Invoke the `/storybook-setup` skill to help the user set up project-specific Storybook configuration, such as the `.storybook/preview.ts` file.
````

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