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

Skill by imbue-ai

Starts the Storybook dev server and uses Playwright to take screenshots of component stories. Built for visual checks of UI component designs and for iterating on how a component looks.

  • Score 70
  • 286 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install storybook-screenshot

Built from the published package, never by AI.

git clone --depth 1 https://github.com/imbue-ai/sculptor /tmp/sculptor && mkdir -p ~/.claude/skills && cp -r /tmp/sculptor/.claude/skills/storybook-screenshot ~/.claude/skills/storybook-screenshot

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

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

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill describes how to start the Storybook dev server in the background and use Playwright to take screenshots of component stories. It gives the assistant a step-by-step workflow. The steps cover setting up a log file and a screenshots folder in the workspace, running a Python Playwright script, displaying results inline in chat, and stopping the server afterward.

The skill is written for a repository with a sculptor/frontend folder. It explains how to read the actual port from the Storybook log, build iframe URLs for stories with a theme parameter, and list all story IDs from the index.json endpoint. It also covers clipping screenshots to the component root, setting viewport sizes, and recording video. It is meant for visual verification of UI component designs and for adjusting how a component looks.

Written from the project's SKILL.md and checked against it.

What it can do

  • Start Storybook in the backgroundRuns the Storybook dev server as a background task so it does not block the session.
  • Screenshot stories with PlaywrightNavigates to story iframe URLs and saves PNG screenshots with Playwright.
  • Light and dark themesBuilds story URLs with a theme parameter so screenshots can be taken in either theme.
  • Record videoRecords a Playwright browser context to a webm video in the screenshots folder.
  • Clip to componentTakes a screenshot of the story root element to remove surrounding padding.
  • List story IDsFetches the Storybook index.json and prints all story IDs.
  • Show results in chatDisplays saved screenshots or videos inline in chat using absolute file paths.

What you need

  • Node.js and npm
  • Dependencies installed in sculptor/frontend (node_modules)
  • Python with Playwright in a .venv at the repository root
  • Generated src/api types, created with npm run generate-api

Try asking

  • Take a dark theme screenshot of the AskUserQuestion single question story.
  • Screenshot all variants of the Radix Button story in light and dark themes.
  • Record a short video of the Radix Dialog story and show it in chat.

Good to know

  • The skill is tied to the sculptor/frontend layout and story names shown in the source.
  • Stories that import from ~/api fail to compile if src/api is missing.
  • The Storybook server must be stopped with TaskStop when finished.
  • Running npm run storybook in the foreground blocks the session, so the skill says not to do it.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/storybook-screenshot/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to storybook-screenshot

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

storybook-screenshot: common questions

Why does the Storybook port sometimes change?

Storybook picks a different port if 6006 is busy. The skill says to read the actual URL from the log and use that port in later steps.

Why use the iframe URL instead of the Storybook shell?

The iframe URL renders only the component, without the sidebar and toolbar, which gives cleaner screenshots.

Where are the screenshots saved?

They are saved to attachments/screenshots inside the workspace root, which is the parent of the current code directory.

How do I install storybook-screenshot?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is storybook-screenshot free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is storybook-screenshot safe to use?

It scores 70 of 100. Grades: maintenance A, licence A, quality B. 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?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

storybook-screenshot Install

Add to stack

Loading.