frontend-design-direction
它能做什么
帮助你确定网站或应用的外观与风格,确保它专业、易用,并且与其用途相匹配。它不只关注功能能否正常运行,还关注用户看到和使用时的观感。
适用场景
- ✓从零开始创建新网站或应用时。
- ✓现有网站或应用看起来千篇一律或显得过时时。
- ✓添加需要与整体设计保持一致的新功能时。
技能链接
https://github.com/affaan-m/ECC/blob/main/skills/frontend-design-direction/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“怎样才能让这个仪表盘看起来更专业,少一些千篇一律的感觉?”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会考虑网站的用途、使用者是谁,以及想要的风格(例如严肃、活泼、技术感)。然后它会给出具体的设计建议,比如配色、字体和布局,帮你达成这个目标。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Frontend Design Direction
Use this skill when the work is not just making UI function, but making it feel purposeful, polished, and appropriate to the product domain.
Source: salvaged from stale community PR #1659 by linus707.
Note: ECC intentionally does not rebundle the canonical Anthropic
frontend-design skill. Install that from anthropics/skills when you want the
official upstream skill. This skill is the ECC-specific design-direction salvage
of the useful local guidance from #1659.
When to Use
- The user asks to build a web page, app, dashboard, artifact, component, or UI.
- The user asks to make an interface more polished, distinctive, beautiful, or less generic.
- The implementation needs visual hierarchy, typography, color, motion, layout, and interaction choices.
- The current UI works but reads as flat, generic, templated, or mismatched to the audience.
Design Direction
Before coding, choose a specific direction:
- Purpose: what job does the interface do?
- Audience: who repeats this workflow, and what do they need to scan first?
- Tone: utilitarian, editorial, playful, industrial, refined, technical, maximal, minimal, dense, calm, or another explicit direction.
- Memorable detail: one design idea that makes the result feel intentional.
- Constraints: framework, accessibility, performance, responsiveness, and existing design system.
Match the direction to the domain. A SaaS operations tool should usually be dense, quiet, and scannable. A portfolio, launch page, game, or editorial piece can be more expressive. Do not force a landing-page composition onto a tool that needs repeated daily use.
Implementation Guidance
Evidence contract and content states
Before implementation, record the product surface, user's job, primary action, hierarchy, target viewports and the reference observation behind each important choice. Make these constraints checkable; a palette alone is not evidence. Use local product references when external research is unnecessary or unavailable.
For each relevant state, record its trigger, visible feedback and safe next action:
| State | Check |
|---|---|
| Loading | Stable structure and progress; cancellation where supported |
| Empty | Explain missing data and offer a useful next action |
| Error | Specific failure and a recovery path |
| Partial | Show available data and clearly mark unavailable portions |
| Success | Confirm completion and show the next action or supported undo |
| Permission | Explain the access boundary and a safe request/return path |
Record a reason when a state does not apply. Unavailable test access is an untested state, not a reason to mark it not applicable.
Build from the contract
- Build the actual usable experience as the first screen unless the user explicitly asks for marketing copy.
- Use existing project components, tokens, icon libraries, and routing patterns before introducing a new visual system.
- Use real or generated visual assets when the interface depends on images, products, places, people, gameplay, charts, or inspectable media.
- Prefer contextual typography and spacing over generic oversized hero text.
- Keep palettes multi-dimensional: avoid a UI dominated by one hue family.
- Use CSS variables or existing design tokens so the direction remains coherent across states.
- Design responsive constraints explicitly: grids, aspect ratios, min/max sizes, stable toolbars, and fixed-format controls should not shift when labels or hover states appear.
- Use motion sparingly but deliberately. Prefer high-signal transitions that clarify state over decorative animation.
- Verify text fit on mobile and desktop. Long labels must wrap or resize cleanly rather than overflowing.
Anti-Patterns
- Do not default to common generated patterns: purple gradients, decorative blobs, oversized cards, vague hero copy, or stock-like atmospheric media.
- Do not add UI cards inside other cards.
- Do not use a single decorative style everywhere when the domain calls for restraint.
- Do not hide the primary product, tool, object, or workflow behind generic marketing sections.
- Do not add a new dependency for a design flourish unless it clearly pays for itself.
- Do not describe the UI's features inside the UI when the controls can speak for themselves.
Review Checklist
- The first viewport immediately communicates the product, workflow, or object.
…
常见问题
这个技能和官方的“frontend-design”有什么区别?
这个技能是 ECC 专属版本,侧重于特定的设计指导。Anthropic 官方的技能则更通用,如有需要,应单独安装。
什么是“内容状态”?
指用户可能遇到的各种情况,比如数据加载中、没有数据(空状态)、出现错误,或操作成功完成。
什么是“反模式”?
指通常应当避免的常见设计做法,比如使用花哨的紫色渐变、卡片套卡片,或者把产品的核心功能藏在千篇一律的营销板块后面。
详情
作者的原始描述
Set an ECC-specific frontend design direction for production UI work. Use when building or improving websites, dashboards, applications, components, landing pages, visual tools, or any web UI that needs stronger product-specific design judgment.
repo: affaan-m/ECC
热度
- GitHub 星标
- 280k
- 排名
- #317
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
accessibility
280k帮你的智能体创建人人都能使用的界面。确保网站和应用对残障人士友好,比如失明或行动不便的用户也能顺畅使用。
agent-architecture-audit
280k让你的智能体检查一切是否正常运行。它能找出并修复 AI 系统中的问题,确保系统按预期工作。
agent-eval
280k帮你的智能体比较不同的 AI 编程工具。它能衡量哪个工具在特定任务上更快、更便宜、更可靠。
agent-harness-construction
280k让你的智能体更好地理解如何完成任务。它会优化智能体使用的工具和指令,提高成功的几率。