update-storybook-snapshots

Update Storybook visual regression snapshots after intentional UI changes.

80|49|Updated Mar 27, 2022
One-click install
npx skills add https://github.com/cartridge-gg/controller --skill update-storybook-snapshots
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-storybook-snapshots
Source: https://github.com/cartridge-gg/controller/tree/main/.agents/skills/update-storybook-snapshots
Command: npx skills add https://github.com/cartridge-gg/controller --skill update-storybook-snapshots

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Visual regression testing can become brittle when UI changes are intentional, leading to stale snapshots that waste time to update manually.

Core Features & Use Cases

  • Update Storybook visual regression snapshots after component or design system changes.
  • Review and validate diffs to confirm changes reflect design intent before committing.
  • Integrate snapshot updates into CI workflows to keep visuals in sync with code.

Quick Start

Run the update process to refresh Storybook snapshots after your UI changes.

Frequently Asked Questions about update-storybook-snapshots

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update Storybook snapshots after intentional UI changes?

To update Storybook snapshots after intentional UI changes, run the snapshot refresh process to regenerate visual regression baselines, ensuring the new visuals align with your updated component design intent before committing the changes.

What is visual regression snapshot diffing in Storybook?

Visual regression snapshot diffing in Storybook is the process of comparing updated UI component visuals against baseline images to detect unintended visual changes, allowing developers to validate design system revisions and component refactors.

Do I need pnpm to update Storybook visual regression snapshots?

Yes, you need pnpm installed. Updating Storybook visual regression snapshots requires a pnpm environment, an existing Storybook setup with image snapshot tooling, and access to the snapshot diff outputs to complete the refresh process.

Can I integrate Storybook snapshot updates into CI workflows?

Yes, you can integrate Storybook snapshot updates into CI workflows to keep visuals in sync with code. This automates the refresh process during continuous integration, maintaining accurate visual regression baselines after component updates.

Why are my Storybook visual regression tests failing after a design update?

Storybook visual regression tests fail after design updates because the baseline snapshots are stale and do not match the intentional UI changes. Refreshing the snapshots updates the baselines to reflect the new component visuals.

What's the best way to review Storybook snapshot diffs before committing?

The best way to review Storybook snapshot diffs is to run the snapshot update process, examine the generated diff outputs, and validate that the visual changes accurately reflect your design intent before committing the updated baselines to version control.