front-end-design
Skill1 starsChanged 30 days agoMITView on GitHub
Sets up a product's design system before the first UI step (style, palette, type, components, patterns, marketing sections, motion), shown in a dev-only gallery and approved by the user, or proposes one new component, pattern or token later. Use for /front-end-design, or when UI work needs something DESIGN.md doesn't have.
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- kevinph4n/skillstheir own version, first seen Nov 8, 2026
- qyndex/claude-inittheir own version, first seen Oct 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- qyndex/claude-init★ 2same name
- kevinph4n/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 repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- api-and-interface-designSkill
- browser-testing-with-devtoolsSkill
- buildSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- debugging-and-error-recoverySkill
- deploySkill
- design-motion-principlesSkill
- exploreSkill
- flow-documentSkill
- frontend-ui-engineeringSkill
- incremental-implementationSkill
- observability-and-instrumentationSkill
- planSkill
- playwright-cliSkill
- publishSkill
- pushSkill
- security-and-hardeningSkill
- web-design-guidelinesSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 2 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Keep it cheap: no review passes, critique loops or screenshot rounds.
- Very specific: line 21
The project already has UI: keep its existing tokens and components.
- Very specific: line 22
React: if components.json is missing, set up shadcn/ui on Base UI: npx shadcn@<pinned> init -d (the base-nova style).
- Very specific: line 24
Make sure the global CSS has a dark custom variant for the .dark class (shadcn init adds one.
- Very specific: line 32
Style: Read .agents/references/ui-templates/README.md and shortlist from it.
- Very specific: line 41
Write the chosen scales into DESIGN.md and remove the options.
- Very specific: line 44
Write the family name the package declares (for example Newsreader Variable) in the tokens.
- Very specific: line 46
every component family the product needs, in every state, from the project's shadcn/ui components on Base UI, themed only from DESIGN.md.
- Distinctive: line 49
every row of the motion inventory, playing with replay.
- Very specific: line 51
Add each to the gallery registry and to the Approvals table as proposed.
- Distinctive: line 53
Ask once, with the gallery URL: "Approve" or "Change something".
- Very specific: line 58
After setup and after every change to DESIGN.md:
- Very specific: line 65
Covered?: If DESIGN.md has it and it's approved, build with it.
- Very specific: line 66
Propose: add 1–2 options to DESIGN.md and the gallery, each built from the existing tokens, with an Approvals row proposed.
- Very specific: line 70
Never build on a proposed item.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Front-end design
The user never designs anything. You propose options, build them in the gallery, and the user answers questions and looks at /design. .agents/rules/design-system.md is the rule; this skill is how to run it.
Read first: .agents/rules/design-system.md, .agents/rules/frontend.md, DESIGN.md if it exists, .agents/skills/front-end-design/references/direction.md (choices and copy) and .agents/skills/front-end-design/references/craft.md (hierarchy, surfaces, polish, motion).
Which flow:
- No
DESIGN.md, or its Approvals table has noapprovedrows: new project (below). /front-end-design <what>, or work needs somethingDESIGN.mddoesn't have: design change (below).
Keep it cheap: no review passes, critique loops or screenshot rounds. The user's look at the gallery is the review. Ask with the question tool (.agents/rules/asking.md), up to 3 questions per card.
New project
- Set up
DESIGN.mdand the gallery.- Copy
.agents/templates/DESIGN.mdto the project root if it's missing. - The project already has UI: keep its existing tokens and components. Move them into the template's sections and the gallery, each with an Approvals row
proposed, and offer them as the first option in steps 2–5. Freeze v1 approves them with everything else. - React: if
components.jsonis missing, set up shadcn/ui on Base UI:npx shadcn@<pinned> init -d(thebase-novastyle). Add components withnpx shadcn@<pinned> add <name>as the build needs them. - Copy the gallery from
.agents/templates/design-gallery/(Next.js:nextjs/app/(dev)/design/intoapp/; other frameworks: build it from that folder'sREADME.md). - Make sure the global CSS has a
darkcustom variant for the.darkclass (shadcn initadds one; otherwise add@custom-variant dark (&:where(.dark, .dark *));). - Export the theme (below) and import its files in the global CSS, so the gallery shows
DESIGN.md's values from the start. Start the dev server and give the user the/designURL.
- Copy
Brand. Ground it in the subject first (
.agents/skills/front-end-design/references/direction.md). Ask in one card:- who it's for and the job (your proposal, confirmed);
- 3 adjectives (2–3 sets to choose from);
- what it must never feel like.
Then propose 2–3 signature elements and ask which. Write Overview and Brand & personality.
Style. Read
.agents/references/ui-templates/README.mdand shortlist from it. Ask in one card:- the app shell and page layouts;
- the marketing style: light and minimal, dark and animated, or none;
- a starting theme: 3 tweakcn presets that fit the brand.
The templates give layout; colours, type and radius always come from
DESIGN.md.- Palette.
- Pick 3 hues from the theme and the brand's colour world, and run
node .agents/tools/design-palette.mjs --hue <h>for each. Drop any that exits 1. - Show the three side by side in the gallery's colour section (temporary
-option-a/b/ctokens), and ask which. - Write the chosen scales into
DESIGN.mdand remove the options.
- Pick 3 hues from the theme and the brand's colour world, and run
- Type. Propose 2–3 pairings chosen for this product (not the usual families), shown in the gallery's typography section, and ask which. Write the typography tokens and the font loading:
- Self-host each family with Fontsource (
npm i @fontsource-variable/<family>@<pinned>), imported in the global CSS before the theme. - Write the family name the package declares (for example
Newsreader Variable) in the tokens. Notnext/font: it renames families, so the exported theme wouldn't find them.
- Self-host each family with Fontsource (
Components, patterns, marketing and motion. Build them all, as
proposed, without asking in between:- every component family the product needs, in every state, from the project's shadcn/ui components on Base UI, themed only from
DESIGN.md; - the patterns (list, detail, form, settings, dashboard, auth, onboarding) with the messy fixtures, adapted from the shell and page layouts chosen in step 3 (a list's table from
tablecn/); - the marketing sections, if the product has a marketing site, adapted from the chosen templates;
- every row of the motion inventory, playing with replay.
Add each to the gallery registry and to the Approvals table as
proposed. Name a component after its file (components/ui/input.tsxis "Input"), so the pre-PR design coverage check finds it.- every component family the product needs, in every state, from the project's shadcn/ui components on Base UI, themed only from
- Freeze v1.
- Ask once, with the gallery URL: "Approve" or "Change something". A change: fix it in the gallery and ask again.
- On approve: mark every row
approvedwith versionv1and today's date. - Export the theme again and run
npx @google/design.md@<pinned> lint DESIGN.md. It must show 0 errors.
Export the theme
After setup and after every change to DESIGN.md:
npx @google/design.md@<pinned> export --format css-tailwind DESIGN.md > <theme file>, thennode .agents/tools/design-tokens.mjs --out <tokens file>(motion, breakpoints, icon sizes and the-darkcolours).- With shadcn/ui, also
node .agents/tools/design-tokens.mjs --shadcn --out <shadcn file>, so every shadcn component takes its colours, radius and fonts fromDESIGN.md. Import it instead of whatshadcn initwrote: its:rootand.darkblocks, the--font-*lines in its@theme inline, and the layout'snext/fontfonts. - Restart the dev server when the global CSS imports change.
Design change
For one new component, variant, pattern, section or token:
- Covered? If
DESIGN.mdhas it and it'sapproved, build with it. Stop here. - Propose: add 1–2 options to
DESIGN.mdand the gallery, each built from the existing tokens, with an Approvals rowproposed. - Ask which option, with the gallery URL.
- Approve: mark the chosen one
approved(version bumped, today's date), remove the other, re-export the theme, then build with it.
Never build on a proposed item; never add a one-off value or a local restyle instead.
Gallery rules
- Built from the project's real components; one registry entry per item, named as in the Approvals table.
- Checked at desktop 1440×900 and mobile 390×844, light and dark, with no console errors. Returns 404 in production.
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.

