Communitygithub.com

CharbelElBateh/personal-website

Escolha a biblioteca certa para uma tarefa de frontend a partir de uma lista criteriosa e opinativa — números, campos OTP, gráficos, menus de comando, virtualização, arrastar e soltar, toasts, estado, estilo e muito mais. Só é executado quando invocado explicitamente; não aciona sozinho.

O que é personal-website?

Esta skill auxilia você a selecionar a biblioteca de frontend mais adequada para uma determinada tarefa, com base em uma lista curada e opinativa mantida por Emil Kowalski. Ela cobre uma ampla gama de necessidades comuns de desenvolvimento: componentes de UI (diálogos, popovers, menus de comando), animação (springs, layout, animação de números), gráficos (em tempo real ou estáticos), interação (arrastar e soltar, virtualização de listas longas), gerenciamento de estado (zustand) e utilitários de estilo (clsx, cva, temas escuros). A skill recomenda exatamente uma biblioteca por tarefa, evitando apresentar múltiplas opções e priorizando o que já está instalado no projeto (verificando o `package.json`). Quando a tarefa não está coberta pela lista, ela informa claramente e recorre ao conhecimento geral, mas sempre sinalizando que saiu da lista curada. É particularmente útil em ambientes como Claude Code ou Cursor, onde o desenvolvedor pede orientação rápida sobre qual biblioteca usar, evitando pesquisas e decisões inconsistentes.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/CharbelElBateh/personal-website/tree/HEAD/.claude/skills/pick-ui-library

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Escolhendo a Biblioteca Certa

Resposta Inicial

Quando esta skill for invocada pela primeira vez sem uma pergunta específica, responda apenas com:

Estou pronto para escolher a biblioteca certa para sua tarefa. Minhas escolhas vêm da lista curada de Emil Kowalski.

Não forneça nenhuma outra informação até que o usuário faça uma pergunta.

Uma skill de consulta. Quando invocada com uma tarefa ("Preciso de toasts", "O que devo usar para arrastar e soltar?"), associe a tarefa à lista curada abaixo e recomende a biblioteca. Estas são escolhas deliberadas e baseadas em gosto pessoal — não substitua por alternativas fora desta lista, a menos que o usuário peça uma ou que a tarefa realmente não seja coberta.

Como usar

  1. Identifique a tarefa, não a biblioteca que o usuário mencionou. "Preciso mostrar um dropdown" é uma tarefa de primitivas de UI (base-ui), mesmo que o usuário tenha perguntado sobre outra coisa.
  2. Verifique o que já está instalado. Olhe o package.json primeiro. Se o projeto já usar uma biblioteca listada, use-a. Se usar um concorrente (ex.: react-window em vez de Virtuoso), sinalize a recomendação, mas não troque a dependência sem que seja solicitado.
  3. Recomende uma biblioteca, diga para que serve em uma frase e instale/configure se isso fizer parte da solicitação. Não apresente um menu de opções quando a lista tem uma resposta clara.
  4. Se a tarefa não estiver coberta pela lista, diga isso explicitamente e recomende baseado em seu próprio conhecimento — mas deixe claro que você saiu da lista curada.

A lista

Componentes e primitivas de UI

TarefaBiblioteca
Componentes de UI acessíveis e sem estilo (diálogos, popovers, menus, selects…)base-ui
Menus de comando (paletas ⌘K)cmdk
Toasts / notificaçõesSonner
Campos de senha descartável / código de verificaçãoinput-otp
GUIs / painéis de controle personalizáveisLeva — dialkit é uma alternativa

Movimento e visuais

TarefaBiblioteca
Animações de uso geral (molas, animações de layout, entrada/saída)motion (Framer Motion)
Animar números (contadores, preços, estatísticas)NumberFlow
Componentes de texto animadostorph
Globos 3DCobe
Imagens OG dinâmicas (HTML/CSS → SVG/PNG)Satori
Destaque de sintaxeshiki

Recorra ao motion quando precisar de molas, animações de layout, animações de saída ou valores orientados por gestos. Um simples hover ou fade não precisa disso — transições CSS simples são a ferramenta certa.

Gráficos

TarefaBiblioteca
Gráficos em tempo real / streamingLiveline
Gráficos gerais (painéis estáticos ou interativos)recharts

A divisão: se os pontos de dados chegam ao vivo e o gráfico rola com o tempo, use Liveline. Todo o resto é recharts.

Interação e desempenho

TarefaBiblioteca
Arrastar e soltardnd kit
Virtualização (listas longas, tabelas grandes)Virtuoso

Estado e estilo

TarefaBiblioteca
Gerenciamento de estadozustand
Construir strings className condicionalmenteclsx
Estilo tipado e orientado por variantes para Tailwindcva
Alternância de tema / modo escuro (sem flash ao carregar)next-themes

A divisão de estilo: clsx para classes condicionais ad hoc; cva quando um componente tem variantes reais (tamanho, intenção, estado) que merecem uma API tipada. Eles compõem — cva usa entradas no estilo clsx internamente.

Equívocos comuns a serem evitados

  • Toasts feitos à mão ou com uma biblioteca de modal → Sonner existe exatamente para isso.
  • Um dropdown/diálogo baseado em <div> com manipulação manual de foco → base-ui, que lida com acessibilidade, captura de foco e descarte.
  • Animar um número re-renderizando texto → NumberFlow lida com transições de dígitos corretamente.
  • Renderizar uma lista de mais de 1.000 linhas diretamente → Virtuoso antes de recorrer a truques de paginação.
  • Uma teia de props useState por componente para estado compartilhado → zustand.
  • Ternários de className com template literal com três níveis de profundidade → clsx (ou cva se for baseado em variantes).

Individual skills in this repo

This repo contains 13 individual skills — each has its own dedicated page.

CharbelElBateh/personal-website

Build animations in React Native and Expo, making the decisions in the order that determines whether they feel right — should it animate, which thread it runs on, which properties, spring or timing, how the gesture hands off, how it degrades. Writes the implementation with Reanimated, Gesture Handler, Expo Router and expo-haptics. Use when animating anything in an Expo app, adding gestures, sheets, screen transitions, press feedback or haptics, or fixing motion that stutters on device. For web animation use `animate`.

CharbelElBateh/personal-website

Build an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations.

CharbelElBateh/personal-website

Reverse-lookup glossary that turns a vague description of a web animation or motion effect into its exact term ("the bouncy thing when a popover opens" → Pop in; "the iOS rubber-band scroll" → Rubber-banding). Use when the user asks "what's it called when…", or describes a motion effect without knowing its name and wants the right word to prompt an AI or designer with. For naming an effect, not designing or building one.

CharbelElBateh/personal-website

Apple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring animations, drag/swipe/sheet interactions, momentum and interruptible transitions, translucent materials and depth, typography (optical sizing, tracking, leading), reduced-motion, or the design foundations (feedback, spatial consistency, restraint) behind Apple-style interfaces.

CharbelElBateh/personal-website

Guide to Sonner, the React toast library — install and wire up the Toaster, pick the right toast() call, promise and loading toasts, updating, dismissing and persisting toasts, styling, theming and icons, positioning and multiple toasters. Use when working with Sonner or troubleshooting it — toasts that don't appear, appear twice, lose their styles, ignore Tailwind classes, sit behind a modal, or don't follow dark mode.

CharbelElBateh/personal-website

Try to break a piece of UI by feeding it worst-case data — long names, unbreakable emails, one-letter names, missing fields, huge counts, zero items, long labels, non-Latin text, emoji, extreme numbers — then render it behind a "Demo data / Worst case" toggle and report everything that broke, with the fix for each. Use when the user asks to stress-test, break, or find edge cases in a component or screen, or to "try the worst case". For visual design critique use emil-design-eng; for motion use review-animations.

CharbelElBateh/personal-website

This skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible details that make software feel great.

CharbelElBateh/personal-website

Search a codebase or UI for places that don't animate but should, and reject everything that shouldn't. Read-only; it proposes motion with exact values, it does not implement it. Use when the user asks "what could be animated here?" or wants to "make this feel more alive". For fixing existing animations, use improve-animations or review-animations instead.

CharbelElBateh/personal-website

Survey a codebase's animation and motion code as a senior motion advisor, then produce a prioritized audit and self-contained implementation plans for other agents (or cheaper models) to execute. Read-only on source code — it plans improvements, it does not apply them. Use when the user asks to "improve the animations", "audit the motion", "make this app feel better", or wants a roadmap of animation fixes rather than a review of a single diff.

CharbelElBateh/personal-website

Make a web app feel native on a phone — the small CSS and meta-tag fixes that separate "a website in a browser" from something that feels installed. Covers sticky hover states, tap highlight flashes, the 100vh bug, inputs that zoom the page, laggy taps, pull-to-refresh hijacking scroll, content under the notch, long-press selecting button text, carousels that scroll the wrong way, mismatched status bars, and the rule that you test on real hardware. Use when a web app is being built for or reviewed on mobile, when something "works in Chrome but feels wrong on my phone", when building a PWA, a bottom sheet, a carousel, a full-screen layout, or any touch interaction. For motion itself use animate; for React Native use animate-expo.

CharbelElBateh/personal-website

Build multiple genuinely different versions of a UI piece you describe, rendered behind a visual picker so you can flip through them live and promote the one that feels right. Only runs when explicitly invoked; it does not trigger on its own.

CharbelElBateh/personal-website

Reviews animation and motion code against a high craft bar derived from Emil Kowalski's design engineering philosophy. Default to flagging; approval is earned.

CharbelElBateh/personal-website

How to write modern Swift well — modeling with value types, Swift 6 data-race safety and approachable concurrency (@concurrent, main-actor-by-default, actors, task groups), protocols and generics (some vs any), API design, performance and ARC, Swift Testing, macros, and the modern language features agents don't know about yet. Use when writing, reviewing, or migrating Swift, or when a concurrency error, a hang, a data race, a retain cycle, or a performance problem needs fixing.

Habilidades Relacionadas