storybook-scaffolder

Generate Storybook .stories.tsx files with M3 design token imports for React components.

1|Updated Aug 12, 2025
One-click install
npx skills add https://github.com/okgoogle13/careercopilot --skill storybook-scaffolder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: storybook-scaffolder
Source: https://github.com/okgoogle13/careercopilot/tree/main/.claude/skills/storybook-scaffolder
Command: npx skills add https://github.com/okgoogle13/careercopilot --skill storybook-scaffolder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @storybook/react.

What problem does it solve?

Manually creating Storybook .stories.tsx files for every new React component is a repetitive task that can slow down development. This skill automates the scaffolding, ensuring consistent story definitions and accelerating UI development.

Core Features & Use Cases

  • Automated Story Creation: Generates a new Storybook file (.stories.tsx) for an existing React component, including Meta and StoryObj boilerplate.
  • Intelligent Pathing: Automatically determines component name, import path, and story title from the provided component file path.
  • Placeholder for Args: Provides TODO comments for defining argTypes and args, guiding the user to complete the story's interactive properties.
  • Use Case: When developing new UI components, use this skill to quickly create their Storybook stories, enabling isolated development, visual testing, and documentation for your design system.

Quick Start

Create a Storybook story for the 'MyButton' component located at 'src/components/Common/MyButton/MyButton.tsx'.

Frequently Asked Questions about storybook-scaffolder

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

FAQPage Schema
How do I automatically generate Storybook story files for React components?

Storybook story scaffolding generates `.stories.tsx` files from your React components, including Meta and StoryObj boilerplate with design token imports. Provide your component file path, and the Skill creates a documented story template ready for variant definitions and interactive testing.

Can I scaffold Storybook stories with TypeScript and design tokens?

Yes. The Skill generates TypeScript story files with M3 design token imports prepended automatically. It extracts component names and paths intelligently, creating stories that document React components for development and QA with consistent styling.

What's the fastest way to create Storybook documentation for a component library?

Automated story scaffolding eliminates manual boilerplate repetition. Instead of writing each `.stories.tsx` file by hand, provide component paths and the Skill generates complete story templates with placeholder guidance for argTypes and args, accelerating your design system documentation.

Do I need to manually define argTypes and args in generated stories?

The scaffolding creates story files with TODO comments marking where argTypes and args belong. You complete these interactive properties after generation, but the Skill handles path discovery, imports, and structural boilerplate automatically.

How does the Skill determine the story file name and import paths?

Intelligent path parsing extracts the component name, location, and story title directly from your provided component file path. This ensures consistent naming conventions across your Storybook without manual configuration.

When should I use story scaffolding in my React development workflow?

Use this when creating new UI components and need isolated development, visual testing, and living documentation. It's essential for design system projects where consistent, rapid Storybook coverage accelerates QA and team collaboration.

Related Skills