storybook-screenshot-story
Skill by podman-desktop
Captures 2x HiDPI PNG screenshots of a Storybook component story in light, dark, hc-light and hc-dark themes. Built for developers who need theme-accurate retina images of their Storybook stories.
Install storybook-screenshot-story
Built from the published package, never by AI.
git clone --depth 1 https://github.com/podman-desktop/podman-desktop /tmp/podman-desktop && mkdir -p ~/.claude/skills && cp -r /tmp/podman-desktop/.agents/skills/storybook-screenshot-story ~/.claude/skills/storybook-screenshot-storyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install storybook-screenshot-story in Claude Code
git clone --depth 1 https://github.com/podman-desktop/podman-desktop /tmp/podman-desktop && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/podman-desktop/.agents/skills/storybook-screenshot-story ~/.gemini/antigravity-cli/skills/storybook-screenshot-storyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install storybook-screenshot-story in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill captures retina-quality PNG screenshots of a single Storybook story. It uses a 2x device scale factor, so an 800 by 200 CSS viewport produces a 1600 by 400 image. Each of the four themes (light, dark, hc-light and hc-dark) is saved as a separate file named with a prefix the user chooses.
The assistant opens the story's iframe on a local Storybook dev server at port 6006 through the Playwright MCP server and sets the theme with a global parameter. It then reads each PNG to check that the theme rendered and reports the file sizes. The source says it should be used when a user asks to screenshot, capture or grab an image of a Storybook story or component.
Written from the project's SKILL.md and checked against it.
What it can do
- Four-theme captureCaptures light, dark, hc-light and hc-dark variants of one Storybook story.
- HiDPI outputUses CDP Emulation.setDeviceMetricsOverride with deviceScaleFactor set to 2.
- Viewport sizingSets the CSS width and height of the capture, with a default of 800 by 200.
- Batch captureCaptures all four themes in one browser_run_code_unsafe call.
- Visual verificationReads each screenshot to confirm the correct theme rendered.
- Result reportLists the produced files with their file sizes.
What you need
- Storybook dev server running on port 6006 (pnpm --filter storybook dev)
- Playwright MCP server available
- pnpm
Try asking
- Screenshot the progress-linearprogress--basic story in all four themes
- Capture 2x retina PNGs of the button story at 800 by 200 into ./shots
- Grab an image of the linear progress component in dark and hc-dark
Good to know
- Captures a single frame, so animation in a component is not shown.
- Requires the Storybook dev server to be running on port 6006.
- For animated components, the source recommends the storybook-record-video skill instead.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/storybook-screenshot-story/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB
Alternatives to storybook-screenshot-story
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-screenshot-story: common questions
What size is the output image?
The PNG has true 2x pixel dimensions. An 800 by 200 CSS viewport produces a 1600 by 400 PNG.
Which themes does it capture?
It captures light, dark, hc-light and hc-dark, passed as the theme global in the story URL.
Can it record animated components?
No. It captures a single frame. The source points to the storybook-record-video skill for animated components.
How do I install storybook-screenshot-story?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is storybook-screenshot-story free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is storybook-screenshot-story safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to storybook-screenshot-story?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
