Shadcn management

From Activer007/ordinary-claude-skills · View interactive version

Shadcn management is an AI agent skill from the GitHub repository Activer007/ordinary-claude-skills. Manage shadcn/ui components using MCP tools. Use when user needs to: (1) Add new shadcn components to a project (2) Build complex UI features requiring multiple components (3) Research component implementations and examples (4) Get component installation commands Triggers: "add shadcn", "shadcn comp

How to use this skill

Skill file

Shadcn Component Management

Prerequisites

Verify project setup:

shadcn___get_project_registries

If no components.json exists, instruct user: npx shadcn@latest init

Quick Add Workflow

For simple component additions (e.g., "add a date picker"):

  1. Search - Find component in registry:

```

shadcn___search_items_in_registries(registries, query)

```

  1. View - Get implementation details:

```

shadcn___view_items_in_registries(items: ["@shadcn/component-name"])

```

  1. Examples - Get usage demo:

```

shadcn___get_item_examples_from_registries(registries, query: "component-demo")

```

  1. Install - Get add command:

```

shadcn___get_add_command_for_items(items: ["@shadcn/component-name"])

```

  1. Output - Provide installation command and example code

Complex Build Workflow

For multi-component features (e.g., "build a login form"), see references/workflows.md.

When to use Complex Build:

Component Naming Patterns

Common search queries:

Example queries for demos: form-demo, card-with-form, dialog-demo

After Implementation

Always run audit:

shadcn___get_audit_checklist

Custom Styling & Theming

Shadcn provides structural foundation with default styling. For custom aesthetics:

Invoke frontend-design skill when:

Workflow:

  1. Use shadcn-management for component structure and composition
  2. Invoke frontend-design for visual customization:

Customization targets:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.