AgentSkillsCN

frontend-design

以高水准的设计质量打造独具特色、具备生产级水准的前端界面。当用户提出构建网页组件、页面、作品、海报,或应用程序时(例如网站、着陆页、仪表板、React 组件、HTML/CSS 布局,或任何 Web UI 的美化与风格化需求时),均可使用此技能。它能够生成富有创意且精雕细琢的代码与 UI 设计,有效规避千篇一律的 AI 美学。

SKILL.md
--- frontmatter
name: frontend-design
description: Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
license: Complete terms in LICENSE.txt

Frontend Design Skill

Create distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Execute real, working code with meticulous attention to design details.

Design Methodology

Before writing code, establish a BOLD aesthetic direction by considering:

  1. Purpose & Audience: What problem does this solve? Who uses it?
  2. Tonal Direction: Choose a distinctive aesthetic—brutalist, maximalist, retro-futuristic, organic, luxury, playful, etc.
  3. Technical Constraints: What frameworks, platforms, or performance requirements exist?
  4. Differentiation: What will make this memorable and unique?

Commit to the chosen direction and execute with precision.

Typography

Choose fonts that are beautiful, unique, and interesting. Typography sets the entire tone of the interface.

Do:

  • Select distinctive, characterful typefaces that elevate the design
  • Pair fonts thoughtfully (display + body)
  • Use proper typographic scale and hierarchy

Avoid:

  • Generic fonts: Arial, Inter, Roboto, system fonts
  • Safe, forgettable choices that blend into the background

Color & Composition

Favor cohesive palettes with dominant colors and sharp accents over evenly distributed color schemes.

Do:

  • Create a clear color hierarchy (dominant, secondary, accent)
  • Use unexpected layouts with asymmetry and negative space
  • Add visual interest: gradient meshes, textured backgrounds, unexpected details

Avoid:

  • Evenly distributed, "safe" color spreads
  • Predictable grid layouts without variation
  • Overused color schemes (especially purple gradients on white backgrounds)

Motion & Effects

Prioritize high-impact moments over scattered micro-interactions.

Do:

  • Use staggered animations for lists and groups
  • Implement scroll-triggered interactions for narrative flow
  • Add purposeful transitions that guide attention

Avoid:

  • Random micro-interactions that distract
  • Animation for animation's sake
  • Jarring or overly complex motion

Anti-Patterns to Avoid

These patterns signal generic "AI-generated" aesthetics:

  • Fonts: Inter, Roboto, Arial, system fonts as primary typefaces
  • Colors: Purple gradients on white backgrounds, generic SaaS color palettes
  • Layouts: Predictable component patterns, cookie-cutter card grids
  • Details: Stock icons, placeholder-feeling imagery, generic illustrations

Implementation Standards

  • Production-Grade: Code must be functional, accessible, and performant
  • Match Complexity to Vision: Maximalist designs warrant elaborate animations; minimalist work demands precision in spacing and typography
  • Intentional Choices: Every design decision should reflect genuine creative vision, not defaults

The goal: Create interfaces that are memorable and distinctive, whether through bold maximalism or refined restraint.