跳到正文
cccskills
免费在 GitHub 公开中文介绍

ui-workflow

在Storybook中查找可复用的界面组件,随组件变更创建或更新展示示例,运行测试,并发布整理后的评审,供他人查看变更结果。

原文查看原文说明

Storybook's workflow for UI changes in a project with Storybook - look up the components to reuse, write and update stories, run story tests, and publish a review of the result. Also shows existing components or stories in a review. Use when the project's agent instructions (such as AGENTS.md) or the user ask for it.

AI 评分90分/ 100查看安装方法

适用场景

  • 查找可用于界面修改的现有组件
  • 随组件变更更新展示示例
  • 运行展示示例测试
  • 分享界面变更评审

中文介绍

功能

ui-workflow用于采用Storybook的项目,将界面修改推进到评审发布。它会查找可复用的现有组件,创建或更新称为故事的组件展示示例,并运行故事测试。组件新增、修改或删除时,展示示例也会同步调整。你可以选取变更后的组件或现有组件,整理成评审。

适用场景

适合在修改页面前寻找可用组件,或需要让实现与展示示例保持一致的情况。交付修改后的界面外观时,也可以让使用者继续在Storybook中浏览和确认结果。

使用示例

  • “请复用现有组件修改界面,同时更新故事和测试。”
  • “请把这次修改的组件整理成Storybook评审。”

注意事项

需要Storybook 11.0或更高版本,符合条件的预发布版和canary构建也适用。首次安装或升级需要用户批准。CLI必须在安装了Storybook的软件包目录中运行。工作完成后,需要保持开发服务器运行,让使用者继续查看。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

客观评估

AI 仅根据 SKILL.md 的内容,从 4 个方面进行了评估。星标数和热度不计入评估。

指令清晰度能否看出何时使用、做什么
A良好明确说明界面变更中的组件查找、故事更新、测试和评审发布。
步骤具体性步骤、输入输出和示例是否具体
B部分不足运行目录和服务器步骤具体,但工作顺序依赖CLI输出。
安全性发送数据、删除文件、执行命令等是否有说明
A良好明确规定安装和升级的批准条件,并要求保持开发服务器运行。
安装难易度所需工具和 API 密钥是否少且有说明
A良好明确列出所需Storybook版本及安装、升级使用的技能。

总分按每项 A=25 分、B=15 分、C=5 分相加。 由 AI(OpenAI Codex)于 2026年10月21日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(1)

  • SKILL.md2.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Prerequisites:

  1. Storybook must be installed in the project. Invoke the /storybook-init skill to set up Storybook, but only if the user explicitly invoked this skill and approves a Storybook installation.
  2. Storybook must be 11.0 or later. An 11.0 prerelease (11.0.0-alpha.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-upgrade skill only after the user explicitly approves an upgrade.

Run the Storybook dev server and every Storybook CLI command from the same working directory: the package where Storybook is installed (in a monorepo often a leaf package such as packages/ui).

If the sandbox blocks network access or ports, request escalated permissions for Storybook CLI commands; otherwise the dev server can fail in confusing ways (for example, it finds no free port to bind to).

Run npx storybook skills ui-workflow and read the output in its entirety to get the mandatory, ordered workflow for working on UI changes, writing stories, and keeping stories in sync with every frontend component you create, modify, or delete. This workflow explains how to write stories, preview stories, and display a curated Storybook review.

Some commands require a running Storybook dev server:

  1. Reuse a dev server that already serves this project's Storybook (probe the URL, usually http://localhost:6006) instead of starting a second one. Otherwise start one in the background, using the project's preferred package manager and existing package.json Storybook script (e.g. npm run storybook) instead of inventing a new command whenever possible. Wait until the URL responds before running commands that need it.
  2. The dev server is part of the deliverable, not a temporary verification tool: leave it running when your work is done so the user can keep browsing stories. Never kill it after verification.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

canary

免费有简介AI 评分 80分

查找Storybook指定分支的试验版软件包,必要时执行发布流程,跟踪发布状态,并提供用于新建项目或更新现有项目的命令。

  • 查找指定分支的试验版
  • 发布来自派生仓库的拉取请求试验版
  • 确认发布状态与安装命令
storybookjs/storybook9.1万2026年10月22日 更新

component-docs

免费有简介AI 评分 90分

通过Storybook查询项目现有界面组件、配置参数和使用示例,用于回答组件用法问题,并在重复实现前判断能否复用现有组件。

  • 查找现有界面组件
  • 查看组件配置参数和使用示例
  • 询问组件用法
storybookjs/storybook9.1万2026年10月22日 更新

docs-review

免费有简介AI 评分 90分

根据读者和页面目的,审核、改进或新写Storybook的/docs文档。既可调整结构和示例、统一格式,也可讨论页面定位与文档规划。

  • 改进说明页面的结构和示例
  • 起草新功能文档
  • 讨论页面类型和目录
storybookjs/storybook9.1万2026年10月22日 更新

fix-linting-types-on-pr

免费有简介AI 评分 80分

检出GitHub的PR,修复lint代码规范问题和TypeScript类型错误,完成提交与推送。支持来自分支仓库的PR,并通过重复类型检查验证修复。

  • 修复PR中的lint错误
  • 修复PR中的TypeScript错误
  • 修复来自分支仓库的PR
storybookjs/storybook9.1万2026年10月22日 更新

github-qa-labels

免费有简介AI 评分 80分

为QA测试发现的GitHub Issue和PR添加发布版本追踪标签,并按影响程度与变通方案为漏洞分类。支持批量添加标签,严重程度标签仅用于程序缺陷。

  • 按发布版本整理QA发现的问题
  • 划分程序缺陷的严重程度
  • 批量为Issue和PR添加标签
storybookjs/storybook9.1万2026年10月22日 更新

handle-pr-comments

免费有简介AI 评分 90分

逐条整理 GitHub 拉取请求中尚未解决的审查意见,说明问题并提出修改方案,再按用户选择修改代码、回复或跳过,处理提交及将讨论标为已解决。

  • 处理 PR 中未解决的审查意见
  • 选择修改、回复或跳过
  • 合并处理重复审查意见
storybookjs/storybook9.1万2026年10月22日 更新

查看 storybookjs 的全部技能

报告此技能的问题