create-component

Generate React and Next.js UI component scaffolds with shadcn/ui and Tailwind CSS.

11|3|Updated Aug 31, 2025
One-click install
npx skills add https://github.com/tonehq/tone --skill create-component-tonehq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-component
Source: https://github.com/tonehq/tone/tree/main/frontend/.claude/skills/create-component
Command: npx skills add https://github.com/tonehq/tone --skill create-component-tonehq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automates the creation of production-ready shared UI components for a Next.js + shadcn/ui project, enforcing project conventions and theme alignment.

Core Features & Use Cases

  • Automates scaffolding of new shared UI components (PascalCase file, CVA variants, and theme integration).
  • Verifies shadcn/ui setup and maps project tokens to CSS variables to ensure visual consistency across the app.
  • Use Case: A developer wants a new Button variant integrated with the project theme; this Skill generates the component scaffold, wiring, and documentation stubs.

Quick Start

Proceed by supplying the component name to generate its scaffold.

Frequently Asked Questions about create-component

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

FAQPage Schema
How do I generate a new shadcn/ui component in a Next.js project?

To generate a new shadcn/ui component in a Next.js project, supply the component name to this skill. It validates your project setup, maps theme tokens, and outputs a production-ready scaffold with CVA variants and documentation.

How do I create a React component with Tailwind CSS and CVA variants?

Creating a React component with Tailwind CSS and CVA variants is automated by scaffolding a PascalCase file wired to your project's theme tokens. This ensures standardized, theme-consistent styling across your shared UI library.

Does this component generator work with an existing shadcn/ui setup?

Yes, this component generator works with an existing shadcn/ui setup. It verifies your current configuration and maps project tokens to CSS variables to ensure the newly generated component maintains visual consistency across your app.

What is the best way to standardize shared UI components across a team?

The best way to standardize shared UI components across a team is to automate scaffolding with enforced project conventions. This approach generates consistent file structures, theme integration, and documentation stubs for every new component.

Can I use this to scaffold a Next.js button with custom theme variants?

Yes, you can use this to scaffold a Next.js button with custom theme variants. Supplying the component name triggers generation of the scaffold, CVA wiring for variants, and integration with your project's mapped theme tokens.

Why are my generated React components not matching the project theme?

Generated React components may not match the project theme if tokens are not properly mapped. This skill prevents that by validating the shadcn/ui setup and mapping project tokens to CSS variables before outputting the component scaffold.