storybook-rsbuild
Set up or migrate Storybook to Rsbuild, configure rsbuildFinal, or integrate with Rslib, Modern.js, or Rspack.
от rstackjs★ 101 звезда на GitHub
Установить storybook-rsbuild в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Storybook Rsbuild
Goal
Set up Storybook on Rsbuild, or migrate an existing Storybook to it. Factual mappings — version compatibility, package names, install commands, config conversion patterns — live in upstream docs at storybook.rsbuild.rs. This skill is an action router and a behavioral checklist; it does not duplicate the docs.
Principles (must follow)
Single source of truth is upstream. Fetch the relevant
storybook.rsbuild.rspage for version tables, install commands, and config conversion patterns. Do not infer version pins or package names from training memory — the ecosystem moves faster than the model's prior.Pin from the framework guide's Requirements table. Each framework guide page (e.g.
https://storybook.rsbuild.rs/guide/framework/react) carries a Requirements section listing the canonical compatible version ranges — that is the authoritative source for version pins. For fresh setups, install the latest stablestorybookmajor and the matchingstorybook-rsbuildmajor. Do not pin from version numbers you see in code snippets elsewhere; only the docs are authoritative.Declare
@rsbuild/coredirectly.storybook-<framework>-rsbuildlists@rsbuild/coreas a peer dependency, but you must still add@rsbuild/coreto the project's owndevDependenciesso version pins and lockfile audits remain unambiguous and a future framework-package release that drops the peer cannot silently break the build.Migration is one task with two ordered phases — both required. Phase A: install the new framework package and update config; leave the old framework package, old builder package, and old
webpackFinal/viteFinalblocks in place so Verification has a rollback path. Phase B: as soon as Verification passes, in the same task, remove the old framework package (e.g.@storybook/react-webpack5,@storybook/vue3-vite), the old builder package (e.g.@storybook/builder-webpack5,@storybook/builder-vite), and the oldwebpackFinal/viteFinalblock. A migration that ends with both builders' framework packages still inpackage.jsonis incomplete — leaving them is the most common silent regression in this skill's evals. Phase A on its own is not a valid stopping point; if you ran Verification, you must also run cleanup.Preserve addons; never silently drop. When migrating, webpack-only addons (e.g.
@storybook/addon-styling-webpack) must either be passed throughwebpackAddons(so upstream auto-translation handles them) or replaced with the equivalent Rsbuild-native pipeline (@rsbuild/plugin-postcss,tools.postcss, etc.). A migration that removes a styling addon and produces a passingstorybook buildbut a visually broken story tree is still a regression.Operate in scope. In monorepos, modify only the package that hosts stories. Do not edit business source files unless the migration strictly requires it.
Step 1 — detect scenario
Read package.json and project structure to determine existing Storybook state:
- Check for
.storybook/directory (in monorepos, check both root and per-package) - Check
package.jsonforstorybookscripts or@storybook/*/storybook-*-rsbuildin dependencies or devDependencies - If Storybook exists and already uses
storybook-*-rsbuild→ already set up; go to Configuration or Troubleshooting as needed - If Storybook exists with a non-Rsbuild builder (
@storybook/*-webpack5,@storybook/*-vite, etc.) → go to Migration Workflow - No Storybook found → go to Fresh Setup Workflow
Fresh setup workflow
1. Detect ecosystem integration
Read package.json dependencies and devDependencies, check in order:
| Signal | Ecosystem | Integration guide |
|---|---|---|
@rslib/core |
Rslib | https://storybook.rsbuild.rs/guide/integrations/rslib |
@modern-js/app-tools |
Modern.js | https://storybook.rsbuild.rs/guide/integrations/modernjs |
@rspack/core without @rsbuild/core |
Pure Rspack | https://storybook.rsbuild.rs/guide/integrations/rspack |
If matched, read the integration guide and apply its constraints as an overlay alongside the steps below.
2. Detect UI framework
Infer the UI framework from app dependencies (react, vue, lit, etc.):
| UI Framework | Framework package | Guide |
|---|---|---|
| React | storybook-react-rsbuild |
https://storybook.rsbuild.rs/guide/framework/react |
| Vue |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл storybook-rsbuild?
Set up or migrate Storybook to Rsbuild, configure rsbuildFinal, or integrate with Rslib, Modern.js, or Rspack.
Как установить скилл storybook-rsbuild?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл storybook-rsbuild запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…