Agent skill

Frontend Design

by jjyaoao in jjyaoao/HelloAgents

Transform UI style requirements into production-ready frontend code with systematic design tokens, accessibility compliance, and creative execution.

MITAuto-check passedFrontend & Design

Install Frontend Design

skills CLI
$ npx skills add jjyaoao/HelloAgents --skill frontend-design -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jjyaoao/HelloAgents frontend-design --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jjyaoao/HelloAgents.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/frontend-design .claude/skills/frontend-design && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
frontend-design
GitHub stars
3.2k
Used in
1 other repo
Token cost
~7k tokens
SKILL.md length
1,317 words
Files
14
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

Transform UI style requirements into production-ready frontend code with systematic design tokens, accessibility compliance, and creative execution.

  • Works in 12 steps: Dual-Mode Thinking: System + Creativity → Tokens-First Methodology → Tech Stack Flexibility → …
  • Building websites
  • SKILL.md covers When to Use This Skill…, Skill Architecture, Core Principles (Non-Negotiable) and Implementation Workflow, plus 3 more sections
  • Runs TypeScript and JavaScript scripts from its folder; calls npm and npx

What it does

Frontend Design is an agent skill from jjyaoao/HelloAgents. Transform UI style requirements into production-ready frontend code with systematic design tokens, accessibility compliance, and creative execution. Use when building websites, web applications, React/Vue components, dashboards, landing pages, or any web UI requiring both design consistency and aesthetic quality.

Its SKILL.md is about 7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 17 other files (for example `OPTIMIZATION_SUMMARY.md`, `README.md` and `examples/typescript/design-tokens.ts`).

It sits in Frontend & Design, covering Design tokens, Landing pages and Frontend development. It works with React, Vue.js and Tailwind CSS. The repository describes itself as: A agent framework based on the tutorial hello-agents. The licence is MIT.

When your agent uses it

  • Building websites
  • Web applications
  • React/Vue components
  • Any web UI requiring both design consistency and aesthetic quality

Example prompts

  • “/frontend-design”

Requirements

  • Node.js

Workflow steps

12 steps, taken from the step headings in SKILL.md.

  1. Dual-Mode Thinking: System + Creativity
  2. Tokens-First Methodology
  3. Tech Stack Flexibility
  4. Tailwind CSS Best Practices
  5. Design Analysis & Token Definition
  6. Component Development
  7. Page Assembly
  8. Quality Assurance
  9. Minimal Premium SaaS (Most Universal)
  10. Bold Editorial
  11. Soft & Organic
  12. Dark Neon (Restrained)

What it can do on your machine

Read from SKILL.md and the folder at commit c597a7c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (TypeScript and JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • npm
    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • tailwindcss.com
    • ui.shadcn.com
    • w3.org
    • webaim.org
    • typescale.com
    • modularscale.com
    • developer.mozilla.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Frontend Design loads about 7k tokens when it runs. Until then it costs about 83 tokens; SKILL.md has 1,317 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~83
When it runs · the whole SKILL.md, loaded when a task matches
~7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jjyaoao/HelloAgents at commit c597a7c, republished under its MIT licence (© jjyaoao). 1,317 words, ~7,010 tokens.

Download SKILL.mdSave it as .claude/skills/frontend-design/SKILL.md (or your agent's skills folder). This skill also uses 13 other files; get the full folder from GitHub.
name
frontend-design
description
Transform UI style requirements into production-ready frontend code with systematic design tokens, accessibility compliance, and creative execution. Use when building websites, web applications, React/Vue components, dashboards, landing pages, or any web UI requiring both design consistency and aesthetic quality.
version
2.0.0
license
MIT

Frontend Design Skill — Systematic & Creative Web Development

Skill Location: {project_path}/skills/frontend-design/

This skill transforms vague UI style requirements into executable, production-grade frontend code through a systematic design token approach while maintaining creative excellence. It ensures visual consistency, accessibility compliance, and maintainability across all deliverables.


When to Use This Skill (Trigger Patterns)

MUST apply this skill when:

  • User requests any website, web application, or web component development
  • User mentions design styles: "modern", "premium", "minimalist", "dark mode", "SaaS-style"
  • Building dashboards, landing pages, admin panels, or any web UI
  • User asks to "make it look better" or "improve the design"
  • Creating component libraries or design systems
  • User specifies frameworks: React, Vue, Svelte, Next.js, Nuxt, etc.
  • Converting designs/mockups to code
  • User mentions: Tailwind CSS, shadcn/ui, Material-UI, Chakra UI, etc.

Trigger phrases:

  • "build a website/app/component"
  • "create a dashboard/landing page"
  • "design a UI for..."
  • "make it modern/clean/premium"
  • "style this with..."
  • "convert this design to code"

DO NOT use for:

  • Backend API development
  • Pure logic/algorithm implementation
  • Non-visual code tasks

Skill Architecture

This skill provides:

  1. SKILL.md (this file): Core methodology and guidelines
  2. examples/css/: Production-ready CSS examples
    • tokens.css - Design token system
    • components.css - Reusable component styles
    • utilities.css - Utility classes
  3. examples/typescript/: TypeScript implementation examples
    • design-tokens.ts - Type-safe token definitions
    • theme-provider.tsx - Theme management
    • sample-components.tsx - Component examples
  4. templates/: Quick-start templates
    • tailwind-config.js - Tailwind configuration
    • globals.css - Global styles template

Core Principles (Non-Negotiable)

1. Dual-Mode Thinking: System + Creativity

Systematic Foundation:

  • Design tokens first, UI components second
  • No arbitrary hardcoded values (colors, spacing, shadows, radius)
  • Consistent scales for typography, spacing, radius, elevation
  • Complete state coverage (default/hover/active/focus/disabled + loading/empty/error)
  • Accessibility as a constraint, not an afterthought

Creative Execution:

  • AVOID generic "AI slop" aesthetics (Inter/Roboto fonts, purple gradients, cookie-cutter layouts)
  • Choose BOLD aesthetic direction: brutalist, retro-futuristic, luxury, playful, editorial, etc.
  • Make unexpected choices in typography, color, layout, and motion
  • Each design should feel unique and intentionally crafted for its context
2. Tokens-First Methodology
Design Tokens → Component Styles → Page Layouts → Interactive States

Never skip token definition. All visual properties must derive from the token system.

3. Tech Stack Flexibility

Default stack (if unspecified):

  • Framework: React + TypeScript
  • Styling: Tailwind CSS
  • Components: shadcn/ui
  • Theme: CSS custom properties (light/dark modes)

Supported alternatives:

  • Frameworks: Vue, Svelte, Angular, vanilla HTML/CSS
  • Styling: CSS Modules, SCSS, Styled Components, Emotion
  • Libraries: MUI, Ant Design, Chakra UI, Headless UI
4. Tailwind CSS Best Practices

⚠️ CRITICAL: Never use Tailwind via CDN

MUST use build-time integration:

bash
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p

Why build-time is mandatory:

  • ✅ Enables tree-shaking (2-15KB vs 400KB+ bundle)
  • ✅ Full design token customization
  • ✅ IDE autocomplete and type safety
  • ✅ Integrates with bundlers (Vite, webpack, Next.js)

CDN only acceptable for:

  • Quick prototypes/demos
  • Internal testing

Implementation Workflow

Phase 1: Design Analysis & Token Definition

Step 1: Understand Context

- Purpose: What problem does this solve? Who uses it?
- Aesthetic Direction: Choose ONE bold direction
- Technical Constraints: Framework, performance, accessibility needs
- Differentiation: What makes this memorable?

Step 2: Generate Design Tokens

Create comprehensive token system (see examples/css/tokens.css and examples/typescript/design-tokens.ts):

  1. Semantic Color Slots (light + dark modes):

    --background, --surface, --surface-subtle
    --text, --text-secondary, --text-muted
    --border, --border-subtle
    --primary, --primary-hover, --primary-active, --primary-foreground
    --secondary, --secondary-hover, --secondary-foreground
    --accent, --success, --warning, --danger
  2. Typography Scale:

    Display: 3.5rem/4rem (56px/64px), weight 700-800
    H1: 2.5rem/3rem (40px/48px), weight 700
    H2: 2rem/2.5rem (32px/40px), weight 600
    H3: 1.5rem/2rem (24px/32px), weight 600
    Body: 1rem/1.5rem (16px/24px), weight 400
    Small: 0.875rem/1.25rem (14px/20px), weight 400
    Caption: 0.75rem/1rem (12px/16px), weight 400
  3. Spacing Scale (8px system):

    0.5 → 4px, 1 → 8px, 2 → 16px, 3 → 24px, 4 → 32px
    5 → 40px, 6 → 48px, 8 → 64px, 12 → 96px, 16 → 128px
  4. Radius Scale:

    xs: 2px (badges, tags)
    sm: 4px (buttons, inputs)
    md: 6px (cards, modals)
    lg: 8px (large cards, panels)
    xl: 12px (hero sections)
    2xl: 16px (special elements)
    full: 9999px (pills, avatars)
  5. Shadow Scale:

    sm: Subtle lift (buttons, inputs)
    md: Card elevation
    lg: Modals, dropdowns
    xl: Large modals, drawers
  6. Motion Tokens:

    Duration: 150ms (micro), 220ms (default), 300ms (complex)
    Easing: ease-out (enter), ease-in (exit), ease-in-out (transition)
Phase 2: Component Development

Step 3: Build Reusable Components

Follow this structure (see examples/typescript/sample-components.tsx):

typescript
interface ComponentProps {
  variant?: 'primary' | 'secondary' | 'outline' | 'ghost';
  size?: 'sm' | 'md' | 'lg';
  state?: 'default' | 'hover' | 'active' | 'disabled' | 'loading';
}

Required component states:

  • Default, Hover, Active, Focus, Disabled
  • Loading (skeleton/spinner)
  • Empty state (clear messaging)
  • Error state (recovery instructions)

Required component features:

  • Accessible (ARIA labels, keyboard navigation)
  • Responsive (mobile-first)
  • Theme-aware (light/dark mode)
  • Token-based styling (no hardcoded values)
Phase 3: Page Assembly

Step 4: Compose Pages from Components

- Use established tokens and components only
- Mobile-first responsive design
- Loading states for async content
- Empty states with clear CTAs
- Error states with recovery options
Phase 4: Quality Assurance

Step 5: Self-Review Checklist

  • All colors from semantic tokens (no random hex/rgb)
  • All spacing from spacing scale
  • All radius from radius scale
  • Shadows justified by hierarchy
  • Clear type hierarchy with comfortable line-height (1.5+)
  • All interactive states implemented and tested
  • Accessibility: WCAG AA contrast, keyboard navigation, ARIA, focus indicators
  • Responsive: works on mobile (375px), tablet (768px), desktop (1024px+)
  • Loading/empty/error states included
  • Code is maintainable: DRY, clear naming, documented

Design Direction Templates

1. Minimal Premium SaaS (Most Universal)
Visual Style: Minimal Premium SaaS
- Generous whitespace (1.5-2x standard padding)
- Near-white background with subtle surface contrast
- Light borders (1px, low-opacity)
- Very subtle elevation (avoid heavy shadows)
- Unified control height: 44-48px
- Medium-large radius: 6-8px
- Gentle hover states (background shift only)
- Clear but not harsh focus rings
- Low-contrast dividers
- Priority: Readability and consistency

Best for: Enterprise apps, B2B SaaS, productivity tools

2. Bold Editorial
Visual Style: Bold Editorial
- Strong typographic hierarchy (large display fonts)
- High contrast (black/white or dark/light extremes)
- Generous use of negative space
- Asymmetric layouts with intentional imbalance
- Grid-breaking elements
- Minimal color palette (1-2 accent colors max)
- Sharp, geometric shapes
- Dramatic scale differences
- Priority: Visual impact and memorability

Best for: Marketing sites, portfolios, content-heavy sites

3. Soft & Organic
Visual Style: Soft & Organic
- Rounded corners everywhere (12-24px radius)
- Soft shadows and subtle gradients
- Pastel or muted color palette
- Gentle animations (ease-in-out, 300-400ms)
- Curved elements and flowing layouts
- Generous padding (1.5-2x standard)
- Soft, blurred backgrounds
- Priority: Approachability and comfort

Best for: Consumer apps, wellness, lifestyle brands

4. Dark Neon (Restrained)
Visual Style: Dark Neon
- Dark background (#0a0a0a to #1a1a1a, NOT pure black)
- High contrast text (#ffffff or #fafafa)
- Accent colors ONLY for CTAs and key states
- Subtle glow on hover (box-shadow with accent color)
- Minimal borders (use subtle outlines)
- Optional: Subtle noise texture
- Restrained use of neon (less is more)
- Priority: Focus and sophisticated edge

Best for: Developer tools, gaming, tech products

5. Playful & Colorful
Visual Style: Playful & Colorful
- Vibrant color palette (3-5 colors)
- Rounded corners (8-16px)
- Micro-animations on hover/interaction
- Generous padding and breathing room
- Friendly, geometric illustrations
- Smooth transitions (200-250ms)
- High energy but balanced
- Priority: Delight and engagement

Best for: Consumer apps, children's products, creative tools


Standard Prompting Workflow

Master Prompt Template
You are a Design Systems Engineer + Senior Frontend UI Developer with expertise in creative design execution.

[TECH STACK]
- Framework: {{FRAMEWORK = React + TypeScript}}
- Styling: {{STYLING = Tailwind CSS}}
- Components: {{UI_LIB = shadcn/ui}}
- Theme: CSS variables (light/dark modes)

[DESIGN SYSTEM RULES - MANDATORY]
1. Layout: 8px spacing system; mobile-first responsive
2. Typography: Clear hierarchy (Display/H1/H2/H3/Body/Small/Caption); line-height 1.5+
3. Colors: Semantic tokens ONLY (no hardcoded values)
4. Shape: Tiered radius system; tap targets ≥ 44px
5. Elevation: Minimal shadows; borders for hierarchy
6. Motion: Subtle transitions (150-220ms); restrained animations
7. Accessibility: WCAG AA; keyboard navigation; ARIA; focus indicators

[AESTHETIC DIRECTION]
Style: {{STYLE = Minimal Premium SaaS}}
Key Differentiator: {{UNIQUE_FEATURE}}
Target Audience: {{AUDIENCE}}

[INTERACTION STATES - REQUIRED]
✓ Default, Hover, Active, Focus, Disabled
✓ Loading (skeleton), Empty (with messaging), Error (with recovery)

[OUTPUT REQUIREMENTS]
1. Design Tokens (CSS variables + TypeScript types)
2. Component implementations (copy-paste ready)
3. Page layouts with all states
4. NO hardcoded values; reference tokens only
5. Minimal but clear code comments
Token Generation Prompt
Generate a complete Design Token system including:

1. Semantic color slots (CSS custom properties):
   - Light mode + Dark mode variants
   - Background, surface, text, border, primary, secondary, accent, semantic colors
   - Interactive states for each (hover, active)

2. Typography scale:
   - Display, H1-H6, Body, Small, Caption, Monospace
   - Include: font-size, line-height, font-weight, letter-spacing

3. Spacing scale (8px base):
   - 0.5, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24 (in rem)

4. Radius scale:
   - xs (2px), sm (4px), md (6px), lg (8px), xl (12px), 2xl (16px), full

5. Shadow scale:
   - sm, md, lg, xl (with color and blur values)
   - Usage guidelines for each tier

6. Motion tokens:
   - Duration: fast (150ms), base (220ms), slow (300ms)
   - Easing: ease-out, ease-in, ease-in-out

7. Component density:
   - Button heights: sm (36px), md (44px), lg (48px)
   - Input heights: sm (36px), md (40px)
   - Padding scales

Output format:
- CSS custom properties (globals.css)
- Tailwind config integration
- TypeScript type definitions
- Usage examples for each token category

DO NOT write component code yet.
Component Implementation Prompt
Using the established Design Tokens, implement: <{{COMPONENT_NAME}} />

Requirements:
- Props: variant, size, state, className (for composition)
- States: default, hover, focus, active, disabled, loading, error
- Accessibility: keyboard navigation, ARIA labels, focus management
- Responsive: mobile-first, touch-friendly (44px+ tap targets)
- Styling: Use tokens ONLY (no hardcoded values)
- TypeScript: Full type safety with exported interfaces

Include:
1. Component implementation
2. Usage examples (3-5 variants)
3. Loading state example
4. Error state example
5. Accessibility notes

Output: Production-ready, copy-paste code with JSDoc comments.
Page Development Prompt
Build page: {{PAGE_NAME}}

Using:
- Established Design Tokens
- Implemented Components
- {{STYLE}} aesthetic direction

Requirements:
- Responsive layout (mobile/tablet/desktop)
- All interaction states (hover/focus/active/disabled)
- Loading skeleton for async content
- Empty state with clear CTA
- Error state with recovery options
- Accessible (keyboard nav, ARIA, WCAG AA)
- No hardcoded styles (components + utility classes only)

Include:
1. Page component with mock data
2. Loading state variant
3. Empty state variant
4. Error state variant
5. Responsive behavior notes

Output: Complete, runnable page component.
Review & Optimization Prompt
You are a Frontend Code Reviewer specializing in design systems and accessibility.

Review the implementation and check:

1. Token Compliance:
   - Any hardcoded colors, sizes, shadows, radius?
   - All values from established scales?

2. Typography:
   - Clear hierarchy?
   - Comfortable line-height (1.5+)?
   - Appropriate font sizes for each level?

3. Spacing & Layout:
   - Consistent use of spacing scale?
   - Adequate whitespace?
   - No awkward gaps or cramped sections?

4. Interactive States:
   - Hover/focus/active clearly distinct?
   - Disabled state obviously different?
   - Loading/empty/error states implemented?

5. Accessibility:
   - WCAG AA contrast met?
   - Keyboard reachable?
   - ARIA labels complete?
   - Focus indicators visible?
   - Semantic HTML?

6. Responsive Design:
   - Mobile layout functional (375px)?
   - Tablet optimized (768px)?
   - Desktop enhanced (1024px+)?
   - Touch targets ≥ 44px?

7. Maintainability:
   - DRY principles followed?
   - Clear component boundaries?
   - Consistent naming?
   - Adequate comments?

8. Creative Execution:
   - Matches intended aesthetic?
   - Avoids generic patterns?
   - Unique and memorable?

Output:
- Findings (sorted by severity: Critical, High, Medium, Low)
- Specific fixes (code patches)
- Improvement suggestions

Common Pitfalls & Solutions

❌ Problem: Vague aesthetic descriptions
✅ Solution: Force actionable specifications
DON'T: "Make it modern and clean"
DO: 
- Whitespace: 1.5x standard padding (24px instead of 16px)
- Typography: Display 56px, H1 40px, Body 16px, line-height 1.6
- Colors: Neutral gray scale (50-900) + single accent color
- Shadows: Maximum 2 shadow tokens (card + modal only)
- Radius: Consistent 6px (buttons/inputs) and 8px (cards)
- Borders: 1px with --border-subtle (#e5e7eb in light mode)
- Transitions: 150ms ease-out only
❌ Problem: Each component invents its own styles
✅ Solution: Enforce token-only rule
RULE: Every visual property must map to a token.

Violations:
- ❌ bg-gray-100 (hardcoded Tailwind color)
- ❌ p-[17px] (arbitrary padding not in scale)
- ❌ rounded-[5px] (radius not in scale)
- ❌ shadow-[0_2px_8px_rgba(0,0,0,0.1)] (arbitrary shadow)

Correct:
- ✅ bg-surface (semantic token)
- ✅ p-4 (maps to spacing scale: 16px)
- ✅ rounded-md (maps to radius scale: 6px)
- ✅ shadow-sm (maps to shadow token)
❌ Problem: Missing interactive states
✅ Solution: State coverage checklist
For EVERY interactive element, implement:

Visual States:
- [ ] Default (base appearance)
- [ ] Hover (background shift, shadow, scale)
- [ ] Active (pressed state, slightly darker)
- [ ] Focus (visible ring, keyboard accessible)
- [ ] Disabled (reduced opacity, cursor not-allowed)

Data States:
- [ ] Loading (skeleton or spinner with same dimensions)
- [ ] Empty (clear message + CTA)
- [ ] Error (error message + retry option)

Test each state in isolation and in combination.
❌ Problem: Generic AI aesthetics
✅ Solution: Force creative differentiation
BANNED PATTERNS (overused in AI-generated UIs):
- ❌ Inter/Roboto/System fonts as primary choice
- ❌ Purple gradients on white backgrounds
- ❌ Card-grid-card-grid layouts only
- ❌ Generic blue (#3b82f6) as primary
- ❌ Default Tailwind color palette with no customization

REQUIRED CREATIVE CHOICES:
- ✅ Select distinctive fonts (Google Fonts, Adobe Fonts, custom)
- ✅ Build custom color palette (not Tailwind defaults)
- ✅ Design unique layouts (asymmetry, overlap, grid-breaking)
- ✅ Add personality: illustrations, icons, textures, patterns
- ✅ Create signature elements (unique buttons, cards, headers)

Ask yourself: "Would someone recognize this as uniquely designed for this purpose?"
❌ Problem: Accessibility as afterthought
✅ Solution: Accessibility as constraint
Build accessibility IN, not ON:

Color Contrast:
- Run contrast checker on all text/background pairs
- Minimum WCAG AA: 4.5:1 (normal text), 3:1 (large text)
- Use tools: WebAIM Contrast Checker, Chrome DevTools

Keyboard Navigation:
- Tab order follows visual flow
- All interactive elements keyboard reachable
- Focus indicator always visible (outline or ring)
- Escape closes modals/dropdowns

ARIA & Semantics:
- Use semantic HTML first (<button>, <nav>, <main>)
- Add ARIA only when semantic HTML insufficient
- aria-label for icon-only buttons
- aria-describedby for form errors
- aria-expanded for disclosure widgets

Test with:
- Keyboard only (no mouse)
- Screen reader (NVDA, JAWS, VoiceOver)
- Reduced motion preference (prefers-reduced-motion)

Quick Start: Complete Example

You are a Design Systems Engineer + Senior Frontend UI Developer.

[STACK]
React + TypeScript + Tailwind CSS + shadcn/ui

[TASK]
Build a Team Dashboard for a project management app.

[AESTHETIC]
Style: Minimal Premium SaaS
Unique Element: Subtle animated background gradient
Audience: Product managers and software teams

[REQUIREMENTS]
1. Components needed:
   - Header with search and user menu
   - Team members grid (name, role, avatar, status)
   - Invite modal (name, email, role selector)
   - Empty state (no team members yet)
   - Loading skeleton

2. Features:
   - Search/filter team members
   - Click to view member details
   - Invite button opens modal
   - Sort by name/role/status

3. States:
   - Loading (skeleton grid)
   - Empty (with invite CTA)
   - Populated (member cards)
   - Error (failed to load)

[OUTPUT]
1. Design Tokens (globals.css + tailwind.config.ts)
2. Component implementations:
   - TeamMemberCard
   - InviteModal
   - SearchBar
   - UserMenu
3. TeamDashboard page component
4. All states (loading/empty/error)
5. Full TypeScript types
6. Accessibility notes

Rules:
- Mobile-first responsive
- No hardcoded values (use tokens)
- WCAG AA compliance
- Include hover/focus/active states
- Add subtle micro-interactions

Examples & Templates

This skill includes production-ready examples in examples/:

Show full SKILL.md (590 more words)Show less
CSS Examples (examples/css/)

tokens.css — Complete design token system

  • Semantic color tokens (light + dark modes)
  • Typography scale with fluid sizing
  • Spacing, radius, shadow, motion scales
  • CSS custom properties ready to use

components.css — Component style library

  • Buttons (variants, sizes, states)
  • Inputs, textareas, selects
  • Cards, modals, tooltips
  • Navigation, headers, footers
  • Loading skeletons
  • All with state variants (hover/focus/active/disabled)

utilities.css — Utility class library

  • Layout utilities (flex, grid, container)
  • Spacing utilities (margin, padding)
  • Typography utilities (sizes, weights, line-heights)
  • State utilities (hover, focus, group variants)
TypeScript Examples (examples/typescript/)

design-tokens.ts — Type-safe token definitions

  • Token interfaces and types
  • Design system configuration
  • Theme type definitions
  • Token validators

theme-provider.tsx — Theme management system

  • Theme context provider
  • Dark mode toggle
  • System preference detection
  • Theme persistence (localStorage)

sample-components.tsx — Production component examples

  • Button component (all variants)
  • Input component (with validation)
  • Card component (with loading states)
  • Modal component (with focus management)
  • All with full TypeScript types and accessibility
Templates (templates/)

tailwind-config.js — Optimized Tailwind configuration

  • Custom color palette
  • Typography plugin setup
  • Spacing and sizing scales
  • Plugin configurations

globals.css — Global styles template

  • CSS reset/normalize
  • Token definitions
  • Base element styles
  • Utility classes

Output Quality Standards

Every deliverable must meet:

Code Quality
  • ✅ Production-ready (copy-paste deployable)
  • ✅ TypeScript with full type safety
  • ✅ ESLint/Prettier compliant
  • ✅ No hardcoded magic numbers
  • ✅ DRY (Don't Repeat Yourself)
  • ✅ Clear, descriptive naming
  • ✅ JSDoc comments for complex logic
Design Quality
  • ✅ Unique, memorable aesthetic
  • ✅ Consistent token usage
  • ✅ Cohesive visual language
  • ✅ Thoughtful micro-interactions
  • ✅ Polished details (shadows, transitions, spacing)
Accessibility Quality
  • ✅ WCAG AA minimum (AAA preferred)
  • ✅ Keyboard navigable
  • ✅ Screen reader friendly
  • ✅ Focus management
  • ✅ Semantic HTML
  • ✅ ARIA when necessary
Performance Quality
  • ✅ Optimized bundle size (tree-shaking)
  • ✅ Lazy loading for heavy components
  • ✅ CSS-only animations when possible
  • ✅ Minimal re-renders (React memo/useMemo)
  • ✅ Responsive images (srcset, sizes)

Verification Checklist

Before delivering code, verify:

Tokens & System:

  • All colors from semantic tokens (no hex/rgb hardcoded)
  • All spacing from spacing scale (8px system)
  • All radius from radius scale (xs/sm/md/lg/xl/2xl/full)
  • Shadows minimal and justified
  • Typography hierarchy clear (Display/H1/H2/H3/Body/Small/Caption)
  • Line-height comfortable (1.5+ for body text)

States & Interactions:

  • Default state implemented
  • Hover state (visual feedback)
  • Active state (pressed appearance)
  • Focus state (keyboard ring visible)
  • Disabled state (reduced opacity, no pointer)
  • Loading state (skeleton or spinner)
  • Empty state (clear message + CTA)
  • Error state (message + recovery)

Accessibility:

  • WCAG AA contrast (4.5:1 text, 3:1 large text)
  • Keyboard navigation complete
  • Focus indicators always visible
  • Semantic HTML used
  • ARIA labels where needed
  • Form labels associated
  • Alt text on images

Responsive Design:

  • Mobile layout (375px+) functional
  • Tablet layout (768px+) optimized
  • Desktop layout (1024px+) enhanced
  • Touch targets ≥ 44px
  • Text readable on all sizes
  • No horizontal scroll

Creative Execution:

  • Unique aesthetic (not generic)
  • Matches stated design direction
  • Memorable visual element
  • Cohesive design language
  • Polished details

Code Quality:

  • TypeScript types complete
  • No linter errors
  • DRY principles followed
  • Clear component boundaries
  • Consistent naming conventions
  • Adequate comments
  • Production-ready (can deploy as-is)

Advanced Techniques

1. Fluid Typography
css
/* Responsive type scale using clamp() */
:root {
  --font-size-sm: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
  --font-size-base: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 1.3rem + 0.7vw, 2rem);
  --font-size-3xl: clamp(1.875rem, 1.5rem + 1vw, 2.5rem);
  --font-size-4xl: clamp(2.25rem, 1.8rem + 1.5vw, 3.5rem);
}
2. Advanced Color Systems
css
/* Color with opacity variants using oklch */
:root {
  --primary-base: oklch(60% 0.15 250);
  --primary-subtle: oklch(95% 0.02 250);
  --primary-muted: oklch(85% 0.05 250);
  --primary-emphasis: oklch(50% 0.18 250);
  --primary-foreground: oklch(98% 0.01 250);
}

/* Dark mode: adjust lightness only */
[data-theme="dark"] {
  --primary-base: oklch(70% 0.15 250);
  --primary-subtle: oklch(20% 0.02 250);
  --primary-muted: oklch(30% 0.05 250);
  --primary-emphasis: oklch(80% 0.18 250);
  --primary-foreground: oklch(10% 0.01 250);
}
3. Skeleton Loading Patterns
tsx
// Animated skeleton with shimmer effect
const Skeleton = ({ className }: { className?: string }) => (
  <div
    className={cn(
      "animate-pulse rounded-md bg-surface-subtle",
      "relative overflow-hidden",
      "before:absolute before:inset-0",
      "before:-translate-x-full before:animate-shimmer",
      "before:bg-gradient-to-r before:from-transparent before:via-white/10 before:to-transparent",
      className
    )}
  />
);

// Usage in components
<Card>
  <Skeleton className="h-4 w-3/4 mb-2" />
  <Skeleton className="h-4 w-1/2 mb-4" />
  <Skeleton className="h-32 w-full" />
</Card>
4. Advanced Motion
css
/* Page transitions */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animations */
.stagger-item {
  animation: fade-in 0.3s ease-out backwards;
}
.stagger-item:nth-child(1) { animation-delay: 0ms; }
.stagger-item:nth-child(2) { animation-delay: 50ms; }
.stagger-item:nth-child(3) { animation-delay: 100ms; }
.stagger-item:nth-child(4) { animation-delay: 150ms; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

Tips for Excellence

  1. Always start with tokens — Never skip to components
  2. Think mobile-first — Design for 375px, enhance upward
  3. Validate states early — Test each interactive state in isolation
  4. Be bold with aesthetics — Avoid generic patterns
  5. Accessibility is non-negotiable — Build it in from the start
  6. Use real content — Test with actual text, images, data
  7. Review your own work — Self-audit before delivering
  8. Document decisions — Explain complex styling choices
  9. Keep it maintainable — Future developers will thank you
  10. Ship production-ready code — No "TODO" or "FIXME" in deliverables

References & Resources


Version: 2.0.0
Last Updated: December 2024
License: MIT
Maintained by: z-ai platform team

© jjyaoao, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 13 other files in skills/frontend-design of jjyaoao/HelloAgents.

  • SKILL.md
  • .gitignore
  • LICENSE
  • OPTIMIZATION_SUMMARY.md
  • README.md
  • examples/css/components.css
  • examples/css/tokens.css
  • examples/typescript/design-tokens.ts
  • examples/typescript/sample-components.tsx
  • examples/typescript/theme-provider.tsx
  • examples/typescript/utils.ts
  • package.json
  • templates/globals.css
  • templates/tailwind.config.js

Open the folder on GitHubat commit c597a7c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in jjyaoao/HelloAgents, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Frontend Design next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Frontend Design compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frontend Design this skilljjyaoao/HelloAgents3.2k1 repos~7kAutomated safety check: PassMIT
UI/UX Design System AdvisorGalaxy-Dawn/claude-scholar5.7k1 repos~1.1kAutomated safety check: PassMIT
Design StyleCastor6/tactus3761 repos~2.1kAutomated safety check: PassApache-2.0
Bryl Minimal Designbryllim/bryl-minimal-design115—~2.9kAutomated safety check: PassMIT
Frontend UI Foundryjiushiwon/wg-skills114—~1.4kAutomated safety check: PassApache-2.0
UI CraftMemTensor/memmy-agent2.1k—~2.9kAutomated safety check: PassMIT

Similar skills

  • UI/UX Design System Advisor

    Galaxy-Dawn/claude-scholar

    Turns a vague UI request into a concrete design system with style, palette, typography and layout guidance from a search script, plus stack-specific implementation advice.

    5.7k GitHub starsUsed in 1 repo~1.1k tokens
    Frontend & DesignAuto-check passed
  • Design Style

    Castor6/tactus

    A skill your agent uses whenever the user asks to build, create, design, develop, improve, or style any frontend interface or visual element.

    376 GitHub starsUsed in 1 repo~2.1k tokens
    Frontend & DesignAuto-check passed
  • Bryl Minimal Design

    bryllim/bryl-minimal-design

    Apply the bryl-minimal design language — a monochrome, typography-driven minimal aesthetic with halftone dot textures, pixel-font display headings, tiny uppercase monospace labels, soft large-radius…

    115 GitHub stars~2.9k tokensUpdated 3 mo ago
    Frontend & DesignAuto-check passed
  • Frontend UI Foundry

    jiushiwon/wg-skills

    A skill your agent uses when generating UI for a specific scenario (mobile/PC/官网/管理端/营销页/文档/金融/原生/3D), when refactoring an existing HTML/Vue/React project to a unified design system, when extracting…

    114 GitHub stars~1.4k tokensUpdated 4 days ago
    Frontend & DesignAuto-check passed
  • UI Craft

    MemTensor/memmy-agent

    Design, build, redesign, or modify browser-visible web interfaces with product-quality composition, visual systems, interaction states, responsive behavior, accessibility, and browser visual QA.

    2.1k GitHub stars~2.9k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • Design Code for Any Framework

    plugin87/ux-ui-agent-skills

    Generates complete, accessible, token-driven UI component code for a chosen framework such as React with Tailwind, SwiftUI, Vue, Flutter or Jetpack Compose.

    1.6k GitHub stars~1.7k tokensUpdated today
    Frontend & DesignAuto-check passed

More from jjyaoao/HelloAgents

All 11 skills in this repo
  • Image Generation

    jjyaoao/HelloAgents

    Implement AI image generation capabilities using the z-ai-web-dev-sdk.

    3.2k GitHub starsUsed in 1 repo~3.8k tokens
    Auto-check passed
  • Video Understand

    jjyaoao/HelloAgents

    Implement specialized video understanding capabilities using the z-ai-web-dev-sdk.

    3.2k GitHub starsUsed in 1 repo~6.2k tokens
    Auto-check passed
  • Web Reader

    jjyaoao/HelloAgents

    Implement web page content extraction capabilities using the z-ai-web-dev-sdk.

    3.2k GitHub starsUsed in 1 repo~7.1k tokens
    Auto-check passed
  • Web Search

    jjyaoao/HelloAgents

    Implement web search capabilities using the z-ai-web-dev-sdk.

    3.2k GitHub starsUsed in 1 repo~5.6k tokens
    Auto-check passed
  • DOCX

    jjyaoao/HelloAgents

    Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction.

    3.2k GitHub starsUsed in 1 repo~5.1k tokens
    Auto-check: notes
  • Gift Evaluator

    jjyaoao/HelloAgents

    The PRIMARY tool for Spring Festival gift analysis and social interaction generation.

    3.2k GitHub starsUsed in 1 repo~1.2k tokens
    Auto-check passed

Questions about Frontend Design

What does Frontend Design do?

Transform UI style requirements into production-ready frontend code with systematic design tokens, accessibility compliance, and creative execution. Frontend Design is an agent skill from jjyaoao/HelloAgents. Transform UI style requirements into production-ready frontend code with systematic design tokens, accessibility compliance, and creative execution.

When should I use Frontend Design?

Frontend Design fits situations like: building websites; web applications; React/Vue components; any web UI requiring both design consistency and aesthetic quality.

How do I install Frontend Design in Claude Code?

Run `npx skills add jjyaoao/HelloAgents --skill frontend-design -a claude-code`. Or copy the skill folder (skills/frontend-design in jjyaoao/HelloAgents) into .claude/skills/frontend-design in your project. Claude Code loads it when a task matches its description.

How do I install Frontend Design in Codex?

Run `npx skills add jjyaoao/HelloAgents --skill frontend-design -a codex`. Or copy the skill folder (skills/frontend-design in jjyaoao/HelloAgents) into .agents/skills/frontend-design in your project. Codex loads it when a task matches its description.

Can I use Frontend Design in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jjyaoao/HelloAgents --skill frontend-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/frontend-design, .gemini/skills/frontend-design, .github/skills/frontend-design and .opencode/skills/frontend-design in your project.

What does Frontend Design need to run?

Going by SKILL.md and its folder, Frontend Design needs TypeScript and JavaScript for the scripts in its folder and the command-line tools its instructions call (npm and npx). Our summary lists: Node.js.

Does Frontend Design access the network?

SKILL.md names 7 domains. As links in the text: tailwindcss.com, ui.shadcn.com, w3.org, webaim.org, typescale.com, modularscale.com and developer.mozilla.org. This is read from the text; nothing was executed.

Is Frontend Design safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Frontend Design use?

Frontend Design is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Frontend Design use?

About 7k tokens (SKILL.md is roughly 28k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Frontend Design?

Skills that share tags, products or a category with Frontend Design: UI/UX Design System Advisor (Galaxy-Dawn/claude-scholar, 5.7k stars), Design Style (Castor6/tactus, 376 stars), Bryl Minimal Design (bryllim/bryl-minimal-design, 115 stars) and Frontend UI Foundry (jiushiwon/wg-skills, 114 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frontend Design?

jjyaoao (a GitHub user) maintains it in jjyaoao/HelloAgents, which has 3,187 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 6, 2026.

Source: jjyaoao/HelloAgents on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.