shadcn

Manages shadcn/ui components across projects and registries via CLI workflows.

59|14|Updated Sep 14, 2023
One-click install
npx skills add https://github.com/udecode/plate-template --skill shadcn-udecode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shadcn
Source: https://github.com/udecode/plate-template/tree/main/.agents/skills/shadcn
Command: npx skills add https://github.com/udecode/plate-template --skill shadcn-udecode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".

Core Features & Use Cases

  • Centralized management of shadcn/ui components across projects and registries.
  • Access to project context, component docs, and usage examples for rapid development.
  • CLI-driven workflows for initialization, applying presets, adding components, and viewing docs to ensure consistent setup and updates.

Quick Start

Initialize shadcn in your project with the CLI and apply a preset.

Frequently Asked Questions about shadcn

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

FAQPage Schema
How do I add and manage shadcn/ui components across different projects?

To manage shadcn/ui components across projects, use a CLI-driven workflow that coordinates adding, searching, fixing, and styling UI. It enforces consistent setup through initialization, preset application, and registry integration for safe updates.

What is the best way to initialize shadcn in an existing project with a preset?

The best way to initialize shadcn with a preset is by running the CLI init workflow. This applies your --preset code to configure the project automatically, ensuring correct integration and consistent use of component registries from the start.

How does a shadcn registry work when applying custom UI components?

A shadcn registry works by centralizing component management through CLI commands. It coordinates the retrieval and application of UI components, providing project context and component docs to ensure safe updates and consistent styling across your codebase.

Can I use the shadcn CLI to debug and fix styling issues in my components?

Yes, you can use the shadcn CLI to debug and fix styling issues. The workflow coordinates fixing, debugging, and composing UI while providing component docs and usage examples to help resolve styling inconsistencies safely.

Do I need a components.json file to switch my project to a new shadcn preset?

Yes, a components.json file is required to switch to a new shadcn preset. The CLI-driven workflow uses this file to provide project context, ensuring the --preset code applies correctly and maintains safe updates across your component registry.

Why does my shadcn CLI preset initialization fail to apply correctly?

shadcn CLI preset initialization may fail if the components.json file is misconfigured or missing. The workflow relies on accurate project context to enforce correct integration, apply presets safely, and ensure consistent registry updates without errors.