shadcn-component-discovery
БесплатноБез исполняемых скриптовНе проверенDiscover shadcn-compatible components and registries across the entire ecosystem before writing any custom UI. Use PROACTIVELY before building tables, forms…
от mattbx★ 26 звёзд на GitHubОб этом скилле
shadcn Component Discovery
Surface existing components from across the shadcn ecosystem — including registries the user hasn't configured yet — before spending effort on custom implementations.
How This Complements the Official shadcn Skill
The official shadcn skill (shipped with CLI v4) searches the registries declared in the user's components.json. That's the right tool once the user has decided which registries to use.
This skill fills the upstream gap: ecosystem-wide awareness. It helps the user find and choose registries they may not yet have configured — Magic UI for animations, Aceternity for hero sections, AI Elements for chat interfaces, ElevenLabs UI for voice components, and so on. Use this skill for "what exists out there"; let the official skill handle "install this thing I know about."
When both skills apply, this one runs first (discovery), then the official skill takes over for installation and project-aware work.
Core Principle
Search before building. Most UI needs have been solved in the shadcn ecosystem. The cost of a 10-second registry check is almost always less than custom-building something that already exists.
When to Trigger
Proactive triggers (activate before writing any component code):
- User asks to build a table, form, modal, sidebar, dashboard, auth page, landing section, animation, carousel, chart, or any standard UI pattern
- User describes a feature that implies UI (e.g. "add user accounts management" → table; "let users pick a date range" → date picker)
- User mentions building something "like X" where X is a common pattern
Explicit triggers (user directly requests search):
- "Find a component for..."
- "Is there a shadcn component for..."
- "Search registries for..."
- "What exists for..."
- "Any good [category] components?"
- Direct mentions of specific registries (@animate-ui, Magic UI, Aceternity, Tailark, etc.)
Workflow
Step 1: Clarify the Need
Before searching, confirm:
- Functionality: What must it do? (e.g. sortable + filterable + paginated table)
- Style: Animated, minimal, accessible-first, dense, brutalist?
- Constraints: Must support keyboard nav? Drag-drop? Mobile-first? SSR?
A two-sentence clarification beats five searches with the wrong query.
Step 2: Search
Three paths depending on tool availability. The official shadcn MCP is strongly preferred when the user has a shadcn project — it returns real results with code examples.
Path A: Official shadcn MCP (preferred)
If the shadcn MCP server is running (configured via npx shadcn@latest mcp init or equivalent), use its tools directly:
1. mcp__shadcn__search_items_in_registries
- registries: ["@shadcn", "@blocks", "@animate-ui", "@reui", "@diceui"]
- query: "<search term>"
- limit: 10
2. For promising results, get full details:
mcp__shadcn__view_items_in_registries
- items: ["@registry/component-name", "@registry/other"]
3. For implementation examples:
mcp__shadcn__get_item_examples_from_registries
- query: "<component>-demo"
4. For the install command:
mcp__shadcn__get_add_command_for_items
- items: ["@registry/chosen-component"]
The MCP only searches registries configured in the user's components.json. If the user is looking for something specialized, suggest adding a relevant registry to components.json first — see references/registries.md for recommendations and configuration snippets.
Path B: shadcn CLI (no MCP, but shadcn project)
If there's a components.json but no MCP is configured, use the CLI commands that shipped with CLI v3:
# Search across configured registries
npx shadcn@latest search "<term>"
# Preview a component before installing
npx shadcn@latest view @registry/component-name
# List everything available in a registry
npx shadcn@latest list @registry
Suggest adding the MCP for better agent integration: npx shadcn@latest mcp init.
Path C: No project context
If there's no shadcn project yet, or the user is just exploring:
- Recommend registries from
references/registries.mdbased on their described need - Link directly to the registry's website so they can browse
- Offer to help set up a shadcn project (
npx shadcn@latest init) once they've picked direction
Step 3: Present Findings
Match the response format to the context. Keep it scannable — the user is about to make a decision, not read an essay.
Proactive check (during build flow)
When the user didn't explicitly ask to search but you searched anyway:
Before building custom, I found existing options:
1. **@registry/component-name** — [one-line description]
2. **@registry/alternative** — [one-line description]
Want me to install one, or build custom?
Keep it under five lines. The user is in flow; don't derail them.
Explicit search (user asked)
## Results for "<query>"
**Top matches:**
### @registry/component-name ⭐
[What it does
Установить shadcn-component-discovery в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл shadcn-component-discovery?
Discover shadcn-compatible components and registries across the entire ecosystem before writing any custom UI. Use PROACTIVELY before building tables, forms, modals, animations, dashboards, auth pages, or any UI component. Use when the user says "find a component for...", "is there something for...", "search registries", "what exists for...", or asks about shadcn blocks, Magic UI, Aceternity, ReUI, Animate UI, DiceUI, Tailark, AI Elements, or any other shadcn-compatible registry. Complements the official shadcn skill by surfacing registries beyond the user's configured `components.json` — use when exploring what's available to add, not just what's already installed.
Как установить скилл shadcn-component-discovery?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл shadcn-component-discovery запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic