frontend-ui
Skill4 starsChanged 20 days agoMITView on GitHub
Use this skill when designing or redesigning a website, web app, or any interface and you want the result to feel intentional and distinctive rather than generic. Covers art direction, typography, color systems, layout, motion, interface states, and the craft of interface copy. Load this when a user asks to build a new page, style an existing one, or make something look better.
We split this skill into the rules it gives an agent
10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
9
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
- Distinctive: line 35
Before proposing a new direction, find out what already constrains the result: an existing token file, theme, or component library.
- Distinctive: line 40
When those exist, they outrank your instincts.
- Distinctive: line 48
Before writing any markup or CSS, produce a short plan with four parts:
- Distinctive: line 79
If the subject warrants it, add a short motion plan: where animation is earned, what it expresses, and where it stays quiet.
- Distinctive: line 102
Every surface has states the happy path never shows, and they are the first thing users actually see.
- Distinctive: line 112
Every choice cites the brief: If you cannot say why a color, weight, or spacing exists, cut it or find the reason.
- Distinctive: line 140
When redesigning, do not discard what works.
- Very specific: line 154
Every control is reachable and operable by keyboard, in a sensible order, with a visible :focus-visible style that is never removed without …
- Distinctive: line 179
When you are done, give the user:
- Distinctive: line 187
Keep it short. The work is the artifact.
“Common” is measured: kept by at least 6 in 10 of the 5 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.
Files
frontend-ui
Design like an art director who treats every brief as its own project: the result should read as a deliberate point of view, not a reusable template. If the user has shown you preferences, given you context about their product, or seen your earlier work, treat all of that as input. Take one justifiable risk per project, and make everything else disciplined.
This skill is guidance only; there is no helper CLI. Your editor, browser, and screenshot tools are the tools.
Own the brief before you touch pixels
Good design starts with a concrete subject. If the brief does not name one, pin it down: what is this product or page for, who uses it, and what is its single job? Write that down in one or two sentences. Every later decision should trace back to those sentences. Pull from the subject's own world — its materials, tools, vocabulary, and conventions — because that is where distinctive choices live. If the brief is thin on real content, propose some; copy is part of the design and can be the difference between a page that feels made and one that feels filled in. Placeholder text is never the answer.
Respect what you did not choose
Before proposing a new direction, find out what already constrains the result: an existing token file, theme, or component library; a brand guide; the framework, build setup, and whether a component library is already in use; the content model and what data is real.
When those exist, they outrank your instincts. Extend the system rather than fighting it, and say which existing patterns you reused. Only propose a new direction when the user asks for one or when the system genuinely blocks the brief. Introducing a second spacing scale next to an existing one is a defect, not a point of view.
The plan artifact: a compact design system
Before writing any markup or CSS, produce a short plan with four parts:
Palette. Four to six named colors with jobs, not just swatches: a surface or background tone, a primary action color, a text hierarchy (at least a strong and a muted tone), and one accent used sparingly. Check contrast while you are still choosing: body text needs 4.5:1 or better, large text and meaningful UI borders need 3:1, and disabled or decorative text is exempt only when it carries no information. If the pairings cannot hold those ratios, adjust the colors now rather than after building. If dark mode is in scope, plan both themes at once instead of deriving one from the other at the end.
Typography. Pick typefaces for roles, not "a font." Typically a display face
with real character used with restraint, a neutral body face that is comfortable
to read, and optionally a utility face for captions, numbers, or data. Aim for
pairings that are different enough to be interesting and compatible enough to
share a page. Set an explicit scale before you style anything: sizes, weights,
line heights, and spacing for each level you use, built on a consistent step
rather than one-off values. Let the large sizes fluid with clamp() so nothing
overflows on a narrow screen, and load fonts with font-display: swap plus a
metric-compatible fallback so the layout does not jump.
Layout. Describe the arrangement in a sentence or two, then sketch it with an ASCII wireframe so you can compare options before committing. Think in terms of hierarchy: what is seen first, what supports it, what recedes. Decide the spacing scale here — one base unit and a short multiplier list beats inventing padding per component.
Centerpiece. Name the single element that will make this page memorable and that embodies the brief — a moment, an interaction, a graphic device, a use of type. It should be the only loud thing on the page.
If the subject warrants it, add a short motion plan: where animation is earned, what it expresses, and where it stays quiet. Scattered effects read as noise; one orchestrated moment reads as design.
The default trap
Hasty and generated work clusters into a few recognizable looks: soft neutral backgrounds paired with serif display type and one warm accent; near-black backdrops with a single saturated highlight; dense editorial layouts built from hairlines with no border radius. Any of these can be the right answer for a given brief — but left to themselves they are defaults, not decisions. The same goes for oversized hero headline, one line of subtitle, and two rounded buttons, for gradients on every surface, and for copy like "Empower your workflow." When the user's brief explicitly asks for a direction, follow it exactly. When an axis is left open, do not spend that freedom on the obvious choice; spend it on something the brief actually justifies.
A useful test: imagine the same plan applied to an unrelated subject. If nothing about the plan is specific to this project — if any product would look the same — revise until it isn't, and say what you changed and why.
States are design, not error handling
Every surface has states the happy path never shows, and they are the first thing users actually see. Design loading (skeleton or progress that matches the final layout's shape, not a spinner over a blank page), empty (say what would be here and offer the action that creates it), error (what happened, what to do, in the product's voice), and success (a quiet confirmation near the thing that changed). Also design hover, focus, active, and disabled for every control, and make sure long content does not break the layout.
Principles
- Every choice cites the brief. If you cannot say why a color, weight, or spacing exists, cut it or find the reason.
- Structure carries meaning. Numbering, dividers, and labels should encode real information. A "01 / 02 / 03" sequence is only honest when the content is genuinely ordered, like a process or a timeline.
- Type is personality. The pairing of display and body is often the first thing a viewer remembers. Treat the type treatment as part of the design, not a delivery vehicle.
- Motion must earn its place. Movement draws attention; use it where it helps comprehension or delight, and resist adding it everywhere. Restraint reads as confidence.
- Match effort to ambition. A maximalist direction needs elaborate execution; a minimal direction needs flawless spacing and proportion. Either can be elegant once finished.
The writing is part of the design
Words are interface material, not filler. Write from the reader's side of the screen: name things by what people see and control, never by the machinery behind them. Prefer active, concrete labels ("Save changes," not "Submit"), and keep the same name for an action everywhere it appears — a button that says "Publish" should produce a toast that says "Published." Errors and empty states are directions, not apologies: say what happened and what to do next, plainly, in the product's voice. Match tone to audience, stay conversational, and keep it specific. A label labels, an example demonstrates; let each element do one job.
Reshaping something existing
When redesigning, do not discard what works. Inventory the current design first: what is it trying to say, what is genuinely broken, and what is worth keeping. Preserve the good, fix the specific problems, and evolve rather than replace wholesale unless the brief asks for a fresh start. The discipline is the same: name the problem, propose a plan, and let every change trace back to the brief.
Non-negotiable quality floor
Whatever the direction, ship to a baseline:
- Works at a 320px-wide viewport and at desktop width, with no horizontal scrolling and no clipped or overlapping content at any size in between.
- Survives 200% browser zoom and respects user font-size settings.
- Every control is reachable and operable by keyboard, in a sensible order, with
a visible
:focus-visiblestyle that is never removed without a replacement. - Interactive targets are at least 44x44 CSS pixels on touch.
prefers-reduced-motion: reducedisables or shortens non-essential motion.- Text meets the contrast ratios above; color is never the only carrier of meaning.
- Images have meaningful
alttext, oralt=""when decorative; nothing is left as a broken path or an unstyled placeholder.
A distinctive design that fails these reads as broken, not artistic.
Work in passes
Draft the plan, then review it against the brief before building. Be honest about what is generic, revise it, and note what you changed. Build following the plan, deriving colors, type, and spacing from it. Then critique your own work: look at the rendered result, screenshot it if your environment allows, and check that the centerpiece lands and nothing fights it. Check at least one narrow and one wide width, and tab through the page once before you ship. Iterate before showing the user — share ideas when you have some confidence they will delight, not as a running commentary. If you have a place to jot down what you tried, use it; it makes the next pass better.
What to hand back
When you are done, give the user:
- The plan — the four parts above, in a few lines each.
- What you built — the files you touched and where the centerpiece lives.
- What you checked — widths tested, keyboard pass, contrast and reduced motion, screenshots if you took them.
- What you skipped — anything you left out, and why.
Keep it short. The work is the artifact; the summary is a signpost, not a retrospective.
Before you call it done
- The brief is restated in one or two sentences.
- Existing tokens, components, and brand constraints were checked first.
- Every palette and type decision traces back to the brief.
- Contrast, focus, keyboard, touch target, and reduced motion verified.
- Loading, empty, error, and success states exist and are written.
- No placeholder copy, no lorem ipsum, no broken image paths.
- Checked at a narrow width and a wide width, with a screenshot if possible.
- One centerpiece; everything else stays quiet.
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- unreadlogs/AutarkChat★ 486% same
Wrote their own version · 4
- fossasia/eventyay★ 1.7ksame name
- instantX-research/skills★ 11same name
- WomenDefiningAI/claude-code-skills★ 10same name
- pyaephyo11979/rent4U★ 4same 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 repository12 other files it gives its agents.
- ast-aware-js-repo-auditSkill
- env-doctorSkill
- git-change-intelligenceSkill
- image-transform-pipelineSkill
- json-repair-and-schemaSkill
- launch-auditSkill
- ocr-to-markdownSkill
- pdfSkill
- secret-and-config-auditSkill
- sqlite-agent-toolkitSkill
- streaming-csv-json-normalizerSkill
- workspace-archivesSkill
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
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.

