星空智能体站点SKILL / MCP 学习资料库
返回资料库
AGENT SKILLanthropics需要业务基础

界面视觉设计工作流

Anthropic 的真实 frontend-design Skill;从具体产品内容出发,先做色彩字体布局计划与自审,再实现可用界面。

它能帮你完成什么

Anthropic 的真实 frontend-design Skill;从具体产品内容出发,先做色彩字体布局计划与自审,再实现可用界面。

网页与应用界面设计规范响应式与键盘体验
  • 网页与应用界面
  • 设计规范
  • 响应式与键盘体验

使用步骤

  1. 01

    阅读固定版本原文、权限与验证范围。

  2. 02

    下载完整包,保留配套参考文件和原始许可。

  3. 03

    在自己授权的环境,先用脱敏资料核对案例再使用。

验证与安全记录

核验日期 2026-10-20。以下记录对应此处固定的版本与案例。

真实模块

已通过

真实上游 skills/frontend-design/SKILL.md,非集合说明或本站演示。

固定来源与完整性

已通过

固定 commit dbd4588f9e1033efb41dad4bef2f7947c8993d44,2 个原文件逐项记录 SHA-256;复制正文与下载同源。

许可与下载范围

已通过

Apache-2.0;原文、配套引用文件及原始许可完整随包分发。

权限与指令审阅

已通过

完整模块为 SKILL.md 与目录级 Apache-2.0 许可,无脚本、安装器或联网地址;未发现密钥索取、外传数据、命令下载执行或覆盖上级指令要求;上游会提示参考已有上下文并按需截图,已明确为宿主权限范围,未授予额外访问

实际案例核验

已通过

实际 HTML 可在 Chrome 打开;7 项浏览器检查通过,390/1440 无横向溢出,Enter 展开课程准备条件,岗位链接可导航,焦点可见,零 HTTP 请求。 范围:Agent 指令工作流单案例;另有独立内容复核。

来源、版本与许可

维护者
anthropics
固定修订
dbd4588f9e1033efb41dad4bef2f7947c8993d44
资源许可
Apache-2.0

权限与依赖

运行权限与数据流向

  • 读取明确提供的产品需求和可用设计参考;可利用宿主已有相关上下文
  • 生成或修改授权目录中的界面代码与设计文件
  • 截图、浏览器和网络能力由宿主单独授权;技能本身不授予工具权限

需要准备的依赖

  • 支持 Agent Skills 的 AI 客户端;输出质量依赖所用模型
  • 实现或截图所需的框架、浏览器由具体项目提供;技能目录没有自带执行代码

实际案例验证

功能案例通过
验证时间
2026-10-20T13:39:49.268535+00:00
验证环境
Agent 指令工作流 · 合成输入 · 单案例;未执行上游代码;Chrome 156.0.8078.36 本地 HTML 交互
执行任务
用同一固定 Skill 完成合成酒店培训页的两遍设计、实际 HTML 和浏览器交互核验
案例结果
实际 HTML 可在 Chrome 打开;7 项浏览器检查通过,390/1440 无横向溢出,Enter 展开课程准备条件,岗位链接可导航,焦点可见,零 HTTP 请求。
查看运行证据

验证范围与使用限制

  • Agent 指令工作流单案例:合成酒店培训页,不代表通用设计质量认证
  • 功能实测覆盖 390/1440 像素、键盘展开、导航、焦点与减少运动;未作用户研究
  • 实例 HTML 无脚本、外部字体、图片或网络请求;不推断其他宿主环境同样安全
  • 使用前仍需限制 Agent 对文件、浏览器与网络的权限

Agent 指令工作流单案例:合成酒店培训页,不代表通用设计质量认证;功能实测覆盖 390/1440 像素、键盘展开、导航、焦点与减少运动;未作用户研究;实例 HTML 无脚本、外部字体、图片或网络请求;不推断其他宿主环境同样安全;使用前仍需限制 Agent 对文件、浏览器与网络的权限

完整 Skill 原文

复制包含 SKILL.md 主文件全文。引用了配套文件的技能,请下载完整包并保留目录结构、原作者署名和许可。

查看完整原文9,363 字符
---
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.
下载完整包