component-generator

Generate styled React components for the base-joy design system.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/sernstberger/base-joy --skill component-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-generator
Source: https://github.com/sernstberger/base-joy/tree/main/.claude/skills/component-generator
Command: npx skills add https://github.com/sernstberger/base-joy --skill component-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually creating new UI components is a repetitive and error-prone task, requiring strict adherence to specific design system patterns. This Skill automates the initial setup, ensuring consistency and saving valuable development time.

Core Features & Use Cases

  • Automated Component Scaffolding: Generates new React components with the correct file structure and boilerplate, ready for implementation.
  • Pattern Enforcement: Ensures immediate adherence to base-joy design system patterns, including proper ColorContext integration and JSDoc @default tags for props.
  • Time-Saving: Reduces manual setup and the need to recall intricate pattern details, allowing developers to focus on component logic and features.
  • Use Case: When starting a new UI feature, use this Skill to instantly create the component's foundational files, ensuring it aligns with the design system from day one.

Quick Start

Generate a new Button component following the base-joy design patterns.

Frequently Asked Questions about component-generator

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

FAQPage Schema
How do I scaffold a new React component for a design system?

Scaffolding generates a new React component with pre-built file structure, styled variants, and design system patterns already in place. This Skill creates the foundational files under a standardized directory structure so you can immediately begin implementing component logic instead of setting up boilerplate manually.

What file structure and patterns does a base-joy component need?

Base-joy components require a specific directory structure under libs/ui/styled/src/ComponentName, CVA-based variant patterns with color and size contexts, proper exports, TypeScript definitions, tests, and documentation. This Skill enforces those patterns automatically, ensuring every new component adheres to design system conventions from creation.

Can I use this to create components that match my existing design system?

Yes. This Skill generates components following established base-joy design patterns, including ColorContext integration and JSDoc defaults for props. It ensures new components align with your design system's theming and color conventions immediately, with no manual pattern recall required.

How much time does automating component setup save?

Manual component creation requires recalling intricate pattern details and setting up multiple files with correct structure. Automation eliminates repetitive setup work, reducing errors and freeing development time for component logic and features rather than boilerplate.

What happens if I manually create a component instead of scaffolding?

Manual creation risks inconsistency with design system patterns, incorrect file structure, and missing required exports or documentation. Scaffolding prevents these errors by generating standards-compliant components automatically, ensuring consistency across your component library.