
storybook-rsbuild
Set up or migrate Storybook to Rsbuild, configure rsbuildFinal, or integrate with Rslib, Modern.js, or Rspack.
- Installs
- 197
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/rstackjs/agent-skills --skill storybook-rsbuild- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads storybook-rsbuild automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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 3 | storybook-vue3-rsbuild | https://storybook.rsbuild.rs/guide/framework/vue |
| Vanilla JS/TS | storybook-html-rsbuild | https://storybook.rsbuild.rs/guide/framework/vanilla |
| Web Components | storybook-web-components-rsbuild | https://storybook.rsbuild.rs/guide/framework/web-components |
| React Native Web | storybook-react-native-web-rsbuild | https://storybook.rsbuild.rs/guide/framework/react-native-web |
3. Set up Storybook
- In monorepos, operate in the package that will host stories
- Read and follow the framework guide matched above; install the latest stable
storybookmajor and the matchingstorybook-<framework>-rsbuildmajor (Principle 2) - Add
@rsbuild/coretodevDependenciesdirectly, alongsidestorybook-<framework>-rsbuild(Principle 3) - Ensure
.storybook/main.*uses the correctframework: '<storybook-*-rsbuild>' - Ensure
package.jsonhasstorybook devandstorybook buildscripts - If no story file exists yet, scaffold at least one minimal example story (e.g.
src/stories/Example.stories.*) so Verification step 2 has something to render - Run Verification below
Migration workflow
Read the upstream migration guide: https://storybook.rsbuild.rs/guide/migration
Follow these steps in order:
- Detect migration type — read
.storybook/main.*(frameworkfield and/orcore.builder) andpackage.jsondependencies to classify as "from webpack5" or "from Vite", then select the matching section in the migration guide - Resolve version compatibility — read the "Version compatibility" section in the migration guide, select the correct
storybook-rsbuildmajor based on installed Storybook version - Replace packages — apply the install/remove mapping from the migration guide using the project's package manager (detect from lockfile); only change packages required by the migration. Always add
@rsbuild/coreas a direct devDep alongside the new framework package (Principle 3). Do not remove the old framework package or old devDeps yet — that happens after Verification (Principle 4) - Update
.storybook/main.*— apply the config changes exactly as shown in the migration guide for the detected framework - Migrate custom builder hooks — search for legacy builder hooks (
webpackFinal/viteFinal); if found, convert following the upstream configuration guide (https://storybook.rsbuild.rs/guide/configuration) - Handle addon compatibility — keep addons unchanged initially. If a webpack-only addon must change, route it through
webpackAddonsfor upstream auto-translation, or replace it with the Rsbuild-native equivalent — never silently drop it (Principle 5). Consult the migration guide's addon section for the recommended fix - Verify, then clean up — both required — run Verification below; once it passes, in the same task complete all of the following before reporting done (Principle 4):
- Remove the old framework package from
package.jsondevDependencies (e.g.@storybook/react-webpack5,@storybook/vue3-webpack5,@storybook/react-vite,@storybook/vue3-vite,@storybook/html-webpack5,@storybook/web-components-webpack5, etc.) - Remove the old builder package if separately listed (e.g.
@storybook/builder-webpack5,@storybook/builder-vite) - Delete the legacy
webpackFinal/viteFinalblock from.storybook/main.* - Drop any old-builder-only devDeps that no longer have consumers
- Re-run
pnpm install(or the project's package manager equivalent) so the lockfile reflects the cleanup
- Remove the old framework package from
If a factual mapping is needed (version table, package names, conversion patterns) and not present in this skill, fetch it from the upstream docs — do not guess.
Verification
storybook devstarts without errors- At least one story renders correctly in the browser (a clean dev-server boot is not sufficient — a missing-glob in
storiesor a broken framework wiring will only surface here) - HMR works
storybook buildcompletes- Check startup logs to confirm the Rsbuild builder is active (not webpack/vite)
Troubleshooting
- Cache issues: remove
node_modules/.cache/storybookand retry - Residual config: if dev fails after migration, temporarily remove custom
rsbuildFinalblock to isolate the issue, then re-add incrementally - For debugging and other issues, consult the upstream migration guide's "Debugging" section and https://storybook.rsbuild.rs/guide/configuration
Edge cases
- Monorepo: locate the package that hosts stories; operate there, not at root
- Multiple
.storybook/dirs: pick the one referenced bypackage.jsonscripts - TS path aliases: ensure aliases are preserved after migration; consult the upstream configuration guide for how to configure
rsbuildFinal
Configuration
For rsbuildFinal, builder options, TypeScript, and framework-specific options → read https://storybook.rsbuild.rs/guide/configuration
FAQ
What does the storybook-rsbuild skill do?
Set up or migrate Storybook to Rsbuild, configure rsbuildFinal, or integrate with Rslib, Modern.js, or Rspack.
How do I install storybook-rsbuild?
Run npx skills add https://github.com/rstackjs/agent-skills --skill storybook-rsbuild in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/storybook-rsbuild/ (personal) or .claude/skills/storybook-rsbuild/ (project).
Which AI agents can use storybook-rsbuild?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is storybook-rsbuild safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains storybook-rsbuild?
It is published by rstackjs in rstackjs/agent-skills. It has 197 recorded installs.
More from rstackjs/agent-skills
rsbuild-best-practices
rstackjs/agent-skills
Configure, review, or troubleshoot Rsbuild applications, including build/dev commands, assets, type checking, and bundle optimization.
rstest-best-practices
rstackjs/agent-skills
Set up, write, or review Rstest tests and configuration, including environments, mocks, snapshots, coverage, and CI.
rslib-best-practices
rstackjs/agent-skills
Configure, review, or troubleshoot Rslib library builds, output formats, declarations, dependency handling, and integrations.
rspack-best-practices
rstackjs/agent-skills
Configure, review, or troubleshoot Rspack builds, including loaders, CSS, assets, type checking, bundle optimization, and profiling.
rspress-best-practices
rstackjs/agent-skills
Configure, review, or troubleshoot Rspress v2 sites, including content conventions, navigation, MDX, assets, search, and deployment.
rspack-v2-upgrade
rstackjs/agent-skills
Use when upgrading a Rspack 1.x project to v2, including dependency and configuration updates.
Popular ai & agents skills
google-agents-cli-publish
google/agents-cli
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
google-agents-cli-eval
google/agents-cli
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
codex-pet
prime-skills/runcomfy-agent-skills
Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.
full-output-enforcement
leonxlnx/taste-skill
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
executing-plans
obra/superpowers
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available