Skip to main content

init

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

来源信息

仓库
storybookjs/storybook
最近来源活动
2026年10月13日 15:52
检测到的 SKILL.md 语言
英语
星标
91,316
分支
10,491

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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.
在 GitHub 查看