Agent Skill
Frontend design
Steers UI work away from template defaults toward a deliberate visual direction, with a plan, review and self-critique loop before and after building.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkInstall
Commands are pinned to commit e4bb5d9, the version we read, wherever the install method supports it.
npx skills
npx skills add anthropics/skills@e4bb5d960d87126ff3b3a8af1a104b7db67560ba --skill frontend-design -a claude-codeCopies the skill into .claude/skills/ in this project, pinned to the reviewed commit.
Plugin marketplace
/plugin marketplace add anthropics/skills
/plugin install example-skills@anthropic-agent-skillsRun inside Claude Code. Installs the whole example-skills plugin from its default branch, not the pinned commit.
Upload
git clone https://github.com/anthropics/skills.git
cd skills && git checkout e4bb5d960d87126ff3b3a8af1a104b7db67560ba
cd skills && zip -r ~/frontend-design.zip frontend-designThen in Claude open Customize > Skills, choose + > Upload a skill and pick the zip. Code execution must be enabled in Settings > Capabilities.
npx skills
npx skills add anthropics/skills@e4bb5d960d87126ff3b3a8af1a104b7db67560ba --skill frontend-design -a codexInstalls to .agents/skills/, which Codex scans from the working directory up to the repo root.
npx skills
npx skills add anthropics/skills@e4bb5d960d87126ff3b3a8af1a104b7db67560ba --skill frontend-design -a cursorInstalls to .agents/skills/, one of the folders Cursor reads skills from.
gh skill
gh skill install anthropics/skills skills/frontend-design --pin e4bb5d960d87126ff3b3a8af1a104b7db67560ba --agent github-copilotNeeds GitHub CLI 2.90.0 or later. Use --scope user to install for every repository.
npx skills
npx skills add anthropics/skills@e4bb5d960d87126ff3b3a8af1a104b7db67560ba --skill frontend-designPinned to the commit we reviewed. The CLI asks which agents to install for; add -g to install for your user instead of this project.
What it does
A short, opinionated skill about taste. It asks the agent to ground the design in the subject matter, commit to an aesthetic direction, and then follow a loop: plan against the brief, build, critique the result and cut what does not earn its place. There is a section on restraint and one on writing inside designs, since placeholder copy is often what makes generated UI look generic.
When to use it
New interfaces where you want something other than the default look: landing pages, side projects, prototypes, internal tools that people will actually enjoy using. The plan, build, critique loop is the useful habit: it makes the agent look at what it made and cut what does not work.
When to skip it
Established products with a design system, unless you point the agent at your tokens and components first; otherwise it will introduce a new direction. Our design system skill recipe shows how to make your system the default.
Try it
Design and build a landing page for a small bakery's pre-order
service. Commit to a clear visual direction, use real copy rather
than placeholders, and critique the first version before refining it.
What it can touch
- Bundles scripts
- No
- Pre-approved tools
- None declared
- Needs
- Nothing beyond the agent
- Client-specific fields
- None, spec fields only
Its instructions steer what your agent does, and it may have changed since the commit we read. How to check a skill.
Instructions only. It deliberately pushes for distinctive choices, which may clash with an existing design system. Point the agent at your tokens and components when you use it on an established product.
At commit e4bb5d9 the SKILL.md is 72 lines long. Alongside it:
LICENSE.txt
Alternatives
Web design guidelines for rule-based review, theme factory for quick preset styling, and DESIGN.md from Stitch when designs come from Google Stitch.
SKILL.md
The file exactly as published at the reviewed commit, reproduced under its Apache-2.0 licence.
---
name: frontend-design
description: Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
license: Complete terms in LICENSE.txt
---
# Frontend Design
Approach this as the design lead at a design studio known for giving every client a distinct visual identity that is not mistaken for anyone else's. This client has already rejected proposals that felt cliché or templated, and is paying for a distinctive point of view: make deliberate, opinionated choices about palette, typography, and layout that are specific to this brief, and take aesthetic risk if justified.
## Ground your designs in the subject matter
If the brief does not identify what the product or subject matter is, identify it yourself before designing, and confirm with the client. You can come up with one concrete subject, the design's audience, and the design's primary job, as a proposal. If there's any information in your memory about the client's preferences or context about what they're building, use that as a hint. The subject's industry, subject matter, materials, and vernacular are where distinctive visual choices come from — a design for a toy for girls aged 8–11 will be very aesthetically different from a dashboard for financial analysts. Build with the brief's real content and subject matter throughout.
## Design principles
For web designs, the hero is the first thing viewers will see. Open with the most characteristic thing in the subject's world, in the form that is most appropriate: a headline, an image, an animation, a live demo, an interactive moment, or other treatments. Be deliberate with your choice: a big number with a small label, supporting stats, and a gradient accent is the default treatment, so only use it if that's truly the best option.
Typography carries the personality of the page. You don't need a different typeface for display or headline text and body content: use one family or two, and if two, make them clearly distinct.
Choose your typefaces deliberately, not the default families you would reach for on any other project, and set a clear type scale following the default guidance of The Elements of Typographic Style with intentional weights, widths, and spacing. When type is used as a headline or visual element, use the type treatment itself as an active part of the design, not a neutral delivery vehicle for the content.
Default to line lengths of less than 80 characters. Serif typefaces can have slightly longer line lengths; give serif body text slightly more line-height than a sans-serif.
Avoid these default typographic treatments; they are the commonest tells of a generated page:
- Accenting just a single word or phrase in a headline, like putting one word in italic/bold or a different color.
- Using all caps for labels.
- Adding unnecessary typographic labels above content.
Visual structure is information. Structural devices like outlines, borders, numbering, eyebrows, dividers, labels, etc., encode useful information about the content rather than decorate it. Many generic designs use numbered markers (01 / 02 / 03), but that's only appropriate if the content actually is a sequence — like a stepped process or a timeline. Before adding numbered markers, check the content really is a sequence.
Use non-user-triggered motion sparingly and deliberately, only to draw attention. A single orchestrated moment — one page-load sequence or one reveal — lands better than scattered effects; fade-and-slide-up entrances on each section and hover transitions on every card are the generic default and read as AI-generated. Motion that answers a person's action (opening, expanding, confirming) is welcome when it shows what changed.
Consider written content carefully. Often a design brief may not contain real content, and it's up to you to come up with copy and placeholder content. Copy can make a design feel as templated as the design itself. See the below section on writing for more guidance.
## Process: plan, review against the brief, build, critique
For calibration, AI-generated design right now clusters around some traits:
1. a warm cream background (near #F4F1EA) with a high-contrast serif display and a terracotta or warm-clay accent (often near #D97757 — Anthropic's own Claude-interaction accent, so on a user's brief it reads as a tell);
2. a near-black background with a single bright acid-green or vermilion accent;
3. a broadsheet-style layout with hairline rules, zero border-radius, and dense newspaper-like columns;
4. the SaaS-card kit: content chopped into identical rounded cards, one border-radius on everything regardless of hierarchy, the same soft grey shadow (rgba(0,0,0,.1)) under each, and gradient washes as decoration;
5. template chrome that appears whatever the subject: a tracked-out ALL-CAPS eyebrow label above every heading; meta strings joined with middle dots ('A · B · C'); labels built as 'WORD — fragment' with a spaced em dash; tinted near-black (#0B0B0B, #111) standing in for black; a monospace face for small data labels; a '→' appended to link and button text.
All traits are legitimate for some briefs, but they are defaults rather than choices, and they appear regardless of subject. Where the brief pins down a visual direction, follow it exactly — the brief's own words always win, including when it asks for one of these looks. Where it leaves an axis free, don't spend that freedom on one of these defaults. As with a hired human designer, there's often a careful balance between doing what you're good at and taking each project as a chance to experiment and learn.
Work in two passes. First, brainstorm a short design plan based on the client's design brief: create a compact token system with color, type, layout, and principles.
- Color: describe the core base palette as 4–6 named hex values.
- Type: the typefaces and their roles.
- Layout: a layout concept, using one-sentence prose descriptions and ASCII wireframes to ideate and compare. Include alignment guidance; should the content be left aligned, center aligned, justified?
- Principles: the high-level guidance for what makes this page unique.
Then review that plan against the brief before building: if any part of it reads like the generic default you would produce for any similar page (work through a similar prompt to see if you arrive somewhere similar) rather than a choice made for this specific brief — revise that part, say what you changed and why. Only after you've confirmed the relative uniqueness of your design plan should you start to write the code, following the revised plan.
When writing the code, be careful of structuring your CSS selector specificities. It's easy to generate CSS classes that cancel each other out (especially with a type-based selector like .section and an element-based selector like .cta). This can happen often with padding/margin between sections.
## Restraint and self-critique
Spend your boldness in one place. Let one element be the memorable thing, keep everything around it quiet and disciplined, and cut any decoration that does not serve the brief. Build to a quality floor without announcing it: responsive down to mobile, visible keyboard focus, reduced motion respected, visually accessible, harmonious color palettes. Critique your own work as you build, taking screenshots to review if your environment supports it — a picture is worth 1000 tokens. Consider Chanel's advice: before leaving the house, take a look in the mirror and remove one accessory. Human creatives have memory and always try to do something new, so if you have a space to quickly jot down notes about what you've tried, it can help you in future passes.
## More on writing in design
Words appear in a design for one reason: to make it easier to understand and use. They are design content, not decoration. Bring the same intentionality and minimalism to copywriting that you would bring to spacing and color. Before writing anything, ask what the design needs to say, and how it can best be said to help the person navigate the experience.
Write from the end user's perspective. Name things by what users will understand in simple language, not by how the system is built. A user manages notifications, not webhook config. Describe what something is or does in plain terms rather than selling it. Being specific and legible to new users is always better than being clever.
Use active voice as default. A CTA says exactly what happens when it is used: "Save changes," not "Submit." An action keeps the same name through the whole flow, so the button that says "Publish" produces a toast that says "Published." The vocabulary of an interface is the signposting for someone navigating the product. Cohesion and consistency are how people learn their way around.
Treat failure and emptiness as moments for direction, not mood. Explain what went wrong and how to fix it, in the interface's voice rather than a person's. Errors don't apologize, and they are never vague about what happened. An empty screen is an invitation to act.
Keep the tone conversational: plain verbs, sentence case, no filler, with tone matched to the brand and the audience. Let each written element do exactly one job.Related skills
Web design guidelines (Vercel)
Reviews UI files against Vercel's Web Interface Guidelines, which the agent downloads fresh from GitHub before each review. Reports file:line findings.
shadcn/ui
Official shadcn/ui skill: adds, searches, fixes and styles components using the CLI and your components.json, with rules for forms, icons and composition.
DESIGN.md from Stitch (Google Labs)
Reads a Google Stitch project through the Stitch MCP server and writes a DESIGN.md that describes its colours, type, shapes and layout in plain words.
Guides and recipes that use Frontend design
- Prototype an internal tool with an app builder
Build an internal tool prototype with AI with v0, Lovable or Bolt in an afternoon, test it with real users, and list what must change before it meets real data.
- Cursor skills: folders, /create-skill and Cloud Agents
Which folders Cursor reads skills from, how to attach a skill to a message or Custom Mode, the built-in /create-skill, and which skills reach Cloud Agents.
- Agent Skills in OpenCode, Amp, goose and Kiro
Where OpenCode, Amp, goose and Kiro look for SKILL.md folders, how each one loads and runs skills, and the install commands, checked against each vendor's docs.
- Skill recipe: your design system
A worked skill that teaches coding agents your tokens, components and do and don't rules, with detail in reference files so it loads only when needed.