storybook-configuration

Configure Storybook main and preview files with addons and framework-specific builders.

187|20|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/TheBushidoCollective/han --skill storybook-configuration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: storybook-configuration
Source: https://github.com/TheBushidoCollective/han/tree/main/jutsu/jutsu-storybook/skills/storybook-configuration
Command: npx skills add https://github.com/TheBushidoCollective/han --skill storybook-configuration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill guides you in configuring Storybook for an optimal development experience, integrating essential addons, builders, and framework-specific setups. It automates the complex process of setting up Storybook.

Core Features & Use Cases

  • Main & Preview Configuration: Master .storybook/main.ts for core settings and .storybook/preview.ts for global rendering parameters.
  • Addon Integration: Configure essential addons like addon-essentials, addon-interactions, and addon-a11y to enhance functionality and testing.
  • Framework-Specific Setup: Tailor Storybook for frameworks like Next.js, Vite, or Webpack, ensuring seamless integration with your project's build system.
  • Use Case: When starting a new project, use this Skill to quickly set up Storybook with the correct framework, essential addons, and global decorators. This ensures a consistent development environment from day one, saving hours of manual configuration and troubleshooting.

Quick Start

Use the storybook-configuration skill to add the addon-a11y addon to your Storybook setup and configure it to run accessibility checks on all stories.

Frequently Asked Questions about storybook-configuration

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

FAQPage Schema
How do I configure Storybook for my React or Next.js project?

Configure Storybook by defining `.storybook/main.ts` with your framework, builder (Vite or Webpack), and story patterns, then set up `.storybook/preview.ts` with global decorators and parameters. This Skill automates framework-specific setup for React-Vite, Next.js, and Webpack projects to enable streamlined story discovery and visualization.

What addons should I enable in Storybook, and how do I set them up?

Enable essential addons like `addon-essentials`, `addon-interactions`, and `addon-a11y` by listing them in your main configuration file. Each addon enhances functionality—interactions enable testing, a11y runs accessibility checks on stories, and essentials provide core UI controls and documentation features.

Can I use Storybook with both Webpack and Vite in the same project?

Storybook supports framework-specific builders; you configure either Webpack or Vite in `.storybook/main.ts` based on your project's build system. This Skill covers setup for both builders, allowing you to choose the one matching your project's framework and tooling.

How do I enable autodocs and global parameters in Storybook?

Enable autodocs and define global parameters in `.storybook/preview.ts` to set rendering defaults, decorators, and documentation behavior across all stories. This ensures consistent story discovery, visualization, and automated documentation generation without per-story configuration.

What's the difference between Storybook's main and preview configuration files?

Main configuration (`.storybook/main.ts`) defines core settings like framework, builder, story patterns, and addons; preview configuration (`.storybook/preview.ts`) sets global rendering parameters, decorators, and documentation settings. Together they establish your complete development environment.

Do I need to configure Storybook differently for Next.js than for React with Vite?

Yes—Next.js requires framework-specific presets and builder configuration in main.ts to integrate with Next.js tooling, while React-Vite uses Vite's builder. This Skill provides tailored setup steps for each framework to ensure seamless integration with your project's build system.