Agent Skills
› sanity-io/sanity
› storybook-setup
storybook-setup
GitHub在 Storybook 已安装且版本达标时,生成 preview 文件和真实组件的 stories。
Trigger Scenarios
用户请求配置 Storybook 预览文件
需要为现有组件生成故事
Install
npx skills add sanity-io/sanity --skill storybook-setup -g -y
SKILL.md
Frontmatter
{
"name": "storybook-setup",
"description": "Use this skill when Storybook is already installed and the user wants a working `preview` file and stories for real components."
}
Prerequisites:
- Confirm Storybook exists (
package.json,.storybook/). If not, switch to/storybook-init. - Storybook must be at least 10.5 (or
nextwhile 10.5 is not yet released). If it is older, or upgrade/repair is needed first, switch to/storybook-upgrade.
Run npx storybook ai setup from the project root (or the Storybook package in a monorepo).
Follow the printed Markdown precisely. Do not substitute your own plan.
Version History
- a94b3d8 Current 2026-08-28 22:14


