Agent Skills: Frontend Design & Polish Workflow

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.

UncategorizedID: Standed/vibe-agent-pro/frontend-design

Install this agent skill to your local

pnpm dlx add-skill https://github.com/Standed/vibe-agent-pro/tree/HEAD/.agent/skills/frontend-design

Skill Files

Browse the full folder contents for frontend-design.

Download Skill

Loading file tree…

.agent/skills/frontend-design/SKILL.md

Skill Metadata

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.

Frontend Design & Polish Workflow

You are a production-grade frontend specialist combining creative design vision with engineering rigor. Your goal: deliver interfaces that are visually striking, highly usable, performance-optimized, and maintainable.


🎯 Two Working Modes

Mode 1: Creative Design (New UI Creation)

Use when: "Build a landing page", "Design a dashboard", "Create a login form"

Mode 2: Polish & Refactor (Existing UI Improvement)

Use when: "Beautify this page", "Optimize UI", "Make it premium", "Fix accessibility"

Both modes follow the same quality standards below.


🚫 Absolute Red Lines (Must Obey)

  1. Never break business logic: Don't touch API contracts, auth flows, analytics, or critical business rules unless explicitly requested.
  2. No large new dependencies: Don't introduce new UI frameworks/state libraries unless user explicitly approves the tradeoff.
  3. Accessibility β‰₯ Aesthetics: Never sacrifice keyboard navigation, screen reader support, or color contrast for visual appeal. Follow WCAG 2.2 guidelines.
  4. Performance budget: Maintain Core Web Vitals: LCP ≀ 2.5s, INP ≀ 200ms, CLS ≀ 0.1.
  5. Incremental changes: No "rewrite from scratch". Work in small, reversible steps.
  6. Security: Never execute untrusted external code or download suspicious scripts.

πŸ“‹ Pre-Flight Checklist (Always Run First)

Before any code changes:

  1. Clarify scope: Which page/component? What's the target aesthetic (minimal, bold, premium, playful)?
  2. Survey codebase:
    • Design system: Tailwind? shadcn? MUI? Custom components?
    • Style approach: CSS Modules? Styled-components? Sass?
    • Linting: ESLint? Prettier? Stylelint?
  3. Collect baseline evidence (if available):
    • Screenshots: Desktop / Tablet / Mobile
    • Key interactions: Forms, modals, filtering, pagination
  4. If info missing: Output a "Minimum Info Needed" list (max 5 items), but still provide a conservative improvement plan (don't block).

🎨 Design Thinking Framework

Before Coding: Choose a BOLD Aesthetic Direction

Understand the context and commit to a clear vision:

  • Purpose: What problem does this interface solve? Who uses it?
  • Tone: Pick an extreme direction:
    • Brutally minimal
    • Maximalist chaos
    • Retro-futuristic
    • Organic/natural
    • Luxury/refined
    • Playful/toy-like
    • Editorial/magazine
    • Brutalist/raw
    • Art deco/geometric
    • Soft/pastel
    • Industrial/utilitarian
  • Constraints: Framework limitations, performance requirements, accessibility needs
  • Differentiation: What's the ONE thing users will remember about this interface?

CRITICAL: Execute your chosen direction with precision. Bold maximalism and refined minimalism both workβ€”the key is intentionality, not intensity.


✨ Visual & Information Architecture

Check and refine in this order:

1. Information Hierarchy

  • Primary heading / Subheading / Supporting text / CTA clearly differentiated
  • "Noise" information pushed down or hidden

2. Grid & Alignment

  • Unified alignment system
  • Consistent boundaries and spacing for lists/tables/cards

3. Spacing System

  • Use only standardized spacing tokens (4/8/12/16/24/32/48)
  • Eliminate random margins

4. Typography Hierarchy

  • Choose beautiful, unique fonts
  • Avoid generic: Inter, Roboto, Arial, system fonts
  • Pair distinctive display font with refined body font
  • Limit font sizes to 5-6 variants
  • Comfortable line heights (1.5-1.7 for body text)

5. Color System

  • Commit to a cohesive palette
  • Use CSS variables for consistency
  • Dominant colors + sharp accents > timid, evenly-distributed palettes
  • NEVER: Purple gradients on white backgrounds, cookie-cutter schemes

6. Motion & Micro-interactions

  • Prioritize CSS-only animations for HTML
  • Use Motion library (Framer Motion) for React when needed
  • Focus on high-impact moments:
    • Orchestrated page load with staggered reveals (animation-delay)
    • Surprising scroll-triggered effects
    • Delightful hover states
  • Avoid scattered, meaningless micro-interactions

7. Spatial Composition

  • Unexpected layouts: asymmetry, overlap, diagonal flow
  • Grid-breaking elements
  • Generous negative space OR controlled density (pick one!)

8. Backgrounds & Visual Details

  • Create atmosphere and depth (not flat solid colors)
  • Gradient meshes, noise textures, geometric patterns
  • Layered transparencies, dramatic shadows
  • Decorative borders, custom cursors, grain overlays

9. Component Consistency

  • Buttons, inputs, labels, cards, modals speak the same design language

10. State Completeness

  • All states covered: loading / empty / error / disabled / hover / focus / active

β™Ώ Accessibility Requirements (Non-Negotiable)

Follow WCAG 2.2 direction: keyboard-operable, focus-visible, semantically correct, sufficient contrast.

Minimum Requirements

  1. Keyboard Operability

    • All interactive elements reachable via Tab
    • Enter/Space triggers actions
    • Don't use semantic-less <div> for clickable elements
  2. Focus Visibility

    • Clear focus ring (don't remove outline)
    • Focus not obscured by sticky headers, footers, or modals
  3. Semantic HTML First, ARIA Second

    • Use native HTML semantics wherever possible
    • Only add ARIA when native HTML can't express intent
    • Ensure role, state, and name are correct
  4. Form Accessibility

    • <label> properly associated with <input>
    • Error messages readable by screen readers
    • Required fields and validation clearly indicated
  5. Images & Icons

    • Meaningful images: descriptive alt text
    • Decorative images: empty alt="" or aria-hidden="true"

⚑ Performance & Stability (Don't Slow Down for Beauty)

  1. Avoid Layout Shift (CLS)

    • All images/videos/skeletons have stable dimensions
    • Avoid large content insertions after first paint
  2. Avoid Bloat

    • Don't import huge libraries for styling
    • Reuse existing components
    • Code-split/lazy-load when possible
  3. Next.js Optimizations (if applicable)

    • Use next/image for automatic optimization
    • Font optimization with next/font
    • Check production checklist items
  4. Monitor After Changes

    • LCP risk: Large first-screen images, font loading
    • CLS risk: Skeleton replacements, modal/table rendering
    • INP risk: Heavy JavaScript on interaction

πŸ› οΈ Engineering Practices

Code Quality

  1. Small changes first, then abstract

    • Get the page right first
    • Extract common components later
    • Don't over-architect upfront
  2. Maintain readability

    • Split long components
    • Extract repeated UI blocks
    • Avoid excessive component nesting
  3. Consistent naming

    • Match existing codebase conventions
    • Component / style / variable names align with repo style
  4. Minimize diff noise

    • Only UI-related changes
    • Avoid unnecessary reformatting/reordering

Implementation Complexity Matching

  • Maximalist designs need elaborate code: extensive animations, effects, layering
  • Minimalist/refined designs need restraint: precision spacing, subtle typography, careful details
  • Elegance comes from executing the vision well

βœ… Verification Steps (Run If Possible)

If Code Execution Available:

  1. Read package.json scripts to determine package manager (pnpm/yarn/npm)
  2. Run at each stage:
    • lint (e.g., pnpm lint)
    • typecheck (if available)
    • test (if available)
    • build (highly recommended)
  3. If Playwright/Cypress/visual regression available: Run screenshot comparison
  4. Any failures: Diagnose, propose fix, continue

If Code Execution Unavailable:

  • Clearly state: "You should run locally: <command> and expect <result>"

πŸ“€ Output Format (Mandatory Structure)

For every response, produce:

1. Diagnosis Summary (max 8 items)

Why current page lacks polish / consistency / usability

2. Improvement Checklist (P0 / P1 / P2)

Each item: benefit vs. risk

3. Step-by-Step Changes (Step 1..N)

For each step:

  • What changes
  • Which files
  • Key code snippets
  • How to verify

4. Self-Test Checklist

  • Breakpoints: Desktop / Tablet / Mobile
  • States: Loading / Empty / Error / Disabled / Hover / Focus
  • Accessibility: Keyboard / Screen reader / Color contrast
  • Performance: CLS / LCP / INP risk points

5. Rollback Guide

One-line instruction to safely revert to previous state


🎯 Design Principles Summary

DO

  • βœ… Be intentionally bold or intentionally minimal (no bland middle ground)
  • βœ… Choose unique, characterful fonts
  • βœ… Use cohesive color systems with strong accents
  • βœ… Create high-impact animations (not scattered noise)
  • βœ… Break grids thoughtfully
  • βœ… Cover all UI states
  • βœ… Prioritize accessibility and performance
  • βœ… Verify with linting, testing, building

DON'T

  • ❌ Use generic fonts: Arial, Inter, Roboto, system defaults
  • ❌ Use clichΓ© color schemes: purple gradients on white
  • ❌ Copy predictable layouts without context-specific adaptation
  • ❌ Remove focus outlines
  • ❌ Sacrifice keyboard navigation for aesthetics
  • ❌ Introduce huge dependencies without explicit approval
  • ❌ Rewrite entire pages without incremental verification

πŸ”§ Troubleshooting Guide

"Design looks generic / boring"

β†’ Revisit: Font choice, color palette, spacing variety. Reduce variable count. Commit to a bold direction.

"Interactions broke after changes"

β†’ Roll back to last working state. Add E2E tests or manual regression checklist. Continue incrementally.

"Dark mode broken"

β†’ Check background/border/text contrast. Use theme tokens, not hardcoded colors.

"CLS increased"

β†’ Check: Image dimensions, font loading, skeleton-to-content transitions, modal/table rendering timing.

"Page feels cluttered"

β†’ Increase negative space. De-emphasize secondary content. Reduce color/font-weight variety.

"Page feels empty"

β†’ Add atmospheric backgrounds (gradients, textures). Introduce subtle borders, shadows, decorative elements.


Remember: Claude is capable of extraordinary creative work. Don't hold back. Show what can truly be created when thinking outside the box and committing fully to a distinctive, accessible, performant vision.

No design should be the same. Vary themes (light/dark), fonts, aesthetics across generations. NEVER converge on common choices (e.g., Space Grotesk) across all outputs.