Skip to main content

init

Use when adding Storybook to a project that does not have Storybook configured yet.

Quellinformationen

Repository
storybookjs/storybook
Letzte Quellaktivität
13. Oktober 2026 um 15:52
Erkannte Sprache von SKILL.md
Englisch
Sterne
91.373
Forks
10.458

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
init
description
Use when adding Storybook to a project that does not have Storybook configured yet.
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 alpha; otherwise run `npm create storybook@latest`. 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.
Auf GitHub ansehen