Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

storybook-rsbuild故事书 rsbuild

Agent Skill

storybook-rsbuild 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,606

周安装

69

GitHub Stars

64

下载量

563
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:storybook-rsbuild(故事书 rsbuild)
来源仓库:https://github.com/rstackjs/agent-skills
仓库路径:skills/storybook-rsbuild
安装命令:
npx skills add https://github.com/rstackjs/agent-skills --skill storybook-rsbuild
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/rstackjs/agent-skills --skill storybook-rsbuild

简介

storybook-rsbuild 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于快速信息收集和筛选的场景,如研究、调研或内容创作。
  • 通过关键词匹配和来源分析,帮助 Agent 高效定位相关内容。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 可结合来源仓库和原始 README 继续核验具体用法和实现细节。

SKILL.md

Storybook Rsbuild

Step 1 — Detect scenario

Read package.json and project structure to determine existing Storybook state:

  1. Check for .storybook/ directory (in monorepos, check both root and per-package)
  2. Check package.json for storybook scripts or @storybook/* / storybook-*-rsbuild in dependencies or devDependencies
  3. If Storybook exists **and already uses storybook-*-rsbuild** → already set up; go to Configuration or Troubleshooting as needed
  4. If Storybook exists with a non-Rsbuild builder (@storybook/*-webpack5, @storybook/*-vite, etc.) → go to Migration Workflow
  5. No Storybook found → go to Fresh Setup Workflow

Fresh Setup Workflow

1. Detect ecosystem integration

Read package.json dependencies and devDependencies, check in order:

SignalEcosystemIntegration guide
@rslib/coreRslibhttps://storybook.rsbuild.rs/guide/integrations/rslib
@modern-js/app-toolsModern.jshttps://storybook.rsbuild.rs/guide/integrations/modernjs
@rspack/core without @rsbuild/corePure Rspackhttps://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 FrameworkFramework packageGuide
Reactstorybook-react-rsbuildhttps://storybook.rsbuild.rs/guide/framework/react
Vue 3storybook-vue3-rsbuildhttps://storybook.rsbuild.rs/guide/framework/vue
Vanilla JS/TSstorybook-html-rsbuildhttps://storybook.rsbuild.rs/guide/framework/vanilla
Web Componentsstorybook-web-components-rsbuildhttps://storybook.rsbuild.rs/guide/framework/web-components
React Native Webstorybook-react-native-web-rsbuildhttps://storybook.rsbuild.rs/guide/framework/react-native-web

3. Set up Storybook

  1. In monorepos, operate in the package that will host stories
  2. Read and follow the framework guide matched above
  3. Ensure .storybook/main.* uses the correct framework: '<storybook-*-rsbuild>'
  4. Ensure package.json has storybook dev and storybook build scripts
  5. Run Verification below

Migration Workflow

Read the upstream migration guide: https://storybook.rsbuild.rs/guide/migration

Follow these steps in order:

  1. Detect migration type — read .storybook/main.* (framework field and/or core.builder) and package.json dependencies to classify as "from webpack5" or "from Vite", then select the matching section in the migration guide
  2. Resolve version compatibility — read the "Version compatibility" section in the migration guide, select the correct storybook-rsbuild major based on installed Storybook version
  3. 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
  4. **Update .storybook/main.*** — apply the config changes exactly as shown in the migration guide for the detected framework
  5. 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)
  6. Handle addon compatibility — keep addons unchanged initially; if build errors indicate addon incompatibility, consult the migration guide's addon section and apply the recommended fix
  7. Verify — confirm the migration is complete, then run Verification below

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

  1. storybook dev starts without errors
  2. Stories render correctly
  3. HMR works
  4. storybook build completes
  5. Check startup logs to confirm the Rsbuild builder is active (not webpack/vite)

Troubleshooting

  • Cache issues: remove node_modules/.cache/storybook and retry
  • Residual config: if dev fails after migration, temporarily remove custom rsbuildFinal block 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 by package.json scripts
  • 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

Examples

For working sandboxes → https://storybook.rsbuild.rs/guide/examples

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.01%
按下载量换算208

Claude

25.31%
按下载量换算142

Cursor

18.91%
按下载量换算106

Gemini CLI

9.21%
按下载量换算52

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills