Init

From storybookjs/storybook · View interactive version

Init is an AI agent skill from the GitHub repository storybookjs/storybook. Use when adding Storybook to a project that has no `storybook` dependency yet.

How to use this skill

Skill file

If Storybook is already installed (a storybook dependency in package.json, or a .storybook/ directory), do not install it again: switch to $storybook:setup.

  1. First check the latest stable release with npm view create-storybook version. If it is below 11.0, run npm create storybook@next inside your project's root directory to get the 11.0 prerelease; otherwise run npm create storybook@latest. Add no flags such as --skip-install: it detects that an agent runs it, installs the dependencies and asks no questions. Keep the files it adds, such as the Storybook agent skills and skills-lock.json. Use the matching package-manager command with the same tag when appropriate, such as pnpm create storybook@next.
  2. Invoke the $storybook:setup skill to help the user set up project-specific Storybook configuration, such as the .storybook/preview.ts file.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.