rebuild-restart-storybook

Installation
SKILL.md

Rebuild and Restart Storybook

After making changes to internal Storybook code (core, addons or otherwise), follow this workflow.

Step 1: Ask whether to rebuild and restart (in case of model invocation)

Unless the user explicitly ran /rebuild-restart-storybook, ask the user whether they want to rebuild and restart Storybook. If they decline, stop here.

Step 2: Determine modified packages

Build a space-separated list of the monorepo packages that were modified in the conversation. For each modified package, find its Nx project name in the project.json file in that package's directory (the name field), not the package.json name.

For example, if code/addons/review and code/addons/vitest were modified, the list is addon-review addon-vitest.

Step 3: Run the build and start commands in sequence

Run these in the code directory, in order. Substitute <extra packages> with the list from Step 2.

Installs
1
GitHub Stars
90.5K
First Seen
10 days ago
rebuild-restart-storybook — storybookjs/storybook