new-shadcn-component

Install shadcn/ui components and scaffold typed wrappers in Next.js projects.

2|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/PlazaCC/antes-da-tela --skill new-shadcn-component
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-shadcn-component
Source: https://github.com/PlazaCC/antes-da-tela/tree/main/.agents/skills/new-shadcn-component
Command: npx skills add https://github.com/PlazaCC/antes-da-tela --skill new-shadcn-component

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually adding shadcn/ui components and crafting project‑specific wrappers is repetitive and prone to mistakes.

Core Features & Use Cases

  • Installs a shadcn/ui component using Yarn dlx.
  • Verifies the component file is placed in the components/ui directory.
  • Optionally scaffolds a typed wrapper in the components folder for custom behavior, such as a ConfirmDialog built on top of Dialog.

Quick Start

Use the new‑shadcn‑component skill to add the “dialog” component to your codebase.

Frequently Asked Questions about new-shadcn-component

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

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

To add a shadcn/ui component to a Next.js project, use the skill to run the installation via Yarn dlx and automatically verify the file is placed in the components/ui directory. It streamlines fetching UI primitives from the registry.

What is a typed wrapper for shadcn/ui components?

A typed wrapper for shadcn/ui components is an optional TypeScript scaffold created in your components folder to add custom behavior. It lets you build project-specific UI primitives, like a ConfirmDialog, on top of base registry components.

Do I need Yarn and a components/ui directory to install shadcn/ui components?

Yes, you need Yarn and a components/ui directory to install shadcn/ui components. The process requires the Yarn dlx command, the shadcn CLI, and a TypeScript React codebase configured for Next.js.

Why does manually adding shadcn/ui components cause errors?

Manually adding shadcn/ui components causes errors because the process is repetitive and prone to mistakes when fetching registry files and configuring wrappers. Automating the installation ensures correct placement in the components/ui directory.

Can I scaffold a custom ConfirmDialog using a shadcn/ui Dialog component?

Yes, you can scaffold a custom ConfirmDialog using a shadcn/ui Dialog component. The skill optionally generates a typed wrapper in your components folder, allowing you to layer custom behavior directly on top of the installed base component.