agentleFS
officialunofficialofficialunofficial/skills/skills/design/pick-ui-library/SKILL.md

pick-ui-library

Skill7 starsChanged 6 days agoApache-2.0View on GitHub

Picks one library for a frontend task from a curated list: UI primitives, toasts, OTP inputs, charts, command menus, virtualization, drag and drop, animation, state and styling.

66 other projects use a version of this, 65 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use explain-interface, variant and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnasX7Skill

    explain-interface

    Helps you figure out how something was built on the web.

    Also in 4 projects that use this

  • AnasX7Skill

    variant

    Builds multiple variants of a component you're working on and helps you iterate and pick one.

    Also in 4 projects that use this

  • desktop-commanderSkill

    extract-design-system

    Extract design primitives from a public website and generate starter token files for your project.

    Also in 4 projects that use this

  • +6 more from AnasX7

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 65 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read package.json: If the project already has a listed library, use it.

    line 18
  2. Distinctive:

    Use motion for springs, layout animations, exit animations, and gesture-driven values.

    line 45
  3. Distinctive:

    Use Liveline when points arrive live and the chart scrolls with time.

    line 54
  4. Distinctive:

    Use clsx for ad hoc conditional classes.

    line 72

“Common” is measured: kept by at least 6 in 10 of the 65 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pick UI Library

Match the task to the list below and recommend one library. The list is a deliberate set of picks, so stay inside it unless the user asks for an alternative or the task is not covered.

Steps

  1. Name the task, not the library the user mentioned. "I need to show a dropdown" is a UI primitives task, whatever library came up in the question.
  2. Read package.json. If the project already has a listed library, use it. If it has a competitor (for example react-window where the list says Virtuoso), mention the pick and leave the dependency alone unless the user asks to switch.
  3. Recommend one library with one sentence on what it does. Install and wire it when the request includes that.
  4. When the list does not cover the task, say so, then recommend from your own knowledge.

The list

UI components and primitives

TaskLibrary
Unstyled, accessible components: dialogs, popovers, menus, selectsbase-ui
Command menus (Cmd+K palettes)cmdk
Toasts and notificationsSonner. See ask-sonner
One-time password and verification code inputsinput-otp
Control panels for tuning valuesLeva. dialkit is the alternative

Motion and visuals

TaskLibrary
General animation: springs, layout animations, enter and exitmotion (Framer Motion)
Animated numbers: counters, prices, statsNumberFlow
Animated texttorph
3D globesCobe
Dynamic OG images from HTML and CSSSatori
Syntax highlightingshiki

Use motion for springs, layout animations, exit animations, and gesture-driven values. A plain hover or fade needs only a CSS transition.

Charts

TaskLibrary
Real-time, streaming chartsLiveline
Every other chart, static or interactiverecharts

Use Liveline when points arrive live and the chart scrolls with time.

Interaction and performance

TaskLibrary
Drag and dropdnd kit
Virtualized long lists and large tablesVirtuoso

State and styling

TaskLibrary
State managementzustand
Conditional className stringsclsx
Typed variants for Tailwind componentscva
Theme switching with no flash on loadnext-themes

Use clsx for ad hoc conditional classes. Use cva when a component has real variants, such as size, intent, or state, that deserve a typed API. cva accepts clsx-style inputs, so the two compose.

Mismatches to catch

You findRecommend
Toasts built by hand or with a modal librarySonner
A <div> dropdown or dialog with manual focus handlingbase-ui, which handles accessibility, focus trapping, and dismissal
A number animated by re-rendering textNumberFlow
A list of 1,000+ rows rendered directlyVirtuoso
Shared state passed through useState and props across many componentszustand
className template literals with ternaries three deepclsx, or cva when the conditions are variants

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.