shadcn-agents-component-selector

Select shadcn UI primitives via an 8-family decision-tree and anti-pattern rules.

Updated May 19, 2026
One-click install
npx skills add https://github.com/Impertio-Studio/shadcn-ui-Claude-Skill-Package --skill shadcn-agents-component-selector
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: shadcn-agents-component-selector
Source: https://github.com/Impertio-Studio/shadcn-ui-Claude-Skill-Package/tree/main/skills/source/shadcn-agents/shadcn-agents-component-selector
Command: npx skills add https://github.com/Impertio-Studio/shadcn-ui-Claude-Skill-Package --skill shadcn-agents-component-selector

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It prevents common shadcn UI mis-selections by analyzing a plain-English UI requirement (or a draft) and recommending the correct primitive based on interaction model discrimination (gesture, blocking, trigger type, accessibility constraints).

Core Features & Use Cases

  • Decision-tree validation: Classifies a requirement into the correct interaction family (modal, selector, menu, floating, notification, loading, form, table) before choosing anything.
  • Wrong-then-right guidance: Detects canonical failure modes (e.g., Tooltip for interactive content, Select for searchable lists, Dialog for mobile bottom-sheets) and explains why the wrong pick fails.
  • Cross-skill forwarding: Always forwards to the matching shadcn syntax/implementation skill for the recommended primitive so the user can implement it correctly next.
  • Decision tables & scenarios: Applies per-family discrimination criteria and uses worked validation scenarios and anti-pattern rules to improve reliability.

Quick Start

Ask an AI assistant: “Recommend the correct shadcn component for this feature: a right-click menu on each row with Open, Rename, Duplicate, and Delete actions.”

Frequently Asked Questions about shadcn-agents-component-selector

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

FAQPage Schema
How do I choose the right shadcn UI component for a specific interaction?▼

To choose the right shadcn UI component, you validate the requirement against an 8-family decision tree covering modals, selectors, menus, floating elements, notifications, loading, forms, and tables. This classifies the interaction model to recommend the correct primitive.

When should I use a Combobox instead of a Select in shadcn?▼

You should use a Combobox instead of a Select in shadcn when dealing with searchable lists. Select components fail for searchable lists because they lack built-in filtering, making Combobox the correct primitive for searchable, dynamic list interactions.

What is the best way to validate shadcn UI choices in an AI generated draft?▼

The best way to validate shadcn UI choices in an AI draft is by applying anti-pattern detection rules. This detects canonical failure modes like using a Tooltip for interactive content and provides wrong-then-right guidance explaining why the incorrect pick fails.

Why does using a shadcn Tooltip for interactive content fail?▼

Using a shadcn Tooltip for interactive content fails because tooltips lack the necessary accessibility primitives and gesture handling for user interaction. The decision tree flags this anti-pattern and recommends a Popover or HoverCard based on specific trigger constraints.

How do I refactor a shadcn Dialog to a Drawer for mobile interfaces?▼

To refactor a shadcn Dialog to a Drawer for mobile interfaces, you evaluate the interaction model's blocking behavior and gesture constraints. The decision tree identifies Dialog as a canonical failure mode for mobile bottom-sheets and recommends the Drawer primitive.

Does shadcn component selection provide implementation syntax after choosing a primitive?▼

Yes, shadcn component selection provides implementation syntax by forwarding to a matching shadcn syntax skill. After emitting the recommended primitive and discriminating rationale, it points to the authoritative implementation skill for correct coding.