Communitygithub.com

前端设计方向

为ECC(具体项目/产品)的生产级UI工作设定前端设计方向。在构建或改进网站、仪表盘、应用程序、组件、落地页、可视化工具或任何需要更强产品特定设计判断的Web UI时使用。

前端设计方向 是什么?

该技能旨在为UI开发工作注入明确的设计方向,使界面在功能之外,还能传达出产品应有的目的感、精致感和领域适配性。它源自社区PR #1659 中关于本地化设计指导的需求,并非官方Anthropic `frontend-design` 技能的再捆绑,而是直接为ECC项目量身定制的设计方向指导。 使用时,开发者需要先明确界面的用途、目标受众和期望的基调(如实用主义、简洁或精致),并设定一个令人印象深刻的设计细节。然后,遵循具体的实施指南,例如优先构建实际可用的体验、使用现有项目组件和设计令牌(CSS变量)来保持一致性、谨慎而富有意图地使用动效、并确保响应式布局的稳定性。同时,该技能还明确列出了需要避免的反模式,如默认使用紫色渐变、装饰性斑点或超大卡片等常见生成模式。 最后,提供了一个审查清单,帮助开发者验证界面是否清晰地传达了产品核心、视觉层次是否支持高效扫描、版式是否合适、色彩是否具有对比度、图标是否恰当、布局是否稳定,以及动效是否改善了用户方向感而非掩盖性能问题。 该技能适用于所有需要从“功能实现”提升到“精心设计”的Web UI工作,无论平台如何,只要遵循其提供的清晰设计和实施框架即可。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/everything-claude-code/tree/main/skills/frontend-design-direction

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

前端设计方向 是做什么的?

当工作不仅仅是让 UI 运作,而是要让它感觉有目的性、精致且与产品领域相称时,使用此技能。

来源:从社区废弃 PR #1659 中恢复,贡献者为 linus707。

注意:ECC 有意不重新打包规范的 Anthropic frontend-design 技能。若需要官方上游技能,请从 anthropics/skills 安装。此技能是 ECC 特定设计方向的恢复版本,包含了来自 #1659 的有用本地指导。

何时使用

  • 用户要求构建一个网页、应用、仪表盘、制品、组件或 UI。
  • 用户要求让界面更精致、更具特色、更美观或减少通用感。
  • 实现时需要在视觉层次、排版、色彩、动效、布局和交互方面做出选择。
  • 当前 UI 能工作,但显得平淡、通用、模板化或与受众不匹配。

设计方向

在编写代码之前,选择一个具体的方向:

  1. 目的:这个界面完成什么工作?
  2. 受众:谁重复执行这个工作流,他们需要首先扫描什么?
  3. 基调:实用主义、编辑风格、趣味性、工业风、精致、技术性、最大化、极简、密集、宁静,或其他明确方向。
  4. 令人印象深刻的细节:一个能让结果看起来刻意为之的设计思路。
  5. 约束条件:框架、无障碍性、性能、响应性以及现有的设计系统。

使方向与领域相匹配。SaaS 运营工具通常应该保持密集、安静且易于扫描。作品集、上线页、游戏或编辑性页面可以更具表现力。不要将落地页的构图强加于需要日常重复使用的工具。

实施指导

  • 除非用户明确要求营销文案,否则优先构建实际可用的体验作为首屏。
  • 在引入新的视觉系统之前,使用现有项目组件、令牌、图标库和路由模式。
  • 当界面依赖图片、产品、地点、人物、游戏画面、图表或可检查的媒体时,使用真实或生成的视觉资源。
  • 优先使用与上下文相关的排版和间距,而不是通用的超大英雄文本。
  • 保持调色板多维化:避免 UI 由一种色系主导。
  • 使用 CSS 变量或现有设计令牌,以确保方向在各状态下保持连贯。
  • 明确设计响应式约束:网格、宽高比、最小/最大尺寸、稳定的工具栏以及固定格式的控件不应因标签或悬停状态的出现而移位。
  • 谨慎而有目的地使用动效。优先使用能阐明状态的高信息量过渡,而非装饰性动画。
  • 在移动端和桌面端验证文本适应性。长标签必须能优雅地换行或调整大小,而不是溢出。

反模式

  • 不要默认使用常见的生成模式:紫色渐变、装饰性斑点、超大卡片、模糊的 hero 文案或类似库存图片的氛围媒体。
  • 不要在卡片内部再添加 UI 卡片。
  • 当领域要求克制时,不要在整个界面中使用单一的装饰风格。
  • 不要将主要产品、工具、对象或工作流隐藏在通用的营销部分后面。
  • 不要仅为某个设计点缀添加新的依赖项,除非它能明确地为自身带来价值。
  • 不要在 UI 中描述 UI 的功能,控件本身就能表达。

审查清单

  • 第一个视口立即传达出产品、工作流或对象。
  • 视觉层次支持扫描和重复使用。
  • 排版适合容器,且不与邻近内容重叠。
  • 色彩选择有对比度,且不会坍缩为单一色调的调色板。
  • 在可能的情况下,为熟悉的工具操作使用图标。
  • 响应式布局对于看板、网格、工具栏、控件、磁贴和计数器具有稳定的尺寸。
  • 资源能渲染并承载主题内容,而非充当填充物。
  • 动效改善方向感,且不掩盖卡顿。
  • 除非有明确的理由偏离,结果应与仓库现有的前端约定保持一致。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

相关技能