storybook

Develop, test, and document UI components with Storybook using CSF3.

6|1|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill storybook-repairyourtech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: storybook
Source: https://github.com/RepairYourTech/cfsa-antigravity/tree/main/.agent/skill-library/stack/testing/storybook
Command: npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill storybook-repairyourtech

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to leveraging Storybook for efficient UI component development, documentation, and testing, streamlining the creation of robust and well-documented component libraries.

Core Features & Use Cases

  • Component Development: Utilize CSF3, args, and argTypes for creating interactive component stories.
  • Testing & Quality: Implement interaction testing with play functions, visual regression testing with Chromatic, and accessibility checks.
  • Documentation: Generate auto-docs and create custom documentation using MDX.
  • Design Systems: Build and manage design tokens and component status.
  • Use Case: When developing a new set of UI components for a design system, use this Skill to set up Storybook, write stories for each component, configure addons for testing and documentation, and ensure visual consistency across different states and viewports.

Quick Start

Use the storybook skill to generate a new Storybook component story for a React button.

Frequently Asked Questions about storybook

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

FAQPage Schema
How do I write a Storybook component story using CSF3?

Write a Storybook component story using CSF3 by defining component stories with the Component Story Format 3 standard, utilizing args and argTypes to create interactive and reusable UI component states.

How do interaction testing and play functions work in Storybook?

Interaction testing in Storybook uses play functions to simulate user interactions with your UI components. These play functions execute steps within the story to verify component behavior and ensure robust user experiences.

How do I document UI components with MDX in Storybook?

Document UI components with MDX in Storybook by writing Markdown with embedded JSX to create custom documentation. This pairs with auto-docs to generate comprehensive usage guides alongside your interactive component stories.

Does Storybook work with MSW for API mocking?

Yes, Storybook integrates with MSW for API mocking to simulate network requests within your component stories. This allows you to develop and test UI components in isolation without relying on live backend APIs.

What is the best way to set up visual regression testing for a design system?

The best way to set up visual regression testing for a design system is using Chromatic with Storybook. This captures visual snapshots of your UI components across different states and viewports to detect visual regressions automatically.

Can I use Storybook addons for accessibility and viewport testing?

Yes, you can use Storybook addons like a11y and viewport to test UI components. The a11y addon checks for accessibility issues, while the viewport addon ensures your components render correctly across different screen sizes.