AgentSkillsCN

frontend-design

前端设计协调员,能够深入分析设计需求,并将其精准分配给各领域专家技能。当用户提出构建UI组件、页面、布局,或任何视觉界面相关工作时,此技能将为你提供专业而高效的解决方案。它充分理解用户的非专业背景,同时协调色彩、字体、间距、动画,以及组件设计等各领域的专家,共同打造完美的视觉效果。

SKILL.md
--- frontmatter
name: frontend-design
description: Frontend design orchestrator that analyzes design requests and delegates to specialized expert skills. Use when the user asks to build UI components, pages, layouts, or any visual interface work. Understands user's non-expert background and coordinates color, typography, spacing, animation, and component experts.

Frontend Design Orchestrator

Orchestrates frontend design tasks by understanding user intent and delegating to specialized expert skills.

🎯 AUTO-DETECTION: When to Load This Skill

ALWAYS load this skill when user message contains ANY of these signals:

Direct Design Keywords

  • "change", "modify", "update", "improve", "fix" + UI element (header, footer, card, button, page, etc.)
  • "make it", "looks", "style", "design", "beautiful", "ugly", "better", "worse"
  • "another style", "different style", "try another"
  • "review" + any UI/visual element

UI Element Names

  • header, navbar, nav, navigation, top bar, menu
  • footer, sidebar, bottom bar
  • card, button, input, form, modal, dialog, dropdown
  • page, layout, section, hero, banner
  • carousel, slider, grid, list

Visual/Style Words

  • color, font, spacing, padding, margin, size
  • hover, animation, transition, effect
  • dark, light, theme, mode
  • responsive, mobile, desktop
  • pretty, clean, modern, minimal, elegant

Action + Visual Intent

  • "help me change the..." → load skill
  • "can you make..." → load skill
  • "I don't like the..." → load skill
  • "try something else" (after visual change) → load skill

If in doubt, load this skill. It's better to consult experts than to skip them.


⚠️ CRITICAL: Always Follow Orchestration Workflow

DO NOT skip expert skill delegation. This orchestrator exists to coordinate experts, not to answer design questions directly.

Before responding to ANY design request:

  1. STOP — Do not use oracle or answer directly
  2. ANALYZE — Identify which expert domains are involved (Step 1 below)
  3. DELEGATE — Load the appropriate expert skills using skill tool (Step 3 below)
  4. SYNTHESIZE — Combine expert guidance into unified recommendation (Step 4 below)

Anti-patterns to avoid:

  • ❌ Providing design recommendations without consulting expert skills
  • ❌ Skipping expert skills because "it seems simple"
  • ❌ Using only oracle without also delegating to expert skills

Correct behavior:

  • ✅ Always load at least one expert skill for any design task
  • ✅ Follow the Expert Sequence table for multi-domain requests
  • ✅ Let experts provide domain-specific guidance
  • ✅ Oracle can be used alongside expert skills for additional analysis, but not as a replacement

User Context

User Profile: Domain expert, not a frontend/design specialist. Understands product vision but relies on expert guidance for design decisions.

Tech Stack (from AGENTS.md):

  • Next.js 16+ with React 19
  • Tailwind CSS v4
  • shadcn/ui (base-lyra style)
  • Lucide React icons
  • React Compiler enabled

Expert Skills Available

SkillDomainWhen to Invoke
fd-design-philosophyCore principles, aesthetics, brand identityDefining visual direction, brand feel, design system foundations
fd-color-systemsPalettes, themes, dark modeColor choices, theme switching, color semantics
fd-typographyFonts, scale, hierarchy, readabilityText styling, font pairings, typographic scale
fd-spacing-layoutGrid, spacing, responsive breakpointsLayout structure, whitespace, mobile-first, device adaptation
fd-componentsUI components, variants, compositionBuilding specific components, shadcn/ui customization
fd-animationsMotion, transitions, micro-interactionsAdding movement, hover effects, feedback, polish
fd-patternsPage compositions, navigation, formsFull page designs, common UI patterns, user flows
fd-accessibilityWCAG, inclusive design, contrastScreen readers, keyboard nav, focus states, aria labels
fd-states-feedbackLoading, empty, error, success statesSkeleton loaders, empty states, error handling, progress
fd-tailwind-shadcnTailwind CSS v4, shadcn/ui, tech implementationCSS utilities, component customization, cn() usage, variants

Orchestration Workflow

Step 1: Analyze the Request

When user makes a design request:

  1. Identify the scope — Is this a component, page, system, or refinement?
  2. Detect domains involved — Which expert areas are needed?
  3. Assess dependencies — What must be decided first?
  4. Data strategy — Is this static content or dynamic Convex data? (affects States & Components)

Step 2: Determine Expert Sequence

Map the request to expert skills. Common patterns:

Request TypeExpert Sequence
"Build a new page"Philosophy → Layout → Components → States → Animations
"Create a button component"Components → Tailwind/shadcn → Animations
"Make it look better"Philosophy → Color → Typography → Spacing
"Add dark mode"Color Systems → Tailwind/shadcn
"Design a card grid"Layout → Components → Patterns
"Add micro-interactions"Animations
"Handle loading/error states"States & Feedback → Components
"Make it accessible"Accessibility → Color (contrast) → Components
"Build a form"Patterns → Components → States → Accessibility
"Implement with Tailwind"Tailwind/shadcn → (relevant design expert)
"Dynamic data page"Patterns → States (Convex loading) → Components

Step 3: Invoke Expert Skills

For each identified domain, load the corresponding skill:

code
Use skill: fd-color-systems

Pass relevant context:

  • What the user is trying to achieve
  • Decisions already made by previous experts
  • Constraints from tech stack

Step 4: Synthesize & Present

After consulting experts:

  1. Summarize decisions from each domain
  2. Present unified recommendation to user
  3. Show visual preview if applicable (code + description)
  4. Get user approval before implementation

Request Analysis Patterns

Keywords → Expert Mapping

KeywordsPrimary Expert
color, palette, theme, dark mode, contrastfd-color-systems
font, typography, text, heading, readablefd-typography
spacing, padding, margin, grid, layout, responsive, breakpoint, mobilefd-spacing-layout
button, card, modal, input, form, component, variantfd-components
animation, transition, hover, motion, interactive, micro-interactionfd-animations
page, section, pattern, navigation, composition, flowfd-patterns
style, aesthetic, vibe, feel, brand, identity, visionfd-design-philosophy
accessible, a11y, wcag, screen reader, keyboard, focus, ariafd-accessibility
loading, skeleton, empty, error, success, disabled, progressfd-states-feedback
tailwind, shadcn, cn(), class, utility, css, implement, codefd-tailwind-shadcn

Complexity Assessment

Simple (1 expert): Direct component or single-domain task Medium (2-3 experts): Component with styling decisions Complex (4+ experts): Full page or design system work

Communication Style

When presenting to user:

  • Avoid jargon — Explain design terms simply
  • Show options — Let user choose between approaches
  • Visual examples — Describe what it will look like
  • Incremental — Break large designs into reviewable chunks

Key Principles

  1. User is the decision maker — Present, don't dictate
  2. Experts handle details — Orchestrator coordinates, not implements
  3. Context flows forward — Each expert builds on previous decisions
  4. Quality over speed — Consult appropriate experts, don't shortcut