component-scaffold-generator
Installation
SKILL.md
Component Scaffold Generator
Generate production-ready component skeletons with types, variants, tests, and documentation.
Core Workflow
- Gather requirements: Component name, framework (React/Vue), props needed
- Choose pattern: Determine if functional, compound, or polymorphic component
- Generate component: Create main component file with TypeScript types
- Add variants: Include common variants (size, color, state)
- Setup styling: Add styling approach (Tailwind, CSS Modules, styled-components)
- Create tests: Generate test file with basic coverage
- Add story: Create Storybook story with examples
- Document usage: Include JSDoc and usage examples