react-component-generator

Generate typed React .tsx components with hooks, CSS modules, tests, and index exports.

7|2|Updated Nov 9, 2025
One-click install
npx skills add https://github.com/Prompt-or-Die-Labs/hyper-forge --skill react-component-generator-prompt-or-die-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-component-generator
Source: https://github.com/Prompt-or-Die-Labs/hyper-forge/tree/main/.claude/skills/react-component-generator
Command: npx skills add https://github.com/Prompt-or-Die-Labs/hyper-forge --skill react-component-generator-prompt-or-die-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It eliminates repetitive React/TypeScript component boilerplate by generating a complete, best-practice component with correctly typed props, hooks, styles, and tests.

Core Features & Use Cases

  • Typed React component scaffolding: Generates a modern .tsx component with proper TypeScript props typing, sensible defaults, and reusable patterns like typed handlers.
  • Associated project files: Creates matching CSS module styles, a basic unit test suite, and a barrel export for clean imports.
  • Best-practice structure: Encourages accessible markup, correct hook usage with dependency arrays, and debuggability via displayName.

Quick Start

Use the react-component-generator skill to scaffold a TypeScript React component named ButtonBar that takes a title string, an onAction callback, optional items, and supports children.

Frequently Asked Questions about react-component-generator

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

FAQPage Schema
How do I scaffold a React component with TypeScript props typing and CSS modules?

To scaffold a React component with TypeScript props typing and CSS modules, provide a component intent to generate a typed .tsx file alongside a companion CSS module, unit test, and barrel export. This eliminates repetitive boilerplate by producing best-practice component structures automatically.

What is the best way to generate boilerplate for stateful React containers with hooks?

The best way to generate boilerplate for stateful React containers with hooks is to specify your component intent for a container with state and effects. The generator applies correct hook usage with dependency arrays and accessible markup, outputting a complete, reusable TypeScript component file.

Can I generate unit tests and barrel exports alongside my React components?

Yes, you can generate unit tests and barrel exports alongside your React components. The scaffolding process automatically produces a basic unit test suite and an index export file to ensure clean imports, matching modern React best practices for project organization.

Does this React component generator work for form components with validation?

Yes, this React component generator works for form components with validation. It supports UI scaffolding tasks for creating form components with validation, generating the necessary typed .tsx component with sensible defaults, typed handlers, and accessible markup structures.

What do I need to set up before scaffolding production-ready React components?

Before scaffolding production-ready React components, you need an existing modern TypeScript React project. You provide the component name and intent, such as required props like title strings and onAction callbacks, and the generator outputs the typed component and associated files directly into your project.

How do I create accessible React presentational components without writing boilerplate?

To create accessible React presentational components without writing boilerplate, define your component intent for a reusable presentational component. The generator outputs an accessibility-friendly .tsx structure with correctly typed props, displayName for debuggability, and matching styles, bypassing manual setup.