new-ui-component

Scaffold reusable React UI components with variants, props, and barrel exports.

1|1|Updated May 13, 2026
One-click install
npx skills add https://github.com/bibektimilsina00/fuse_monorepo --skill new-ui-component
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-ui-component
Source: https://github.com/bibektimilsina00/fuse_monorepo/tree/main/.agents/skills/new-ui-component
Command: npx skills add https://github.com/bibektimilsina00/fuse_monorepo --skill new-ui-component

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the guesswork of creating new UI components by guiding you to follow the project’s established patterns, tokens, and export conventions.

Core Features & Use Cases

  • Component scaffolding with project conventions: Ensures consistent structure using cn() for class merging, forwardRef for DOM-wrapping components, and token-based styling with CSS variables.
  • Variant and size support: Prompts for variant/size options so your component exposes flexible styling in a predictable API.
  • Correct integration into the UI library: Adds the component to the ui barrel exports and exposes a typed Props interface for reuse across the app.

Quick Start

Use the new-ui-component skill to create a new reusable component file for your design system, then confirm its variants, props, and any composed existing UI components.

Frequently Asked Questions about new-ui-component

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

FAQPage Schema
How do I scaffold a reusable React UI component with variants and barrel exports?

Scaffolding a reusable React UI component involves capturing the component name, render output, and props to generate code with cn() for class merging, React.forwardRef, and CSS token variables, alongside updating the barrel exports.

What is the best way to create design system components with consistent styling tokens?

Creating design system components with consistent styling tokens requires scaffolding files with CSS token variables and cn() for class merging, ensuring predictable styling APIs across the project.

Does this component scaffolding process support TypeScript Props interfaces?

Yes, the component scaffolding process supports TypeScript by generating a typed exported Props interface for the new UI component, ensuring type safety and reuse across the application.

How do I add a new UI component to my project's components/ui index?

Adding a new UI component to your project's components/ui index requires scaffolding the component file, which automatically updates the index barrel exports to expose the new component and its typed Props interface.

Can I generate React components with forwardRef and class merging for a composite control?

Yes, you can generate React components with forwardRef and class merging for composite controls across multiple UI domains like forms, cards, and navigation widgets, ensuring DOM-wrapping and consistent styling.

Why use cn() and CSS token variables when scaffolding UI components?

Using cn() and CSS token variables when scaffolding UI components ensures consistent class merging and design-system integration, applying token-based styling with CSS variables for predictable visual output.