component

Generate React component files with CSS Modules and prop interfaces.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/sethihq/guide --skill component-sethihq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component
Source: https://github.com/sethihq/guide/tree/main/public/kit/skills/component
Command: npx skills add https://github.com/sethihq/guide --skill component-sethihq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation of reusable React components, ensuring adherence to established design system standards and conventions.

Core Features & Use Cases

  • Boilerplate Generation: Automatically creates the necessary files (index.tsx, <name>.module.css) for a new component.
  • Standardization: Enforces Darkroom conventions, including default server components, CSS Module usage, and prop interface definitions.
  • Use Case: When a developer needs to add a new interactive element like a modal or a tooltip to the UI, this Skill provides a quick and consistent way to scaffold the component.

Quick Start

Create a new React component named 'UserProfileCard'.

Frequently Asked Questions about component

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

FAQPage Schema
What is the standard file structure for creating reusable React UI elements?

The standard file structure for reusable React UI elements requires an index.tsx file paired with a component-specific CSS Module file. This structure enforces default server components and explicit prop interface definitions to maintain UI consistency.

Can I use this to create React server components by default?

Yes, you can use this to create React server components by default. The Skill enforces Darkroom design conventions, ensuring every generated UI element is set up as a default server component with defined prop interfaces and CSS Module imports.

What's the best way to enforce prop interface definitions when building React widgets?

The best way to enforce prop interface definitions when building React widgets is through automated scaffolding. This Skill standardizes the process by generating the boilerplate with required prop interfaces and CSS Module imports for every new UI element.

Why does my React component boilerplate need CSS Module imports?

Your React component boilerplate needs CSS Module imports to adhere to established design system standards. This Skill enforces CSS Module usage during component generation to ensure styling consistency and maintainability across reusable UI elements.