Home / All Skills / Design & Motion / frontend-design
Design & Motion · anthropics/skills

frontend-design

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.

L1 Basic · Source registration onlyV1 Commit-PinnedDual-pass Audit
Author anthropicsGitHub anthropics/skills ↗Stars 174801License Apache-2.0(skill 目录自带 LICENSE.txt,全文 Apache License 2.0;anthropics/skills 仓库根无 LICENSE 文件,gh api license 字段为 null,各 skill 目录各自带许可)Commit 41bbe19d1a
Control levels describe skill capabilities and suggested control measures; they do not represent quality or safety certifications, nor do they dictate usability. Usage decisions rest entirely with users and administrators. Different agent hosts apply varying constraints; do not assume hosts provide automatic protection. Third-party skill copyrights belong to their original authors. Use at your own risk.

1How It Works & Mechanism

All functionality is delivered purely via a 71-line single-file instruction text: zero scripts, zero tools, zero external files. The core mechanism is 'encoding anti-template aesthetics into actionable contextual rules', relying on host model execution and disciplined self-critique without any automation.

frontend-design/SKILL.md
git ls-files frontend-design/ = LICENSE.txt + SKILL.md(71 行,无 scripts/references/templates);全文 grep 无 URL/命令/代码围栏
Only two files exist in the directory, with SKILL.md being the sole functional carrier—a classic archetype of pure prompt-orchestrated skills.

Employs 'negative-sample calibration' to prevent cookie-cutter layouts: condenses common AI-generated visual tropes into a 5-item trait checklist with concrete color values and patterns, enabling the model to self-audit whether outputs fall into template clusters—moving past vague appeals for 'creativity' into concrete, avoidable targets.

frontend-design/SKILL.md
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...); ... 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'); ... tinted near-black (#0B0B0B, #111) standing in for black; a monospace face for small data labels; a '→' appended to link and button text.
L38-43: A negative-sample catalog specifying exact hex codes (#F4F1EA/#D97757/#0B0B0B/#111), rgba(0,0,0,.1), and characters ('·', '→') serves as the core calibration mechanism of this prompt set.

Enforces 'subject-matter positioning' as the source of differentiation: when a brief lacks subject context, proactively identifies subject/audience/primary job for client confirmation; uses the industry, tactile materials, and vernacular of the domain as the mandatory anchor for visual choices.

frontend-design/SKILL.md
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. ... The subject's industry, subject matter, materials, and vernacular are where distinctive visual choices come from
L13: Solidifies 'different subjects must look distinct' (e.g., toys vs. financial dashboards) as a mandatory upfront step rather than leaving it to ad-hoc model improvisation.

Two-pass workflow with a uniqueness self-audit gate: first generates a compact token plan (colors/fonts/layout/principles) that must be reviewed against the brief prior to coding; any choice reading like a 'generic default' must be revised with explicitly logged changes before coding begins.

frontend-design/SKILL.md
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. ... 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 ... 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.
L47-53: Externalizes and structures the design decision-making process via an 'intermediate artifact + explicit review gate'—deferring code generation until uniqueness is verified.

Embeds typography and typesetting domain knowledge as hard constraints: type scales referenced from The Elements of Typographic Style, line lengths <80 characters, slightly increased serif line heights, and an explicit prohibition checklist targeting common generative typesetting flaws.

frontend-design/SKILL.md
set a clear type scale following the default guidance of The Elements of Typographic Style ... 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 ... - Using all caps for labels.
L21-28: Directly integrates authoritative literature rules (Elements of Typographic Style) and anti-flaw checklists into instructions to overwrite default model typesetting habits.

Elevates 'interface copy' to a first-class design material: enforces active and precise CTAs ("Save changes," not "Submit"), strict lifecycle consistency in action naming (Publish → toast displays Published), and instructional rather than emotional error/empty states.

frontend-design/SKILL.md
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." ... Treat failure and emptiness as moments for direction, not mood. Explain what went wrong and how to fix it ... Errors don't apologize, and they are never vague about what happened. An empty screen is an invitation to act.
L63-71: Dedicated section 'More on writing in design'—copy is treated with the same intentional restraint as spacing and color, marking a standout dimension of this skill's coverage.

Structural honesty and motion restraint rules: structural cues such as numbering and dividers must convey truthful information (only use 01/02/03 if content is genuinely sequential); non-user-triggered animations are restricted to 'a single choreographed moment,' explicitly penalizing staggered fade-slide-ups and all-card hover states as generic AI tropes.

frontend-design/SKILL.md
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. ... 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.
L30-32: Categorizes decorative informational markers and motion inflation as template tells, defining explicit criteria for assessment (true sequence vs. response to user action).

Quality baselines and a closed self-critique loop: single focal anchor paired with peripheral restraint ("Spend your boldness in one place"), strict baselines for responsiveness/keyboard focus/reduced motion/accessibility, conditional screenshot self-evaluations ("a picture is worth 1000 tokens"), and the Chanel-inspired 'remove one accessory before leaving' rule of thumb.

frontend-design/SKILL.md
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 ... Critique your own work as you build, taking screenshots to review if your environment supports it — a picture is worth 1000 tokens.
L59: Critique and review are baked in as the final pipeline step; visual verification depends on host environment capabilities ("if your environment supports it") and remains optional.

2Core Capabilities

01Anti-template differentiation calibration (identifying and evading AI visual tropes)
02Subject- and audience-driven design positioning and brief completion
03Two-pass plan-review-build workflow (with uniqueness self-audits and change logs)
04Design token system planning (4–6 named colors / font roles / layout concepts + ASCII wireframes / principles)
05Typography guidance (font restraint, type scales, line lengths, generative anti-patterns list)
06Structural honesty and motion restraint assessment (numbering/decorative thresholds, single choreographed moments)
07Interface copywriting standards (precise CTA labeling, workflow consistency, instructional error/empty states)
08CSS implementation caveats (selector specificity conflicts, such as padding/margin overrides between .section and .cta)

4Recommended Governance & Evidence

Suggested Controls for Safe Operation
For Agent Runtime
Can be auto-loaded
For Administrators
Register source and version
Evidence & Triggers (File Paths & Excerpts)
  • SKILL.md: Composed entirely of pure prompt instructions and rule text, without script execution or external impacts
Audit Notes: Pure instruction-based skill: executes no scripts, makes no outbound network calls, reads no credentials, and performs no forced local file writes (grep across the repository shows zero URLs, commands, or code execution blocks; git ls-files lists only SKILL.md and LICENSE.txt). Aligns with Tier 1 🟢 Green 'Compliant Use'. Output quality depends on model adherence, introducing zero security attack surface.

5Second-Pass Verification

  • [ok] 目录文件清单(有无隐藏脚本/数据) — git ls-files frontend-design/ 仅 LICENSE.txt + SKILL.md;glob 无其他文件,无隐藏资源
  • [ok] SKILL.md 中 URL/CLI/API/包引用 — 正则扫 http|curl|fetch|exec|api_|npm|pip|gh |git |env[ 等零命中;全文本唯一 URL 是 LICENSE.txt 中官方许可地址 http://www.apache.org/licenses/(非功能依赖)→ external_deps 空数组成立
  • [ok] 代码围栏 / 注入标记(```、ignore previous、system-reminder 等) — 零命中;SKILL.md 为纯 markdown 叙述
  • [ok] 5 条 AI 特征清单及色值逐字存在 — L39-43 逐字含 #F4F1EA、#D97757、rgba(0,0,0,.1)、#0B0B0B、#111、'A · B · C'、'→',非编造
  • [ok] meta.license / stars / last_push 与源一致 — gh api repos/anthropics/skills:stars 174801、pushed_at 2026-09-03T16:37:14Z、license null(仓库根无 LICENSE,故 meta 以 skill 目录内 Apache-2.0 LICENSE.txt 为准并注明差异)
  • [ok] description 与正文能力是否夸大 — description 措辞为 'Guidance/Helps with',正文确为指南文本,未宣称自动化/保证结果——无吹牛
  • [ok] 『两遍流程/截图自批判』是否真被强制 — L47-53 流程顺序明确(评审→修改说明→才写代码),L59 截图附 'if your environment supports it' 条件;但执行严格性依赖宿主模型自律,源码内无强制检查点——此点已在 how_it_works 标注为执行面依赖
  • [ok] 行号/引用与文件实际内容对应 — 二次 grep 带行号比对全部引用段落,无张冠李戴;截断引用未扩写

6Verdict & Scenarios

  • Actionable evasion checklist grounded in specifics (hex codes/patterns/characters) rather than vague calls for 'uniqueness'
  • Uniqueness review positioned as a mandatory pre-code gate, ensuring design decisions are auditable and explainable
  • Comprehensive breadth: unifies color, typography, layout, motion, copy, accessibility, and CSS implementation caveats, surpassing most prompt-based design guides
  • Zero dependencies and zero tooling: scriptless design eliminates supply chain and execution risks, allowing safe integration in any host
  • Clear boundary awareness: acknowledges template traits with 'All traits are legitimate for some briefs' and yields to the source brief without imposing dogmatic aesthetics
  • Best for: Developers and designers using agent environments (such as Claude Code, Cursor, or Codex) to build new UIs or redesign existing interfaces—especially when briefs are defined or can be expanded, distinctive typography and visuals that break away from AI default tropes are required, and the environment supports iterative screenshot self-checks. Acts as a plug-and-play design reference for frontend tasks within Claude Code and related hosts.
    Not for: Use cases requiring rapid templated output or off-the-shelf component library consistency; teams demanding codified design tokens, automated design pipelines, or visual regression toolchains; strictly governed brand environments that prohibit stylistic experimentation; and users seeking automated generation of complete, deployment-ready code directly from the skill (it provides design criteria, leaving code generation to the host model).
    Install Agent-Ready
    ① Verified Mirror 2026-09-06
    Option A · Direct DownloadDownload frontend-design.tar.gz
    sha256: 67d68803068d5ae9…
    Option B · Copy Guide for Agent
    install.json
    Agents automatically download and verify mirrors from this JSON guide.
    ② Upstream GitHub
    GitHub Repo ↗
    Pinned to commit 41bbe19d1a.