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-visual-testing

Skill by igrlk

Makes Storybook stories deterministic so UI Verify stops reporting changes that are not real. Useful for teams setting up story-level visual tests or debugging a story that diffs on every run.

  • Score 72
  • 154 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install storybook-visual-testing

Built from the published package, never by AI.

git clone --depth 1 https://github.com/igrlk/storybook-addon-test-codegen /tmp/storybook-addon-test-codegen && mkdir -p ~/.claude/skills && cp -r /tmp/storybook-addon-test-codegen/.agents/skills/storybook-visual-testing ~/.claude/skills/storybook-visual-testing

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

Step-by-step: install storybook-visual-testing in Claude Code

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

About

This skill helps a Storybook story produce the same capture on every run, so UI Verify does not flag false changes. It covers only the variation the capturer cannot neutralize from outside the app: live data, the clock, infinite JavaScript animations, randomness that is not Math.random, and dynamic layout. It states that UI Verify already handles CSS animations, Math.random seeding, reduced motion, and font loading, so those are not repeated.

The main step is to give every story static args or fixtures, and to mock fetches with MSW where a story fetches internally. The skill also covers pinning the clock with storybook-addon-mock-date, and detecting a UI Verify capture through a user-agent marker or a global to render end states. It is aimed at developers who run visual tests on Storybook stories with UI Verify.

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

What it can do

  • Freeze live dataGives every story fixed args or fixtures so counts, lists and timestamps do not change between runs.
  • Mock fetches with MSWUses msw-storybook-addon so a story that fetches internally gets the same response every time.
  • Freeze the clockPins Date per story with storybook-addon-mock-date, or with fake timers on older Storybook.
  • Handle infinite JS animationsShows how to honor reduced motion or detect the UI Verify capture to render an end state.
  • Control non-Math.random randomnessAdvises fixed fixtures or a fixed faker seed for crypto.randomUUID, uuid and faker output.
  • Stabilize dynamic layoutSuggests a fixed order or size, or masking, for JS-measured layouts that reflow between runs.

What you need

  • Storybook
  • UI Verify (uiverify CLI)
  • Node.js and npm

Try asking

  • Make my Storybook stories deterministic so UI Verify stops flagging false changes
  • Freeze the clock in my Storybook stories for visual tests
  • Mock the fetch in this story so it returns the same data every run

Good to know

  • The clock addon requires Storybook 10 or later; older versions need a decorator with fake timers.
  • Covers only run-to-run variation inside the app; CSS animations, Math.random, reduced motion and fonts are already handled by the capturer.
  • Scroll settling and third-party script stubbing are out of scope and belong to real-page testing.

Security check

A

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

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

Alternatives to storybook-visual-testing

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-visual-testing: common questions

Why does my Storybook story show a visual change with no code change?

The skill says the usual cause is live or dynamic data such as counts, lists, timestamps or a reordering sort. Giving the story static args or fixtures removes that source of variation.

Does this skill disable CSS animations or seed Math.random?

No. The skill states that UI Verify's capturer already kills CSS animations, seeds Math.random and waits for fonts, so the skill tells you not to fix those by hand.

How do I keep a component's infinite animation from breaking captures?

Make the component honor prefers-reduced-motion, or detect the UI Verify capture through its user-agent marker or window global and render the end state.

How do I install storybook-visual-testing?

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

Is storybook-visual-testing free?

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

Is storybook-visual-testing safe to use?

It scores 72 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-visual-testing?

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

storybook-visual-testing Install

Add to stack

Loading.