Back to Skills

integrating-storybook

verified

Storybook integration with spec.md. Auto-generates Stories from Component API. Use when creating Storybook stories, defining component APIs, or when user mentions storybook, stories, props, argTypes, variants, CSF3.

View on GitHub

Marketplace

thkt-development-workflows

thkt/claude-config

Plugin

development-skills

Development Skills

Repository

thkt/claude-config
3stars

skills/integrating-storybook/SKILL.md

Last Verified

January 22, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/thkt/claude-config/blob/main/skills/integrating-storybook/SKILL.md -a claude-code --skill integrating-storybook

Installation paths:

Claude
.claude/skills/integrating-storybook/
Powered by add-skill CLI

Instructions

# Storybook Integration

## Core Concepts

| Concept         | Description                                |
| --------------- | ------------------------------------------ |
| Component API   | Props, Variants, States defined in spec.md |
| CSF3            | Component Story Format 3 + autodocs        |
| Auto-generation | `/code` generates Stories from spec.md     |

## Component API Location

Add to spec.md when implementing frontend components.

| Content         | Description                      |
| --------------- | -------------------------------- |
| Props Interface | TypeScript interface             |
| Variants        | Style options                    |
| States          | default, hover, active, disabled |
| Usage Examples  | TSX code                         |

## Workflow

| Command               | Action                                   |
| --------------------- | ---------------------------------------- |
| `/think "Add Button"` | Adds Component API section to spec.md    |
| `/code`               | Generates `Button.stories.tsx` from spec |

## Existing Stories Handling

| Option | Action                    |
| ------ | ------------------------- |
| [O]    | Overwrite existing file   |
| [S]    | Skip - keep existing      |
| [M]    | Merge - show diff, manual |
| [D]    | Diff only - append new    |

## References

| Topic         | File                                   |
| ------------- | -------------------------------------- |
| Component API | `references/component-api-template.md` |
| CSF3 Patterns | `references/csf3-patterns.md`          |

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1255 chars