Frontend design skill
Read the spec, pick a reference, structure before styling, screenshot check, run the banned list, then hand off.
SKILL.mdmarkdown · 45 lines
---
name: frontend-design
description: >
Use when building or changing UI users will see: pages, components, styles, layout.
Also when the user says "build a page", "make it look better", or "this looks AI-made".
Not for logic-only changes that don't touch styling.
---
# Frontend design
## Before starting
1. Read [DESIGN.md] and this task's design brief. Without a brief, ask four things; don't guess:
- Who it's for, and the one job this page does
- Which site or screenshot to reference, and what to take from it and what not to
- Page type: dashboard / landing / docs / form flow
- Whether real data and assets exist; if not, use placeholders labeled "sample", never invented ones
2. Look for existing components and tokens first; don't invent new colors or spacing
## Propose, then wait
3. Before writing code, give:
- Color: 4 to 6 named values and what each is for; one accent only
- Type: families for headings, body, and numbers, and the size scale
- Structure: the first screen and main sections, in words or ASCII
4. Ask of the proposal: which parts would look the same for any product in this category? Change them
5. Stop and wait for a person to approve the proposal
## Build
6. Structure and real content first, styling second
7. Every component gets all its states: default, hover, focus, active, disabled, loading, empty, error
8. Motion does two jobs only: feedback on state changes ([200ms] max, ease-out), or demonstrating the content itself; keep entrance motion light and one-time; respect prefers-reduced-motion
## Check before handoff
9. Open a browser and screenshot at [390px] and [1440px], light and dark
10. For each screenshot, write down the three worst things, fix them, screenshot again; at least two rounds
11. Go through "Don't" below item by item; run [detection command] if you have one
12. Walk through the main flow with the keyboard only
13. Hand off with the last round of screenshots and a list of anything unresolved
## Don't
- Purple-blue gradients, glassmorphism, neon glow; colors outside DESIGN.md
- A row of equal "icon + title + one line" cards; cards inside cards; shadows on everything
- Emoji as icons; 01 / 02 / 03 numbering for things that aren't steps
- Motion unrelated to the content: the same fade-in on every section, parallax, scale on hover
- Invented data, testimonials, or customer logos
- Saying "done" without having looked at a screenshot