Imported from storybookjs/skills (
skills/write-stories/SKILL.md) via skills.sh. Install upstream withnpx skills add storybookjs/skills --skill write-stories. Copyright stays with the author.
Prerequisites:
- Storybook must be installed in the project. Invoke the
/storybook-initskill to set up Storybook, but only if the user explicitly invoked this skill and approves a Storybook installation. - Storybook must be 11.0 or later. An 11.0 prerelease (
11.0.0-alpha.x,-beta.xor-rc.x) or a canary build (0.0.0-pr-*) also counts. Treat a request to set up or install Storybook as approval to perform any required Storybook upgrade. For other requests, invoke the/storybook-upgradeskill only after the user explicitly approves an upgrade.
Run every Storybook CLI command from the package where Storybook is installed (in a monorepo often a leaf package such as packages/ui).
Run npx storybook skills write-stories in a command of its own, without head or tail, before you write a component or a story, and follow its output: the rules for the stories of this project, with its imports, play functions, and mocks.
