storybook-startup-benchmark
Skill by storybookjs
Measures Storybook startup time from spawning `storybook dev` until the first story renders in the browser. It is for developers who need repeatable boot-time benchmarks, regression checks, or version and feature-flag comparisons.
Install storybook-startup-benchmark
Built from the published package, never by AI.
git clone --depth 1 https://github.com/storybookjs/storybook /tmp/storybook && mkdir -p ~/.claude/skills && cp -r /tmp/storybook/.agents/skills/storybook-startup-benchmark ~/.claude/skills/storybook-startup-benchmarkRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install storybook-startup-benchmark in Claude Code
git clone --depth 1 https://github.com/storybookjs/storybook /tmp/storybook && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/storybook/.agents/skills/storybook-startup-benchmark ~/.gemini/antigravity-cli/skills/storybook-startup-benchmarkAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install storybook-startup-benchmark in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Storybook Startup Benchmark is an agent skill for measuring how long Storybook takes to start. It splits the time into three segments: server, from process spawn until the Storybook server responds; browser, from server response until the first story renders; and total, from spawn until the first story renders. The skill guides the assistant to build or reuse a repeatable Node script that starts Storybook without opening a browser, waits for HTTP readiness, and launches a browser it controls.
The script waits for a preview-side signal set after the first story mounts and one requestAnimationFrame. With a repeat count, it prints per-run results and grouped summary stats with average, min, max and p95 values. The skill is aimed at developers who want to check Storybook boot time, investigate startup regressions, or compare Storybook versions or feature flags. It also includes guidance for telling server-side regressions from render-side ones.
Written from the project's SKILL.md and checked against it.
What it can do
- Three timing segmentsReports server, browser and total startup times separately.
- Repeat runs with summary statsGroups average, min, max and p95 values for each segment across repeated runs.
- Preview-side render signalMarks the first story render after one requestAnimationFrame in the preview.
- Controlled benchmark harnessFails fast on a busy port, spawns Storybook without a browser, and kills the process group on cleanup.
- Regression interpretationGives heuristics for whether growth points to the server, the browser, or tail latency.
What you need
- Node.js, since the benchmark is a plain Node script
- A Storybook project that can run `storybook dev`
- A Chrome-family browser if using remote debugging as the control path
Try asking
- Measure Storybook startup time from spawn to first story render
- Run 20 Storybook startup measurements and summarize the averages
- Is this Storybook startup regression server-side or render-side?
Good to know
- Warm repeated runs are not cold-start data.
- A stale Storybook server on the same port can give unrealistically low server averages.
- Root cause should not be claimed unless server and render behavior are isolated.
Security check
B- Allowed to use Bash without limitsIn
SKILL.md
Checked automatically: .agents/skills/storybook-startup-benchmark/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: BashRead
-
SKILL.md5 KB
Alternatives to storybook-startup-benchmark
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
storybook-startup-benchmark: common questions
Does this measure only the Storybook CLI output?
No. The source says server listening is not the same as first story rendered, so the benchmark times until a story renders in the browser.
Will Storybook open a browser window during the benchmark?
Storybook 11 opens one only with --open. Storybook 10 and older need --no-open. The external harness launches the browser it controls.
Can this compare feature flags or Storybook versions?
Yes. The skill is described for comparing Storybook versions or feature flags, and it notes that a feature can erase newer startup gains.
How do I install storybook-startup-benchmark?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is storybook-startup-benchmark free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is storybook-startup-benchmark safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.
What are alternatives to storybook-startup-benchmark?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
