查找Storybook指定分支的试验版软件包,必要时执行发布流程,跟踪发布状态,并提供用于新建项目或更新现有项目的命令。
- 查找指定分支的试验版
- 发布来自派生仓库的拉取请求试验版
- 确认发布状态与安装命令
测量Storybook从进程启动到首个故事显示的时间,分别统计服务器响应与浏览器渲染耗时,汇总重复运行结果,用于比较版本或功能开关。
Measure Storybook startup time from spawning `storybook dev` until the first story renders in the browser. Use when the user asks about Storybook boot time, server-ready timing, first story render timing, startup regressions, benchmarking with repeat runs, or comparing Storybook versions or feature flags.
实测评分 未实测
查看安装方法通过可重复的步骤,测量Storybook从启动到首个故事显示的时间。结果分为三项:server是进程启动到服务器响应的耗时,browser是服务器响应到渲染完成的耗时,total是全程耗时。重复运行时,会汇总平均值、最小值、最大值和p95,便于了解通常的等待时间及较慢运行的表现。
适合比较Storybook版本更新前后,或更改功能开关前后的启动时间。分开统计的结果也能提供线索,帮助判断增加的耗时来自服务器端还是浏览器端。
storybook dev到首个故事显示的时间。”此流程需要Storybook、Node脚本及可控制的浏览器。从常规的/页面打开,在首次挂载后等待一次requestAnimationFrame(),再结束计时。需要留意残留的服务器进程和已被占用的端口。预热状态下的重复测量结果不能作为冷启动数据。
本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。
AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。
不计入评分。 由 AI(OpenAI Codex)于 2026年10月21日 评估。仅供参考,安装前请同时查看原文。
安装前可以查看交给 AI 代理的指令内容。
Use this skill to build or explain a repeatable benchmark for Storybook startup:
server: process spawn -> Storybook server respondsbrowser: server responds -> first story renderedtotal: process spawn -> first story renderedWhen asked to benchmark Storybook startup:
storybook dev/, not iframe.htmlrequestAnimationFrame()--repeat <count> support with grouped summary stats.Use these defaults unless the user asks otherwise:
/requestAnimationFrame()--open; Storybook 10 and older need --no-openDo not measure only CLI output. Server listening is not the same as first story rendered.
Add a small global preview decorator or component that runs once on the first story mount:
requestAnimationFrame()window.__sbStartupBenchmarkwindow.top when same-originperformance.mark('sb:first-story-rendered')Preferred payload:
{
firstStoryRenderedAt: performance.now(),
storyId: id
}
The benchmark script should:
/For --repeat N, print:
server, browser, and total5.2s or 2m15s, not raw millisecond field namesRecommended summary fields:
{
"server": {
"average": "5.2s",
"min": "4.8s",
"max": "6.1s",
"p95": "6.0s"
},
"browser": {
"average": "1.9s",
"min": "1.6s",
"max": "2.4s",
"p95": "2.3s"
},
"total": {
"average": "7.1s",
"min": "6.6s",
"max": "8.2s",
"p95": "8.1s"
}
}
Use these heuristics when explaining results:
server grows, the regression is likely on the server/build side.browser grows, the regression is likely in manager boot, preview boot, or first-story render.p95 grows a lot, the feature likely increases variability or tail latency.iframe.html loads instead of normal /If a repeated benchmark reports unrealistically low server.average, first check for a stale Storybook server on the same port.
When reporting results:
server, browser, and totalUse this skill when the user says things like:
storybook dev to first story render"还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
查找Storybook指定分支的试验版软件包,必要时执行发布流程,跟踪发布状态,并提供用于新建项目或更新现有项目的命令。
通过Storybook查询项目现有界面组件、配置参数和使用示例,用于回答组件用法问题,并在重复实现前判断能否复用现有组件。
根据读者和页面目的,审核、改进或新写Storybook的/docs文档。既可调整结构和示例、统一格式,也可讨论页面定位与文档规划。
检出GitHub的PR,修复lint代码规范问题和TypeScript类型错误,完成提交与推送。支持来自分支仓库的PR,并通过重复类型检查验证修复。
为QA测试发现的GitHub Issue和PR添加发布版本追踪标签,并按影响程度与变通方案为漏洞分类。支持批量添加标签,严重程度标签仅用于程序缺陷。
逐条整理 GitHub 拉取请求中尚未解决的审查意见,说明问题并提出修改方案,再按用户选择修改代码、回复或跳过,处理提交及将讨论标为已解决。