Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 82
  • 8.2k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-story

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install storybook-screenshot-story in Claude Code

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

A

No 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 →

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.

storybook-screenshot-story Install

Add to stack

Loading.