agentleFS
aurelienmazeaurelienmaze/skills/better-design/SKILL.md

better-design

Skill1 starsChanged 39 days agoMITView on GitHub

Design, motion and interaction rules for building and reviewing UI on the web (React, Next.js, Tailwind) and in React Native / Expo. Use for any frontend work, even when not asked explicitly: new screens, components, forms, animations, surfaces, typography, color, polish. Also use when the user invokes /better-design, or says a UI feels off, generic or not polished.

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. marvkr/better-design★ 612same name
    2. Moddingflow/better-design★ 47same name
    3. itsryanarmani/skills★ 1same name
    4. pooriaarab/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

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 4 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. Distinctive:

    Never present options as a menu.

    line 16
  2. Distinctive:

    Before writing UI code, read the references the task touches:

    line 20
  3. Distinctive:

    When a browser is available, walk every state you built (hover, active, loading, empty, error) and replay motion at 10% speed in the …

    line 36
  4. Very specific:

    Read references/audit.md. Invoked as /better-design audit, run the full audit.

    line 40

“Common” is measured: kept by at least 6 in 10 of the 4 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

Better Design

This skill holds the small details that compound into an interface that feels right: motion, interaction, surfaces, type, color, layout and copy. It builds UI to that bar, and in audit mode it reviews existing UI against it.

Exact values

The values in the references are exact, not ranges to approximate. cubic-bezier(0.23, 1, 0.32, 1) is not cubic-bezier(0.4, 0, 0.2, 1). Optical nudges and the concentric padding cutoff are the exceptions: starting points, judged by eye.

Extend the codebase's tokens, components and styling system, don't fork them. Express every change in the project's system: Tailwind in a Tailwind project, plain CSS in a CSS project. Never introduce a second styling system just to apply a polish fix. A deliberate and consistent project convention is a preference, not a finding. The same detail done two ways within the project is a finding.

Never present options as a menu. Make the call, state the reasoning in one line, write the code.

Build

Before writing UI code, read the references the task touches:

TaskRead
Anything that animates or transitionsreferences/motion.md, then references/recipes.md for the component
Motion that stutters, or runs while the page is busyreferences/performance.md
Buttons, forms, overlays, lists, gestures, loading and empty statesreferences/interactions.md
Radius, shadows, borders, images, iconsreferences/surfaces-and-icons.md
Textreferences/typography.md
Colors, tokens, dark mode, contrastreferences/color.md
Grouping, spacing, alignment, responsive structurereferences/layout.md
Labels, errors, empty states, confirmationsreferences/copy.md
A web app used on a phonereferences/mobile-web.md
React Native / Exporeferences/native.md (the gate in motion.md still applies)
The task needs a component (toast, dropdown, command menu, chart, drag and drop…)references/libraries.md before building one by hand

When a browser is available, walk every state you built (hover, active, loading, empty, error) and replay motion at 10% speed in the Animations panel. What feels off at 10% speed is what's subtly wrong at full speed.

Audit

Read references/audit.md. Invoked as /better-design audit, run the full audit. Called from another skill (such as /ship) or run on your own after building, run the light pass. When asked to stress-test or "try the worst case", read references/stress-test.md.

Never ship

NeverInstead
Animation on a keyboard shortcut or 100+/day actionNo animation
transition: allName the exact properties
transform: scale(0) entrancescale(0.95) + opacity: 0
ease-in on a UI elementease-out or a strong custom curve
Built-in ease-out on a deliberate animationcubic-bezier(0.23, 1, 0.32, 1)
UI duration over 300ms with no reason150-250ms
transform-origin: center on a trigger-anchored popovervar(--transform-origin) (modals exempt)
Keyframes on toasts, toggles, rapidly-triggered elementsCSS transitions
Animating width/height/margin/padding/top/lefttransform / opacity
Ungated :hover motion@media (hover: hover) and (pointer: fine)
Missing prefers-reduced-motionGentler variant, not zero
A state change carried by motion aloneLeave a color, icon or label behind
Padded parent and child with the same radiusAdd the padding to the outer radius
A border that exists only to create depthLayered transparent box-shadow
Proportional digits on changing numberstabular-nums
Fixed width or height on a box holding textmax-width, min-height
An error that names no way to recoverSay what failed and the next step

Sources and licenses: NOTICE.md.

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.