Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    React Component Storybook Architect

    1

    Analyze React TypeScript props and generate complete, typed Storybook stories with meaningful variants, deterministic mock data, interactions, and optional light/dark previews.

    Free

    Security scanned
    React Component Storybook Architect

    React Component Storybook Architect

    Example session with this skill installed

    Generate a complete Storybook story suite for:

    src/components/UserProfileCard/UserProfileCard.tsx

    Requirements

    • inspect the TypeScript props and the component implementation;
    • detect our current Storybook framework and conventions;
    • use Component Story Format 3 unless the repository clearly uses another current format;
    • create meaningful stories rather than every possible prop combination;
    • cover required props, visual variants, loading/error/disabled states when supported, empty data, and important edge cases;
    • reuse existing project fixtures if available;
    • generate deterministic mock data for missing fixtures;
    • use @faker-js/faker only if it is already installed, and seed it for reproducibility;
    • detect whether the component supports dark mode and create a dark preview only when the project already supports the required theme mechanism;
    • preserve required providers and decorators;
    • add interaction play functions only when accessible selectors and Storybook interaction testing are already supported;
    • do not modify the component API or business logic;
    • run the repository's TypeScript check and Storybook build if available;
    • generate the final .stories.tsx file plus a generation report.
    • Read your context and instructions
    • Compiled the react component storybook
    • Generated the UI component

    Storybook architecture complete

    Component
    src/components/UserProfileCard/UserProfileCard.tsx

    Storybook framework
    @storybook/react-vite

    Story format
    CSF3

    Props detected
    11

    Required props
    4

    Literal-union variants
    2

    Boolean UI states
    3

    Existing fixtures reused
    2

    Generated deterministic mock objects
    3

    Dark-mode support
    DETECTED

    Stories generated
    9

    Story matrix

    1. Default
    2. Compact
    3. Detailed
    4. Loading
    5. Error
    6. Disabled
    7. EmptyBio
    8. LongContent
    9. Dark

    Prop analysis

    variant:
    "compact" | "detailed"

    status:
    "online" | "offline" | "away"

    loading:
    boolean

    disabled:
    boolean

    error:
    string | undefined

    user:
    UserProfile

    onMessage:
    (userId: string) => void

    Generated CSF3 structure

    import type { Meta, StoryObj } from '@storybook/react-vite';
    
    import { UserProfileCard } from './UserProfileCard';
    
    const meta = {
      component: UserProfileCard,
      parameters: {
        layout: 'centered',
      },
    } satisfies Meta<typeof UserProfileCard>;
    
    export default meta;
    type Story = StoryObj<typeof meta>;
    
    export const Default: Story = {
      args: {
        user: defaultUser,
        variant: 'detailed',
        status: 'online',
      },
    };
    
    export const Compact: Story = {
      args: {
        ...Default.args,
        variant: 'compact',
      },
    };
    
    export const Loading: Story = {
      args: {
        ...Default.args,
        loading: true,
      },
    };
    

    Dark-mode handling

    The component contains dark-mode utilities and the repository already defines Storybook dark-preview support.

    A dedicated Dark story was generated without introducing a new theme provider.

    Mock-data strategy

    Reused

    • src/test/fixtures/users.ts
    • src/test/fixtures/avatars.ts

    Generated

    • longBioUser
    • userWithoutBio
    • offlineUser

    Mock values are deterministic.

    No production data or credentials were used.

    Validation

    TypeScript
    PASS

    Storybook build
    PASS

    Component source modified
    NO

    New runtime dependencies added
    NO

    Files generated

    • src/components/UserProfileCard/UserProfileCard.stories.tsx
    • .storybook-architect/props.json
    • .storybook-architect/story_matrix.json
    • .storybook-architect/mock_data.ts
    • .storybook-architect/generation_report.md

    The generated stories are typed against the component and prioritize meaningful UI states over exhaustive prop combinations. Review product-specific edge cases and providers before merging.

    react-component-storybook-architect.tsx

    TSX · React component

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    The problem

    Storybook is valuable only when its stories stay current.

    In real React codebases, documenting meaningful prop states, interactions, empty states, loading states, and theme variations becomes repetitive work that frontend teams regularly postpone.

    What it does

    React Component Storybook Architect turns a TypeScript component into a structured, typed Storybook story suite.

    • Parses TypeScript prop interfaces and aliases
    • Detects required props, booleans, literal unions, arrays, callbacks, and ReactNode props
    • Detects the repository's Storybook framework and conventions
    • Builds meaningful story matrices without generating every possible prop combination
    • Generates typed CSF3 stories
    • Reuses existing repository fixtures when available
    • Creates deterministic mock data
    • Can use seeded Faker when it is already installed
    • Detects dark-mode evidence and adds theme previews when supported
    • Identifies interactive components that benefit from play functions
    • Runs repository typecheck, tests, and Storybook build commands when available
    • Produces a generation report

    Why this beats prompting it yourself

    A generic prompt can create one story from pasted component code.

    This skill works across the actual repository:

    Read Component → Parse Props → Detect Storybook Setup → Build Story Matrix → Generate Mocks → Write Stories → Validate

    Meaningful coverage instead of story spam

    The workflow intentionally avoids Cartesian prop combinations.

    It prioritizes visually distinct, product-relevant, interactive, accessibility-sensitive, and regression-prone component states.

    Repository-aware by design

    The skill follows the Storybook framework package, decorators, providers, fixtures, theme system, and testing conventions already present in the project.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean today

    • Free to download with an account

    Listedtoday

    What's inside

    Frequently Asked Questions