New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Pick the right library for a given frontend task

Picking The Right Library

by emilkowalski · MIT license · ★ 40,755 on GitHub · updated Sep 23

Picking The Right Library cover

Pick the right library for a given frontend task from a curated, opinionated list — numbers, OTP inputs, charts, command menus, virtualization, drag and drop, toasts, state, styling, and more. Only runs when explicitly invoked; it does…

---
name: pick-ui-library
description: Pick the right library for a given frontend task from a curated, opinionated list — numbers, OTP inputs, charts, command menus, virtualization, drag and drop, toasts, state, styling, and more. Only runs when explicitly invoked; it does not trigger on its own.
disable-model-invocation: true
---

# Picking The Right Library

## Initial Response

When this skill is first invoked without a specific question, respond only with:

> I'm ready to pick the right library for your task, my picks come from Emil Kowalski's curated list.

Do not provide any other information until the user asks a question.

A lookup skill. When invoked with a task ("I need toasts", "what should I use for drag and drop?"), match the task to the curated list below and recommend the library. These are deliberate, taste-driven picks — don't substitute alternatives outside this list unless the user asks for one or the task genuinely isn't covered.

Overview

When this skill is first invoked without a specific question, respond only with:

Manual install (npx, ZIP)
Claude Codenpx skills add emilkowalski/skills --skill pick-ui-library -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/emilkowalski/skills/tar.gz/d16ebe60d09a \ | tar -xz -C ~/.claude/skills --strip-components=2 skills-d16ebe60d09a/skills/pick-ui-library
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/deef7dae188938262b3a/pick-ui-library.zip" -OutFile "$env:TEMP\pick-ui-library.zip"; Expand-Archive "$env:TEMP\pick-ui-library.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md4.7 KB
Read the files here
emilkowalski/d16ebe61 file
SKILL.md
Show the full text86 lines

Picking The Right Library

Initial Response

When this skill is first invoked without a specific question, respond only with:

I'm ready to pick the right library for your task, my picks come from Emil Kowalski's curated list.

Do not provide any other information until the user asks a question.

A lookup skill. When invoked with a task ("I need toasts", "what should I use for drag and drop?"), match the task to the curated list below and recommend the library. These are deliberate, taste-driven picks — don't substitute alternatives outside this list unless the user asks for one or the task genuinely isn't covered.

How to use this

  1. Identify the task, not the library the user named. "I need to show a dropdown" is a UI-primitives task (base-ui), even if they asked about something else.
  2. Check what's already installed. Look at package.json first. If the project already uses a listed library, use it. If it uses a competitor (e.g. react-window instead of Virtuoso), flag the recommendation but don't churn the dependency without being asked.
  3. Recommend one library, state what it's for in one sentence, and install/wire it up if that's part of the request. Don't present a menu of options when the list has a clear answer.
  4. If the task isn't covered by the list, say so explicitly and recommend from your own knowledge — but be clear you've left the curated list.

The list

UI components & primitives
Task Library
Unstyled, accessible UI components (dialogs, popovers, menus, selects…) base-ui
Command menus (⌘K palettes) cmdk
Toasts / notifications Sonner
One-time password / verification code inputs input-otp
Customizable GUIs / control panels Leva — dialkit is an alternative
Motion & visuals
Task Library
General-purpose animation (springs, layout animations, enter/exit) motion (Framer Motion)
Animating numbers (counters, prices, stats) NumberFlow
Animated text components torph
3D globes Cobe
Dynamic OG images (HTML/CSS → SVG/PNG) Satori
Syntax highlighting shiki

Reach for motion when you need springs, layout animations, exit animations, or gesture-driven values. A simple hover or fade doesn't need it — plain CSS transitions are the right tool there.

Charts
Task Library
Real-time / streaming charts Liveline
General charts (static or interactive dashboards) recharts

The split: if data points arrive live and the chart scrolls with time, use Liveline. Everything else is recharts.

Interaction & performance
Task Library
Drag and drop dnd kit
Virtualization (long lists, large tables) Virtuoso
State & styling
Task Library
State management zustand
Constructing className strings conditionally clsx
Type-safe, variant-driven styling for Tailwind cva
Theme switching / dark mode (no flash on load) next-themes

The styling split: clsx for ad-hoc conditional classes; cva when a component has real variants (size, intent, state) that deserve a typed API. They compose — cva uses clsx-style inputs internally.

Common mismatches to catch

  • Toasts built by hand or with a modal library → Sonner exists for exactly this.
  • A <div>-based dropdown/dialog with manual focus handling → base-ui, which handles accessibility, focus trapping, and dismissal.
  • Animating a number by re-rendering text → NumberFlow handles digit transitions properly.
  • Rendering a 1,000+ row list directly → Virtuoso before reaching for pagination hacks.
  • A useState-per-component web of props for shared state → zustand.
  • Template-literal className ternaries three conditions deep → clsx (or cva if it's variant-shaped).
1---
2name: pick-ui-library
3description: Pick the right library for a given frontend task from a curated, opinionated list — numbers, OTP inputs, charts, command menus, virtualization, drag and drop, toasts, state, styling, and more. Only runs when explicitly invoked; it does not trigger on its own.
4disable-model-invocation: true
5---
6 
7# Picking The Right Library
8 
9## Initial Response
10 
11When this skill is first invoked without a specific question, respond only with:
12 
13> I'm ready to pick the right library for your task, my picks come from Emil Kowalski's curated list.
14 
15Do not provide any other information until the user asks a question.
16 
17A lookup skill. When invoked with a task ("I need toasts", "what should I use for drag and drop?"), match the task to the curated list below and recommend the library. These are deliberate, taste-driven picks — don't substitute alternatives outside this list unless the user asks for one or the task genuinely isn't covered.
18 
19## How to use this
20 
211. **Identify the task**, not the library the user named. "I need to show a dropdown" is a UI-primitives task (base-ui), even if they asked about something else.
222. **Check what's already installed.** Look at `package.json` first. If the project already uses a listed library, use it. If it uses a competitor (e.g. react-window instead of Virtuoso), flag the recommendation but don't churn the dependency without being asked.
233. **Recommend one library**, state what it's for in one sentence, and install/wire it up if that's part of the request. Don't present a menu of options when the list has a clear answer.
244. If the task isn't covered by the list, say so explicitly and recommend from your own knowledge — but be clear you've left the curated list.
25 
26## The list
27 
28### UI components & primitives
29 
30| Task | Library |
31| --- | --- |
32| Unstyled, accessible UI components (dialogs, popovers, menus, selects…) | [base-ui](https://base-ui.com) |
33| Command menus (⌘K palettes) | [cmdk](https://cmdk.paco.me) |
34| Toasts / notifications | [Sonner](https://sonner.emilkowal.ski) |
35| One-time password / verification code inputs | [input-otp](https://input-otp.rodz.dev) |
36| Customizable GUIs / control panels | [Leva](https://github.com/pmndrs/leva) — [dialkit](https://joshpuckett.me/dialkit) is an alternative |
37 
38### Motion & visuals
39 
40| Task | Library |
41| --- | --- |
42| General-purpose animation (springs, layout animations, enter/exit) | [motion](https://motion.dev) (Framer Motion) |
43| Animating numbers (counters, prices, stats) | [NumberFlow](https://number-flow.barvian.me) |
44| Animated text components | [torph](https://torph.lochie.me/) |
45| 3D globes | [Cobe](https://cobe.vercel.app) |
46| Dynamic OG images (HTML/CSS → SVG/PNG) | [Satori](https://github.com/vercel/satori) |
47| Syntax highlighting | [shiki](https://shiki.style) |
48 
49Reach for motion when you need springs, layout animations, exit animations, or gesture-driven values. A simple hover or fade doesn't need it — plain CSS transitions are the right tool there.
50 
51### Charts
52 
53| Task | Library |
54| --- | --- |
55| Real-time / streaming charts | [Liveline](https://github.com/benjitaylor/liveline) |
56| General charts (static or interactive dashboards) | [recharts](https://recharts.org) |
57 
58The split: if data points arrive live and the chart scrolls with time, use Liveline. Everything else is recharts.
59 
60### Interaction & performance
61 
62| Task | Library |
63| --- | --- |
64| Drag and drop | [dnd kit](https://dndkit.com) |
65| Virtualization (long lists, large tables) | [Virtuoso](https://virtuoso.dev) |
66 
67### State & styling
68 
69| Task | Library |
70| --- | --- |
71| State management | [zustand](https://zustand.docs.pmnd.rs) |
72| Constructing `className` strings conditionally | [clsx](https://github.com/lukeed/clsx) |
73| Type-safe, variant-driven styling for Tailwind | [cva](https://cva.style) |
74| Theme switching / dark mode (no flash on load) | [next-themes](https://github.com/pacocoursey/next-themes) |
75 
76The styling split: clsx for ad-hoc conditional classes; cva when a component has real variants (size, intent, state) that deserve a typed API. They compose — cva uses clsx-style inputs internally.
77 
78## Common mismatches to catch
79 
80- **Toasts built by hand or with a modal library** → Sonner exists for exactly this.
81- **A `<div>`-based dropdown/dialog with manual focus handling** → base-ui, which handles accessibility, focus trapping, and dismissal.
82- **Animating a number by re-rendering text** → NumberFlow handles digit transitions properly.
83- **Rendering a 1,000+ row list directly** → Virtuoso before reaching for pagination hacks.
84- **A `useState`-per-component web of props for shared state** → zustand.
85- **Template-literal className ternaries three conditions deep** → clsx (or cva if it's variant-shaped).
86 
View all files on GitHub →

Details

Updated
Sep 23, 2026
License
MIT
Stars on the repo
★ 40,755
Checked
Source
emilkowalski/skills ↗
Creator
emilkowalski · 13 listings
View creator

Similar skills

See all →
SkillReverse engineer native, managed, Electron/JavaScriptREAmorluto/rea · by morlutoReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.★ 316k GitHub starsSkillBrainstorms ideas into designs before any creative workBrainstorming Ideas Into Designsobra/superpowers · by obraYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.★ 290k GitHub starsSkillRequires technical rigor and verificationCode Review Receptionobra/superpowers · by obraUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation★ 290k GitHub starsSkillDiagnosis loop for hard bugs and performance regressionsDiagnosing bugsmattpocock/skills · by mattpocockDiagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.★ 267k GitHub starsSkillImplement the result of /to-spec and /to-tickets in codeImplement specmattpocock/skills · by mattpocockImplement the result of /to-spec and /to-tickets in code.★ 267k GitHub starsSkillWriting a PR bodymattpocock/skills · by mattpocockUse when writing a PR body.★ 267k GitHub stars

More from emilkowalski

SkillReverse-lookup glossary that turns a vague descriptionAnimation vocabularyemilkowalski/skills · by emilkowalskiReverse-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.★ 40.8k GitHub starsSkillApple's approach to interface design and fluidApple designemilkowalski/skills · by emilkowalskiApple'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.★ 40.8k GitHub starsSkillBuild an animation from scratchBuilding Animationsemilkowalski/skills · by emilkowalskiBuild 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.★ 40.8k GitHub starsSkillBuild animations in React Native and ExpoBuilding Animations in Expoemilkowalski/skills · by emilkowalskiBuild 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`.★ 40.8k GitHub starsSkillEncodes Emil Kowalski's philosophy on UI polishDesign Engineeringemilkowalski/skills · by emilkowalskiThis skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible details that make software feel great.★ 40.8k GitHub starsSkillMake a web app feel native on a phoneFeeling Native On Mobileemilkowalski/skills · by emilkowalskiMake 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.★ 40.8k GitHub stars