Pular para o conteúdo
Skillpedia
Interfaces (UI/UX)7,6 mil · #13183

shadcn-ui

O que ela faz

Esta skill orienta o agente a usar as peças de interface e o tema integrados do aplicativo, em vez de adivinhar a partir de exemplos externos. É para desenvolvedores que criam ou alteram telas em um aplicativo que usa componentes no estilo shadcn.

Quando usar

  • ✓Quando você acrescenta um diálogo, um menu, um formulário ou um botão a uma tela do aplicativo.
  • ✓Quando você altera a aparência de um componente e precisa manter o tema.
  • ✓Quando você precisa de uma peça de interface que o aplicativo talvez já forneça.

Link da skill

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/shadcn-ui/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/shadcn-ui/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Acrescente um diálogo de confirmação com um formulário a esta tela, usando os botões e as cores que o aplicativo já usa.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente lê a configuração de componentes do aplicativo e usa as variantes e as cores de tema existentes. Ele importa os controles pelos wrappers locais do aplicativo, em vez de alterar a aparência compartilhada para uma única tela.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

shadcn/ui and Local UI Adapters

Use the components already provided by the app. Read the app's design-system configuration, Toolkit provider, and local UI components before adding or changing a control. Their exports, variants, and props are the contract; do not guess from upstream examples.

Keep imports behind the local adapter

Product pages and domain components should import standard controls through the app's configured local UI alias. In the Chat starter, that is @/components/ui/*; its app/components/ui/button.tsx is a one-line re-export of @agent-native/toolkit/ui/button. Follow an adjacent local shim when the app needs another Toolkit primitive that is already exported there.

Use the app's configured design system and provider mapping for controls passed to shared Toolkit surfaces. For shared Toolkit feature presentation, use the semantic components exposed by @agent-native/toolkit/design-system; keep the feature behavior in its existing controller and customize only its supported presentation seam.

Compose existing controls

  • Prefer a primitive's built-in variant and size. Put page layout on a parent instead of overriding shared component appearance for one screen.
  • Use the app's semantic theme tokens for reusable UI, such as bg-background, text-muted-foreground, border-border, and bg-primary. Keep theme values in the app's existing CSS theme file.
  • Use the control that matches the choice: Switch for a binary setting, Checkbox for independent multi-select, RadioGroup for one choice from a short set, and Select or the app's combobox for a longer predefined list.
  • Compose cards and form fields from the primitives already available. Avoid adding explanatory copy that repeats a visible title or label; see frontend-design for the app's surface-density rules.
  • Put selectable items inside their menu or list group primitives. Keep tab triggers inside the tab list. Supply an accessible title to dialog, sheet, drawer, and alert-dialog content.
  • Match the trigger API to the actual local component. Toolkit wrappers may expose a different API from the upstream primitive; inspect its props before using options such as asChild or render.

Keep controls operable

Use the app's existing field components and validation pattern. Associate errors with their inputs and expose invalid state to assistive technology. Icon-only actions need an accessible name and a usable focus target. Use the icon package already installed by the app.

Do not recreate menus, popovers, dialogs, or confirmations with absolute positioning and custom click-outside handlers. Never use browser alert, confirm, or prompt; use the app's dialog primitives. Keep overlay focus, keyboard, dismissal, and stacking behavior from the existing primitive.

For small visual refinements, use layout classes and semantic tokens. Avoid raw palette overrides, arbitrary one-off values, and manual overlay z-index unless you are fixing a reproduced bug. Use gap-* for layout spacing and the app's class-merging helper when it has one.

Related skill

  • frontend-design — Product UX, density, visual direction, and responsive behavior.
Perguntas frequentes

Devo sobrescrever o estilo de um componente para uma única página?

Não. A skill diz para colocar o layout da página em um elemento pai, em vez de alterar a aparência compartilhada.

De onde devem vir as cores do tema?

Dos tokens de tema do aplicativo, como bg-background ou text-muted-foreground.

E se os exemplos upstream tiverem outra aparência?

As exportações, variantes e props do próprio aplicativo são a referência.

Detalhes

Descrição original do autor

Using the app's local UI adapter and Toolkit or shadcn primitives. Use when choosing or composing standard controls, implementing dialogs, menus, or forms, or changing component variants and theme tokens.

repo: BuilderIO/agent-native

Popularidade

Estrelas no GitHub
7,6 mil
Posição no ranking
#13183
Licença
MIT
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas