component

Generate a scaffolded React component with CSS module and tests.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/RyoOsaka/claude-code-template --skill component-ryoosaka
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component
Source: https://github.com/RyoOsaka/claude-code-template/tree/main/examples/react-vite/skills/component
Command: npx skills add https://github.com/RyoOsaka/claude-code-template --skill component-ryoosaka

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill quickly scaffolds a React component with a standard directory structure, templates, and tests, reducing boilerplate and accelerating UI development.

Core Features & Use Cases

  • Automated scaffolding: create a reusable component module with src/components/<category>/<name>/ including component file, CSS module, and test scaffold.
  • Template-driven: generates a ready-to-edit component skeleton that fits typical UI patterns.
  • Use Case: when starting a new screen or widget, generate the component layout so you can focus on business logic.

Quick Start

Provide the component name to generate a scaffolded React component.

Frequently Asked Questions about component

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

FAQPage Schema
How do I generate a React component with TypeScript and CSS modules?

To generate a React component with TypeScript and CSS modules, provide a component name to automatically scaffold the directory structure, including the component file, CSS module, and test scaffold. This enforces standard project conventions for your Vite + React + TypeScript setup.

What is the best way to scaffold a React component and reduce boilerplate?

Scaffolding a React component through template generation reduces boilerplate by creating a ready-to-edit component skeleton with a standard directory structure. This approach accelerates UI development by handling the repetitive file setup automatically.

Can I use this to scaffold a test file for my new React component?

Yes, you can use this to scaffold a test file for your new React component. The generation process creates a standard directory structure that includes a test scaffold alongside the main component file and its corresponding CSS module.

Does this component generator work with Vite and React projects?

Yes, this component generator works specifically with Vite and React projects utilizing TypeScript. It applies standard project conventions to generate fully scaffolded UI widgets or form controls within that exact development environment.

How to create a standard directory structure for React UI widgets?

Create a standard directory structure for React UI widgets by providing the component name to the generator. It automatically builds the src/components/<category>/<name>/ path, populating it with the component, CSS module, and test files needed for development.

Why generate a CSS module file when creating a new React component?

Generating a CSS module file when creating a new React component enforces a consistent file structure and applies standard project conventions. This ensures localized styling is immediately available within the scaffolded component skeleton for your UI development.