component-scaffold

Generate complete UI component boilerplate for React, Next.js, and Vue 3 projects.

Updated Nov 5, 2025
One-click install
npx skills add https://github.com/igpastor/sng-claude-marketplace --skill component-scaffold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-scaffold
Source: https://github.com/igpastor/sng-claude-marketplace/tree/main/plugins/sngular-frontend/skills/component-scaffold
Command: npx skills add https://github.com/igpastor/sng-claude-marketplace --skill component-scaffold

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automatically scaffolds UI components with all necessary files and boilerplate code, ensuring consistent structure and faster delivery.

Core Features & Use Cases

  • Main component file with TypeScript
  • Styles file (CSS Modules, SCSS, or styled-components)
  • Test file with basic tests
  • Storybook story (if Storybook is detected)
  • Type definitions for props and exports
  • Index file for clean exports
  • Framework-aware scaffolding that adapts code for React, Next.js, or Vue 3

Quick Start

Request a new component named UserCard for a React project by providing: componentName, componentType, hasProps, needsState, and async. The system will generate a ready-to-use scaffold.

Frequently Asked Questions about component-scaffold

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

FAQPage Schema
How do I scaffold UI components with boilerplate automatically?

Component scaffolding automates generation of complete UI component files including TypeScript source, styles, tests, and type definitions in a single request. Provide componentName, componentType, hasProps, needsState, and async parameters to generate a ready-to-use component structure tailored to React, Next.js, or Vue 3.

Can I scaffold components for React, Next.js, and Vue 3 projects?

Yes, component scaffolding detects your framework and generates appropriate file sets. React and Next.js receive .tsx files with CSS Modules, SCSS, or styled-components; Vue 3 receives .vue single-file components. Each includes tests, type safety, and optional Storybook stories.

What files are generated when I scaffold a new UI component?

Scaffolding generates a main component file with TypeScript, a styles file, a test file with basic tests, type definitions for props and exports, an index file for clean exports, and optionally a Storybook story if detected in your project.

How does component scaffolding ensure consistency across my project?

Scaffolding enforces accessibility, type safety, and code alignment with your project's ESLint and Prettier configuration. Framework detection ensures generated code follows the conventions of React, Next.js, or Vue 3, maintaining structural consistency across all components.

When should I use component scaffolding instead of writing components manually?

Use scaffolding when creating new components, when a referenced component is missing, or during refactors requiring consistent boilerplate. It accelerates delivery by eliminating repetitive file creation and ensures every component includes tests, types, and accessibility from the start.