storybook-stories

Generate Storybook stories for React components with TypeScript types and interaction tests.

5|1|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/andersnygaard/ettsted2 --skill storybook-stories
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: storybook-stories
Source: https://github.com/andersnygaard/ettsted2/tree/main/.claude/skills/storybook-stories
Command: npx skills add https://github.com/andersnygaard/ettsted2 --skill storybook-stories

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually writing comprehensive Storybook stories with proper types, controls, and interaction tests for React components is time-consuming and requires deep Storybook knowledge. This Skill automates story generation.

Core Features & Use Cases

  • Automated Story Generation: Creates well-structured Storybook stories for React components, including TypeScript types, args, controls, decorators, and various states.
  • Interaction Testing: Integrates Play functions to simulate user interactions and run assertions, ensuring component behavior and reducing manual testing effort.
  • Use Case: When developing a new Button component, use this Skill to automatically generate its Storybook stories, covering default, disabled, loading, and interactive states with proper controls and tests.

Quick Start

Write Storybook stories for the Button component in /components/src/Button.tsx, including default, disabled, and interactive states.

Frequently Asked Questions about storybook-stories

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

FAQPage Schema
How do I automate Storybook story generation for React components?

Automate Storybook story generation by using this Skill to write comprehensive stories for React components with TypeScript types, args, controls, decorators, and interaction tests. It creates production-ready stories covering multiple states and variants while enforcing proper meta configuration and play functions for testing component behavior.

Can I generate Storybook stories with interaction tests for React components?

Yes. This Skill generates Storybook stories with integrated play functions that simulate user interactions and run assertions, reducing manual testing effort. Stories include proper TypeScript types, argTypes, controls, and decorators aligned with your design tokens and custom icons.

What's the best way to write comprehensive Storybook stories with TypeScript?

Use this Skill to automatically generate well-structured Storybook stories with proper TypeScript types, args, and controls for React components. It covers default, disabled, loading, and interactive states with context decorators and global preview settings for production-ready documentation.

Do I need to manually test component interactions in Storybook?

No. This Skill automates interaction testing by generating play functions within Storybook stories that validate component behavior. Stories include assertions and interaction scenarios, eliminating repetitive manual testing while maintaining coverage across all component states.

How do I ensure Storybook stories align with design tokens and custom components?

This Skill generates stories that enforce alignment with Nordic Minimal design tokens and integrate custom SVG icons via the Icon component. It creates meta configuration and context decorators that maintain consistency across all generated stories for React components in your workspace.

What's required before generating Storybook stories for components?

You need React components in your /components workspace with TypeScript support. This Skill generates stories with proper types, controls, and decorators; no additional Storybook configuration is required as the Skill enforces production-ready meta settings and argTypes automatically.