Ui polish

From InugamiDev/ultrathink-oss · View interactive version

Ui polish is an AI agent skill from the GitHub repository InugamiDev/ultrathink-oss. Unified UI polish toolkit — 18 iteration passes for refining interfaces. Routes between: audit (comprehensive quality check), polish (final alignment/spacing), adapt (responsive scaling), animate (motion design), bolder (amplify contrast), clarify (microcopy), colorize (semantic color), critique (ho

How to use this skill

Skill file

ui-polish

Unified UI polish toolkit — 18 iteration passes for refining interfaces. Routes between: audit (comprehensive quality check), polish (final alignment/spacing), adapt (responsive scaling), animate (motion design), bolder (amplify contrast), clarify (microcopy), colorize (semantic color), critique (honest eval), delight (personality), distill (simplification), extract (pattern extraction), frontend-design (distinctive aesthetics), harden (error/loading/empty states), normalize (design system consistency), onboard (first-run UX), optimize (perceived performance), quieter (reduce noise), teach-impeccable (one-time setup). Use when iterating on finished UI.

Absorbs


From `adapt`

Adapt designs to work across different screen sizes, devices, contexts, or platforms. Ensures consistent experience across varied environments.

Adapt existing designs to work effectively across different contexts - different screen sizes, devices, platforms, or use cases.

Assess Adaptation Challenge

Understand what needs adaptation and why:

  1. Identify the source context:
  1. Understand target context:
  1. Identify adaptation challenges:

CRITICAL: Adaptation is not just scaling - it's rethinking the experience for the new context.

Plan Adaptation Strategy

Create context-appropriate strategy:

Mobile Adaptation (Desktop → Mobile)

Layout Strategy:

Interaction Strategy:

Content Strategy:

Navigation Strategy:

Tablet Adaptation (Hybrid Approach)

Layout Strategy:

Interaction Strategy:

Desktop Adaptation (Mobile → Desktop)

Layout Strategy:

Interaction Strategy:

Content Strategy:

Print Adaptation (Screen → Print)

Layout Strategy:

Content Strategy:

Email Adaptation (Web → Email)

Layout Strategy:

Interaction Strategy:

Implement Adaptations

Apply changes systematically:

Responsive Breakpoints

Choose appropriate breakpoints:

Layout Adaptation Techniques

Touch Adaptation

Content Adaptation

Navigation Adaptation

IMPORTANT: Test on real devices, not just browser DevTools. Device emulation is helpful but not perfect.

NEVER:

Verify Adaptations

Test thoroughly across contexts:

Remember: You're a cross-platform design expert. Make experiences that feel native to each context while maintaining brand and functionality consistency. Adapt intentionally, test thoroughly.


From `animate`

Review a feature and enhance it with purposeful animations, micro-interactions, and motion effects that improve usability and delight.

Analyze a feature and strategically add animations and micro-interactions that enhance understanding, provide feedback, and create delight.

MANDATORY PREPARATION

Context Gathering (Do This First)

You cannot do a great job without having necessary context, such as target audience (critical), desired use-cases (critical), brand personality/tone (playful vs serious, energetic vs calm), and performance constraints.

Attempt to gather these from the current thread or codebase.

  1. If you don't find exact information and have to infer from existing design and functionality, you MUST STOP and STOP and call the AskUserQuestionTool to clarify. whether you got it right.
  2. Otherwise, if you can't fully infer or your level of confidence is medium or lower, you MUST STOP and call the AskUserQuestionTool to clarify. clarifying questions first to complete your context.

Do NOT proceed until you have answers. Guessing leads to inappropriate or excessive animation.

Use frontend-design skill

Use the frontend-design skill for design principles and anti-patterns. Do NOT proceed until it has executed and you know all DO's and DON'Ts.


Assess Animation Opportunities

Analyze where motion would improve the experience:

  1. Identify static areas:
  1. Understand the context:

If any of these are unclear from the codebase, STOP and call the AskUserQuestionTool to clarify.

CRITICAL: Respect prefers-reduced-motion. Always provide non-animated alternatives for users who need them.

Plan Animation Strategy

Create a purposeful animation plan:

IMPORTANT: One well-orchestrated experience beats scattered animations everywhere. Focus on high-impact moments.

Implement Animations

Add motion systematically across these categories:

Entrance Animations

Micro-interactions

State Transitions

Navigation & Flow

Feedback & Guidance

Delight Moments

Technical Implementation

Use appropriate techniques for each animation:

Timing & Easing

Durations by purpose:

Easing curves (use these, not CSS defaults):

/* Recommended - natural deceleration */
--ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);    /* Smooth, refined */
--ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);   /* Slightly snappier */
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);     /* Confident, decisive */

/* AVOID - feel dated and tacky */
/* bounce: cubic-bezier(0.34, 1.56, 0.64, 1); */
/* elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6); */

Exit animations are faster than entrances. Use ~75% of enter duration.

CSS Animations

/* Prefer for simple, declarative animations */
- transitions for state changes
- @keyframes for complex sequences
- transform + opacity only (GPU-accelerated)

JavaScript Animation

/* Use for complex, interactive animations */
- Web Animations API for programmatic control
- Framer Motion for React
- GSAP for complex sequences

Performance

Accessibility

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

NEVER:

Verify Quality

Test animations thoroughly:

Remember: Motion should enhance understanding and provide feedback, not just add decoration. Animate with purpose, respect performance constraints, and always consider accessibility. Great animation is invisible - it just makes everything feel right.


From `audit`

Perform comprehensive audit of interface quality across accessibility, performance, theming, and responsive design. Generates detailed report of issues with severity ratings and recommendations.

Run systematic quality checks and generate a comprehensive audit report with prioritized issues and actionable recommendations. Don't fix issues - document them for other commands to address.

First: Use the frontend-design skill for design principles and anti-patterns.

Diagnostic Scan

Run comprehensive checks across multiple dimensions:

  1. Accessibility (A11y) - Check for:
  1. Performance - Check for:
  1. Theming - Check for:
  1. Responsive Design - Check for:
  1. Anti-Patterns (CRITICAL) - Check against ALL the DON'T guidelines in the frontend-design skill. Look for AI slop tells (AI color palette, gradient text, glassmorphism, hero metrics, card grids, generic fonts) and general design anti-patterns (gray on color, nested cards, bounce easing, redundant copy).

CRITICAL: This is an audit, not a fix. Document issues thoroughly with clear explanations of impact. Use other commands (normalize, optimize, harden, etc.) to fix issues after audit.

Generate Comprehensive Report

Create a detailed audit report with the following structure:

Anti-Patterns Verdict

Start here. Pass/fail: Does this look AI-generated? List specific tells from the skill's Anti-Patterns section. Be brutally honest.

Executive Summary

Detailed Findings by Severity

For each issue, document:

Critical Issues

[Issues that block core functionality or violate WCAG A]

High-Severity Issues

[Significant usability/accessibility impact, WCAG AA violations]

Medium-Severity Issues

[Quality issues, WCAG AAA violations, performance concerns]

Low-Severity Issues

[Minor inconsistencies, optimization opportunities]

Patterns & Systemic Issues

Identify recurring problems:

Positive Findings

Note what's working well:

Recommendations by Priority

Create actionable plan:

  1. Immediate: Critical blockers to fix first
  2. Short-term: High-severity issues (this sprint)
  3. Medium-term: Quality improvements (next sprint)
  4. Long-term: Nice-to-haves and optimizations

Suggested Commands for Fixes

Map issues to available commands. Prefer these: /animate, /quieter, /optimize, /adapt, /clarify, /distill, /delight, /onboard, /normalize, /audit, /harden, /polish, /extract, /bolder, /critique, /colorize. You may also suggest other installed skills you're sure exist, but never invent commands.

Examples:

IMPORTANT: Be thorough but actionable. Too many low-priority issues creates noise. Focus on what actually matters.

NEVER:

Remember: You're a quality auditor with exceptional attention to detail. Document systematically, prioritize ruthlessly, and provide clear paths to improvement. A good audit makes fixing easy.


From `bolder`

Amplify safe or boring designs to make them more visually interesting and stimulating. Increases impact while maintaining usability.

Increase visual impact and personality in designs that are too safe, generic, or visually underwhelming, creating more engaging and memorable experiences.

MANDATORY PREPARATION

Context Gathering (Do This First)

You cannot do a great job without having necessary context, such as target audience (critical), desired use-cases (critical), brand personality/tone, and everything else that a great human designer would need as well.

Attempt to gather these from the current thread or codebase.

  1. If you don't find exact information and have to infer from existing design and functionality, you MUST STOP and STOP and call the AskUserQuestionTool to clarify. whether you got it right.
  2. Otherwise, if you can't fully infer or your level of confidence is medium or lower, you MUST STOP and call the AskUserQuestionTool to clarify. clarifying questions first to complete your context.

Do NOT proceed until you have answers. Guessing leads to generic AI slop.

Use frontend-design skill

Use the frontend-design skill for design principles and anti-patterns. Do NOT proceed until it has executed and you know all DO's and DON'Ts.


Assess Current State

Analyze what makes the design feel too safe or boring:

  1. Identify weakness sources:
  1. Understand the context:

If any of these are unclear from the codebase, STOP and call the AskUserQuestionTool to clarify.

CRITICAL: "Bolder" doesn't mean chaotic or garish. It means distinctive, memorable, and confident. Think intentional drama, not random chaos.

WARNING - AI SLOP TRAP: When making things "bolder," AI defaults to the same tired tricks: cyan/purple gradients, glassmorphism, neon accents on dark backgrounds, gradient text on metrics. These are the OPPOSITE of bold—they're generic. Review ALL the DON'T guidelines in the frontend-design skill before proceeding. Bold means distinctive, not "more effects."

Plan Amplification

Create a strategy to increase impact while maintaining coherence:

IMPORTANT: Bold design must still be usable. Impact without function is just decoration.

Amplify the Design

Systematically increase impact across these dimensions:

Typography Amplification

Color Intensification

Spatial Drama

Visual Effects

Motion & Animation

Composition Boldness

NEVER:

Verify Quality

Ensure amplification maintains usability and coherence:

The test: If you showed this to someone and said "AI made this bolder," would they believe you immediately? If yes, you've failed. Bold means distinctive, not "more AI effects."

Remember: Bold design is confident design. It takes risks, makes statements, and creates memorable experiences. But bold without strategy is just loud. Be intentional, be dramatic, be unforgettable.


From `clarify`

Improve unclear UX copy, error messages, microcopy, labels, and instructions. Makes interfaces easier to understand and use.

Identify and improve unclear, confusing, or poorly written interface text to make the product easier to understand and use.

Assess Current Copy

Identify what makes the text unclear or ineffective:

  1. Find clarity problems:
  1. Understand the context:

CRITICAL: Clear copy helps users succeed. Unclear copy creates frustration, errors, and support tickets.

Plan Copy Improvements

Create a strategy for clearer communication:

IMPORTANT: Good UX writing is invisible. Users should understand immediately without noticing the words.

Improve Copy Systematically

Refine text across these common areas:

Error Messages

Bad: "Error 403: Forbidden"

Good: "You don't have permission to view this page. Contact your admin for access."

Bad: "Invalid input"

Good: "Email addresses need an @ symbol. Try: name@example.com"

Principles:

Form Labels & Instructions

Bad: "DOB (MM/DD/YYYY)"

Good: "Date of birth" (with placeholder showing format)

Bad: "Enter value here"

Good: "Your email address" or "Company name"

Principles:

Button & CTA Text

Bad: "Click here" | "Submit" | "OK"

Good: "Create account" | "Save changes" | "Got it, thanks"

Principles:

Help Text & Tooltips

Bad: "This is the username field"

Good: "Choose a username. You can change this later in Settings."

Principles:

Empty States

Bad: "No items"

Good: "No projects yet. Create your first project to get started."

Principles:

Success Messages

Bad: "Success"

Good: "Settings saved! Your changes will take effect immediately."

Principles:

Loading States

Bad: "Loading..." (for 30+ seconds)

Good: "Analyzing your data... this usually takes 30-60 seconds"

Principles:

Confirmation Dialogs

Bad: "Are you sure?"

Good: "Delete 'Project Alpha'? This can't be undone."

Principles:

Navigation & Wayfinding

Bad: Generic labels like "Items" | "Things" | "Stuff"

Good: Specific labels like "Your projects" | "Team members" | "Settings"

Principles:

Apply Clarity Principles

Every piece of copy should follow these rules:

  1. Be specific: "Enter email" not "Enter value"
  2. Be concise: Cut unnecessary words (but don't sacrifice clarity)
  3. Be active: "Save changes" not "Changes will be saved"
  4. Be human: "Oops, something went wrong" not "System error encountered"
  5. Be helpful: Tell users what to do, not just what happened
  6. Be consistent: Use same terms throughout (don't vary for variety)

NEVER:

Verify Improvements

Test that copy improvements work:

Remember: You're a clarity expert with excellent communication skills. Write like you're explaining to a smart friend who's unfamiliar with the product. Be clear, be helpful, be human.


From `colorize`

Add strategic color to features that are too monochromatic or lack visual interest. Makes interfaces more engaging and expressive.

Strategically introduce color to designs that are too monochromatic, gray, or lacking in visual warmth and personality.

MANDATORY PREPARATION

Context Gathering (Do This First)

You cannot do a great job without having necessary context, such as target audience (critical), desired use-cases (critical), brand personality/tone, and especially existing brand colors.

Attempt to gather these from the current thread or codebase.

  1. If you don't find exact information and have to infer from existing design and functionality, you MUST STOP and STOP and call the AskUserQuestionTool to clarify. whether you got it right.
  2. Otherwise, if you can't fully infer or your level of confidence is medium or lower, you MUST STOP and call the AskUserQuestionTool to clarify. clarifying questions first to complete your context.

Do NOT proceed until you have answers. Guessing leads to generic AI slop colors.

Use frontend-design skill

Use the frontend-design skill for design principles and anti-patterns. Do NOT proceed until it has executed and you know all DO's and DON'Ts.


Assess Color Opportunity

Analyze the current state and identify opportunities:

  1. Understand current state:
  1. Identify where color adds value:

If any of these are unclear from the codebase, STOP and call the AskUserQuestionTool to clarify.

CRITICAL: More color ≠ better. Strategic color beats rainbow vomit every time. Every color should have a purpose.

Plan Color Strategy

Create a purposeful color introduction plan:

IMPORTANT: Color should enhance hierarchy and meaning, not create chaos. Less is more when it matters more.

Introduce Color Strategically

Add color systematically across these dimensions:

Semantic Color

Accent Color Application

Background & Surfaces

Use OKLCH for color: It's perceptually uniform, meaning equal steps in lightness look equal. Great for generating harmonious scales.

Data Visualization

Borders & Accents

Typography Color

Decorative Elements

Balance & Refinement

Ensure color addition improves rather than overwhelms:

Maintain Hierarchy

Accessibility

Cohesion

NEVER:

Verify Color Addition

Test that colorization improves the experience:

Remember: Color is emotional and powerful. Use it to create warmth, guide attention, communicate meaning, and express personality. But restraint and strategy matter more than saturation and variety. Be colorful, but be intentional.


From `critique`

Evaluate design effectiveness from a UX perspective. Assesses visual hierarchy, information architecture, emotional resonance, and overall design quality with actionable feedback.

Conduct a holistic design critique, evaluating whether the interface actually works—not just technically, but as a designed experience. Think like a design director giving feedback.

First: Use the frontend-design skill for design principles and anti-patterns.

Design Critique

Evaluate the interface across these dimensions:

1. AI Slop Detection (CRITICAL)

This is the most important check. Does this look like every other AI-generated interface from 2024-2025?

Review the design against ALL the DON'T guidelines in the frontend-design skill—they are the fingerprints of AI-generated work. Check for the AI color palette, gradient text, dark mode with glowing accents, glassmorphism, hero metric layouts, identical card grids, generic fonts, and all other tells.

The test: If you showed this to someone and said "AI made this," would they believe you immediately? If yes, that's the problem.

2. Visual Hierarchy

3. Information Architecture

4. Emotional Resonance

5. Discoverability & Affordance

6. Composition & Balance

7. Typography as Communication

8. Color with Purpose

9. States & Edge Cases

10. Microcopy & Voice

Generate Critique Report

Structure your feedback as a design director would:

Anti-Patterns Verdict

Start here. Pass/fail: Does this look AI-generated? List specific tells from the skill's Anti-Patterns section. Be brutally honest.

Overall Impression

A brief gut reaction—what works, what doesn't, and the single biggest opportunity.

What's Working

Highlight 2-3 things done well. Be specific about why they work.

Priority Issues

The 3-5 most impactful design problems, ordered by importance:

For each issue:

Minor Observations

Quick notes on smaller issues worth addressing.

Questions to Consider

Provocative questions that might unlock better solutions:

Remember:


From `delight`

Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful.

Identify opportunities to add moments of joy, personality, and unexpected polish that transform functional interfaces into delightful experiences.

MANDATORY PREPARATION

Context Gathering (Do This First)

You cannot do a great job without having necessary context, such as target audience (critical), desired use-cases (critical), brand personality (playful vs professional vs quirky vs elegant), and what's appropriate for the domain.

Attempt to gather these from the current thread or codebase.

  1. If you don't find exact information and have to infer from existing design and functionality, you MUST STOP and STOP and call the AskUserQuestionTool to clarify. whether you got it right.
  2. Otherwise, if you can't fully infer or your level of confidence is medium or lower, you MUST STOP and call the AskUserQuestionTool to clarify. clarifying questions first to complete your context.

Do NOT proceed until you have answers. Delight that's wrong for the context is worse than no delight at all.

Use frontend-design skill

Use the frontend-design skill for design principles and anti-patterns. Do NOT proceed until it has executed and you know all DO's and DON'Ts.


Assess Delight Opportunities

Identify where delight would enhance (not distract from) the experience:

  1. Find natural delight moments:
  1. Understand the context:
  1. Define delight strategy:

If any of these are unclear from the codebase, STOP and call the AskUserQuestionTool to clarify.

CRITICAL: Delight should enhance usability, never obscure it. If users notice the delight more than accomplishing their goal, you've gone too far.

Delight Principles

Follow these guidelines:

Delight Amplifies, Never Blocks

Surprise and Discovery

Appropriate to Context

Compound Over Time

Delight Techniques

Add personality and joy through these methods:

Micro-interactions & Animation

Button delight:

/* Satisfying button press */
.button {
  transition: transform 0.1s, box-shadow 0.1s;
}
.button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Ripple effect on click */
/* Smooth lift on hover */
.button:hover {
  transform: translateY(-2px);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1); /* ease-out-quart */
}

Loading delight:

Success animations:

Hover surprises:

Personality in Copy

Playful error messages:

"Error 404"
"This page is playing hide and seek. (And winning)"

"Connection failed"
"Looks like the internet took a coffee break. Want to retry?"

Encouraging empty states:

"No projects"
"Your canvas awaits. Create something amazing."

"No messages"
"Inbox zero! You're crushing it today."

Playful labels & tooltips:

"Delete"
"Send to void" (for playful brand)

"Help"
"Rescue me" (tooltip)

IMPORTANT: Match copy personality to brand. Banks shouldn't be wacky, but they can be warm.

Illustrations & Visual Personality

Custom illustrations:

Icon personality:

Background effects:

Satisfying Interactions

Drag and drop delight:

Toggle switches:

Progress & achievements:

Form interactions:

Sound Design

Subtle audio cues (when appropriate):

IMPORTANT:

Easter Eggs & Hidden Delights

Discovery rewards:

Seasonal touches:

Contextual personality:

Loading & Waiting States

Make waiting engaging:

Loading messages rotation:
- "Waking up the servers..."
- "Teaching robots to dance..."
- "Consulting the magic 8-ball..."
- "Counting backwards from infinity..."

Celebration Moments

Success celebrations:

Milestone recognition:

Implementation Patterns

Animation libraries:

Sound libraries:

Physics libraries:

IMPORTANT: File size matters. Compress images, optimize animations, lazy load delight features.

NEVER:

Verify Delight Quality

Test that delight actually delights:

Remember: Delight is the difference between a tool and an experience. Add personality, surprise users positively, and create moments worth sharing. But always respect usability - delight should enhance, never obstruct.


From `distill`

Strip designs to their essence by removing unnecessary complexity. Great design is simple, powerful, and clean.

Remove unnecessary complexity from designs, revealing the essential elements and creating clarity through ruthless simplification.

MANDATORY PREPARATION

Context Gathering (Do This First)

You cannot do a great job without having necessary context, such as target audience (critical), desired use-cases (critical), and understanding what's truly essential vs nice-to-have for this product.

Attempt to gather these from the current thread or codebase.

  1. If you don't find exact information and have to infer from existing design and functionality, you MUST STOP and STOP and call the AskUserQuestionTool to clarify. whether you got it right.
  2. Otherwise, if you can't fully infer or your level of confidence is medium or lower, you MUST STOP and call the AskUserQuestionTool to clarify. clarifying questions first to complete your context.

Do NOT proceed until you have answers. Simplifying the wrong things destroys usability.

Use frontend-design skill

Use the frontend-design skill for design principles and anti-patterns. Do NOT proceed until it has executed and you know all DO's and DON'Ts.


Assess Current State

Analyze what makes the design feel complex or cluttered:

  1. Identify complexity sources:
  1. Find the essence:

If any of these are unclear from the codebase, STOP and call the AskUserQuestionTool to clarify.

CRITICAL: Simplicity is not about removing features - it's about removing obstacles between users and their goals. Every element should justify its existence.

Plan Simplification

Create a ruthless editing strategy:

IMPORTANT: Simplification is hard. It requires saying no to good ideas to make room for great execution. Be ruthless.

Simplify the Design

Systematically remove complexity across these dimensions:

Information Architecture

Visual Simplification

Layout Simplification

Interaction Simplification

Content Simplification

Code Simplification

NEVER:

Verify Simplification

Ensure simplification improves usability:

Document Removed Complexity

If you removed features or options:

Remember: You have great taste and judgment. Simplification is an act of confidence - knowing what to keep and courage to remove the rest. As Antoine de Saint-Exupéry said: "Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away."


From `extract`

Extract and consolidate reusable components, design tokens, and patterns into your design system. Identifies opportunities for systematic reuse and enriches your component library.

Identify reusable patterns, components, and design tokens, then extract and consolidate them into the design system for systematic reuse.

Discover

Analyze the target area to identify extraction opportunities:

  1. Find the design system: Locate your design system, component library, or shared UI directory (grep for "design system", "ui", "components", etc.). Understand its structure:

CRITICAL: If no design system exists, ask before creating one. Understand the preferred location and structure first.

  1. Identify patterns: Look for:
  1. Assess value: Not everything should be extracted. Consider:

Plan Extraction

Create a systematic extraction plan:

IMPORTANT: Design systems grow incrementally. Extract what's clearly reusable now, not everything that might someday be reusable.

Extract & Enrich

Build improved, reusable versions:

NEVER:

Migrate

Replace existing uses with the new shared versions:

Document

Update design system documentation:

Remember: A good design system is a living system. Extract patterns as they emerge, enrich them thoughtfully, and maintain them consistently.


From `frontend-design`

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. Generates creative, polished code that avoids generic AI aesthetics.

This skill guides creation of distinctive, production-grade frontend interfaces that avoid generic "AI slop" aesthetics. Implement real working code with exceptional attention to aesthetic details and creative choices.

Design Direction

Commit to a BOLD aesthetic direction:

CRITICAL: Choose a clear conceptual direction and execute it with precision. Bold maximalism and refined minimalism both work—the key is intentionality, not intensity.

Then implement working code that is:

Frontend Aesthetics Guidelines

Typography

→ Consult typography reference for scales, pairing, and loading strategies.

Choose fonts that are beautiful, unique, and interesting. Pair a distinctive display font with a refined body font.

DO: Use a modular type scale with fluid sizing (clamp)

DO: Vary font weights and sizes to create clear visual hierarchy

DON'T: Use overused fonts—Inter, Roboto, Arial, Open Sans, system defaults

DON'T: Use monospace typography as lazy shorthand for "technical/developer" vibes

DON'T: Put large icons with rounded corners above every heading—they rarely add value and make sites look templated

Color & Theme

→ Consult color reference for OKLCH, palettes, and dark mode.

Commit to a cohesive palette. Dominant colors with sharp accents outperform timid, evenly-distributed palettes.

DO: Use modern CSS color functions (oklch, color-mix, light-dark) for perceptually uniform, maintainable palettes

DO: Tint your neutrals toward your brand hue—even a subtle hint creates subconscious cohesion

DON'T: Use gray text on colored backgrounds—it looks washed out; use a shade of the background color instead

DON'T: Use pure black (#000) or pure white (#fff)—always tint; pure black/white never appears in nature

DON'T: Use the AI color palette: cyan-on-dark, purple-to-blue gradients, neon accents on dark backgrounds

DON'T: Use gradient text for "impact"—especially on metrics or headings; it's decorative rather than meaningful

DON'T: Default to dark mode with glowing accents—it looks "cool" without requiring actual design decisions

Layout & Space

→ Consult spatial reference for grids, rhythm, and container queries.

Create visual rhythm through varied spacing—not the same padding everywhere. Embrace asymmetry and unexpected compositions. Break the grid intentionally for emphasis.

DO: Create visual rhythm through varied spacing—tight groupings, generous separations

DO: Use fluid spacing with clamp() that breathes on larger screens

DO: Use asymmetry and unexpected compositions; break the grid intentionally for emphasis

DON'T: Wrap everything in cards—not everything needs a container

DON'T: Nest cards inside cards—visual noise, flatten the hierarchy

DON'T: Use identical card grids—same-sized cards with icon + heading + text, repeated endlessly

DON'T: Use the hero metric layout template—big number, small label, supporting stats, gradient accent

DON'T: Center everything—left-aligned text with asymmetric layouts feels more designed

DON'T: Use the same spacing everywhere—without rhythm, layouts feel monotonous

Visual Details

DO: Use intentional, purposeful decorative elements that reinforce brand

DON'T: Use glassmorphism everywhere—blur effects, glass cards, glow borders used decoratively rather than purposefully

DON'T: Use rounded elements with thick colored border on one side—a lazy accent that almost never looks intentional

DON'T: Use sparklines as decoration—tiny charts that look sophisticated but convey nothing meaningful

DON'T: Use rounded rectangles with generic drop shadows—safe, forgettable, could be any AI output

DON'T: Use modals unless there's truly no better alternative—modals are lazy

Motion

→ Consult motion reference for timing, easing, and reduced motion.

Focus on high-impact moments: one well-orchestrated page load with staggered reveals creates more delight than scattered micro-interactions.

DO: Use motion to convey state changes—entrances, exits, feedback

DO: Use exponential easing (ease-out-quart/quint/expo) for natural deceleration

DO: For height animations, use grid-template-rows transitions instead of animating height directly

DON'T: Animate layout properties (width, height, padding, margin)—use transform and opacity only

DON'T: Use bounce or elastic easing—they feel dated and tacky; real objects decelerate smoothly

Interaction

→ Consult interaction reference for forms, focus, and loading patterns.

Make interactions feel fast. Use optimistic UI—update immediately, sync later.

DO: Use progressive disclosure—start simple, reveal sophistication through interaction (basic options first, advanced behind expandable sections; hover states that reveal secondary actions)

DO: Design empty states that teach the interface, not just say "nothing here"

DO: Make every interactive surface feel intentional and responsive

DON'T: Repeat the same information—redundant headers, intros that restate the heading

DON'T: Make every button primary—use ghost buttons, text links, secondary styles; hierarchy matters

Responsive

→ Consult responsive reference for mobile-first, fluid design, and container queries.

DO: Use container queries (@container) for component-level responsiveness

DO: Adapt the interface for different contexts—don't just shrink it

DON'T: Hide critical functionality on mobile—adapt the interface, don't amputate it

UX Writing

→ Consult ux-writing reference for labels, errors, and empty states.

DO: Make every word earn its place

DON'T: Repeat information users can already see


The AI Slop Test

Critical quality check: If you showed this interface to someone and said "AI made this," would they believe you immediately? If yes, that's the problem.

A distinctive interface should make someone ask "how was this made?" not "which AI made this?"

Review the DON'T guidelines above—they are the fingerprints of AI-generated work from 2024-2025.


Implementation Principles

Match implementation complexity to the aesthetic vision. Maximalist designs need elaborate code with extensive animations and effects. Minimalist or refined designs need restraint, precision, and careful attention to spacing, typography, and subtle details.

Interpret creatively and make unexpected choices that feel genuinely designed for the context. No design should be the same. Vary between light and dark themes, different fonts, different aesthetics. NEVER converge on common choices across generations.

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 vision.


From `harden`

Improve interface resilience through better error handling, i18n support, text overflow handling, and edge case management. Makes interfaces robust and production-ready.

Strengthen interfaces against edge cases, errors, internationalization issues, and real-world usage scenarios that break idealized designs.

Assess Hardening Needs

Identify weaknesses and edge cases:

  1. Test with extreme inputs:
  1. Test error scenarios:
  1. Test internationalization:

CRITICAL: Designs that only work with perfect data aren't production-ready. Harden against reality.

Hardening Dimensions

Systematically improve resilience:

Text Overflow & Wrapping

Long text handling:

/* Single line with ellipsis */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Multi-line with clamp */
.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Allow wrapping */
.wrap {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

Flex/Grid overflow:

/* Prevent flex items from overflowing */
.flex-item {
  min-width: 0; /* Allow shrinking below content size */
  overflow: hidden;
}

/* Prevent grid items from overflowing */
.grid-item {
  min-width: 0;
  min-height: 0;
}

Responsive text sizing:

Internationalization (i18n)

Text expansion:

// ❌ Bad: Assumes short English text
<button className="w-24">Submit</button>

// ✅ Good: Adapts to content
<button className="px-4 py-2">Submit</button>

RTL (Right-to-Left) support:

/* Use logical properties */
margin-inline-start: 1rem; /* Not margin-left */
padding-inline: 1rem; /* Not padding-left/right */
border-inline-end: 1px solid; /* Not border-right */

/* Or use dir attribute */
[dir="rtl"] .arrow { transform: scaleX(-1); }

Character set support:

Date/Time formatting:

// ✅ Use Intl API for proper formatting
new Intl.DateTimeFormat('en-US').format(date); // 1/15/2024
new Intl.DateTimeFormat('de-DE').format(date); // 15.1.2024

new Intl.NumberFormat('en-US', { 
  style: 'currency', 
  currency: 'USD' 
}).format(1234.56); // $1,234.56

Pluralization:

// ❌ Bad: Assumes English pluralization
`${count} item${count !== 1 ? 's' : ''}`

// ✅ Good: Use proper i18n library
t('items', { count }) // Handles complex plural rules

Error Handling

Network errors:

// Error states with recovery
{error && (
  <ErrorMessage>
    <p>Failed to load data. {error.message}</p>
    <button onClick={retry}>Try again</button>
  </ErrorMessage>
)}

Form validation errors:

API errors:

Graceful degradation:

Edge Cases & Boundary Conditions

Empty states:

Loading states:

Large datasets:

Concurrent operations:

Permission states:

Browser compatibility:

Input Validation & Sanitization

Client-side validation:

Server-side validation (always):

Constraint handling:

<!-- Set clear constraints -->
<input 
  type="text"
  maxlength="100"
  pattern="[A-Za-z0-9]+"
  required
  aria-describedby="username-hint"
/>
<small id="username-hint">
  Letters and numbers only, up to 100 characters
</small>

Accessibility Resilience

Keyboard navigation:

Screen reader support:

Motion sensitivity:

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

High contrast mode:

Performance Resilience

Slow connections:

Memory leaks:

Throttling & Debouncing:

// Debounce search input
const debouncedSearch = debounce(handleSearch, 300);

// Throttle scroll handler
const throttledScroll = throttle(handleScroll, 100);

Testing Strategies

Manual testing:

Automated testing:

IMPORTANT: Hardening is about expecting the unexpected. Real users will do things you never imagined.

NEVER:

Verify Hardening

Test thoroughly with edge cases:

Remember: You're hardening for production reality, not demo perfection. Expect users to input weird data, lose connection mid-flow, and use your product in unexpected ways. Build resilience into every component.


From `normalize`

Normalize design to match your design system and ensure consistency

Analyze and redesign the feature to perfectly match our design system standards, aesthetics, and established patterns.

Plan

Before making changes, deeply understand the context:

  1. Discover the design system: Search for design system documentation, UI guidelines, component libraries, or style guides (grep for "design system", "ui guide", "style guide", etc.). Study it thoroughly until you understand:

CRITICAL: If something isn't clear, ask. Don't guess at design system principles.

  1. Analyze the current feature: Assess what works and what doesn't:
  1. Create a normalization plan: Define specific changes that will align the feature with the design system:

IMPORTANT: Great design is effective design. Prioritize UX consistency and usability over visual polish alone. Think through the best possible experience for your use case and personas first.

Execute

Systematically address all inconsistencies across these dimensions:

NEVER:

This is not an exhaustive list—apply judgment to identify all areas needing normalization.

Clean Up

After normalization, ensure code quality:

Remember: You are a brilliant frontend designer with impeccable taste, equally strong in UX and UI. Your attention to detail and eye for end-to-end user experience is world class. Execute with precision and thoroughness.


From `onboard`

Design or improve onboarding flows, empty states, and first-time user experiences. Helps users get started successfully and understand value quickly.

Create or improve onboarding experiences that help users understand, adopt, and succeed with the product quickly.

Assess Onboarding Needs

Understand what users need to learn and why:

  1. Identify the challenge:
  1. Understand the users:
  1. Define success:

CRITICAL: Onboarding should get users to value as quickly as possible, not teach everything possible.

Onboarding Principles

Follow these core principles:

Show, Don't Tell

Make It Optional (When Possible)

Time to Value

Context Over Ceremony

Respect User Intelligence

Design Onboarding Experiences

Create appropriate onboarding for the context:

Initial Product Onboarding

Welcome Screen:

Account Setup:

Core Concept Introduction:

First Success:

Feature Discovery & Adoption

Empty States:

Instead of blank space, show:

Example:

No projects yet
Projects help you organize your work and collaborate with your team.
[Create your first project] or [Start from template]

Contextual Tooltips:

Feature Announcements:

Progressive Onboarding:

Guided Tours & Walkthroughs

When to use:

How to design:

Best practices:

Interactive Tutorials

When to use:

How to design:

Documentation & Help

In-product help:

Help patterns:

Empty State Design

Every empty state needs:

What Will Be Here

"Your recent projects will appear here"

Why It Matters

"Projects help you organize your work and collaborate with your team"

How to Get Started

[Create project] or [Import from template]

Visual Interest

Illustration or icon (not just text on blank page)

Contextual Help

"Need help getting started? [Watch 2-min tutorial]"

Empty state types:

Implementation Patterns

Technical approaches:

Tooltip libraries: Tippy.js, Popper.js

Tour libraries: Intro.js, Shepherd.js, React Joyride

Modal patterns: Focus trap, backdrop, ESC to close

Progress tracking: LocalStorage for "seen" states

Analytics: Track completion, drop-off points

Storage patterns:

// Track which onboarding steps user has seen
localStorage.setItem('onboarding-completed', 'true');
localStorage.setItem('feature-tooltip-seen-reports', 'true');

IMPORTANT: Don't show same onboarding twice (annoying). Track completion and respect dismissals.

NEVER:

Verify Onboarding Quality

Test with real users:

Remember: You're a product educator with excellent teaching instincts. Get users to their "aha moment" as quickly as possible. Teach the essential, make it contextual, respect user time and intelligence.


From `optimize`

Improve interface performance across loading speed, rendering, animations, images, and bundle size. Makes experiences faster and smoother.

Identify and fix performance issues to create faster, smoother user experiences.

Assess Performance Issues

Understand current performance and identify problems:

  1. Measure current state:
  1. Identify bottlenecks:

CRITICAL: Measure before and after. Premature optimization wastes time. Optimize what actually matters.

Optimization Strategy

Create systematic improvement plan:

Loading Performance

Optimize Images:

<img 
  src="hero.webp"
  srcset="hero-400.webp 400w, hero-800.webp 800w, hero-1200.webp 1200w"
  sizes="(max-width: 400px) 400px, (max-width: 800px) 800px, 1200px"
  loading="lazy"
  alt="Hero image"
/>

Reduce JavaScript Bundle:

// Lazy load heavy component
const HeavyChart = lazy(() => import('./HeavyChart'));

Optimize CSS:

Optimize Fonts:

@font-face {
  font-family: 'CustomFont';
  src: url('/fonts/custom.woff2') format('woff2');
  font-display: swap; /* Show fallback immediately */
  unicode-range: U+0020-007F; /* Basic Latin only */
}

Optimize Loading Strategy:

Rendering Performance

Avoid Layout Thrashing:

// ❌ Bad: Alternating reads and writes (causes reflows)
elements.forEach(el => {
  const height = el.offsetHeight; // Read (forces layout)
  el.style.height = height * 2; // Write
});

// ✅ Good: Batch reads, then batch writes
const heights = elements.map(el => el.offsetHeight); // All reads
elements.forEach((el, i) => {
  el.style.height = heights[i] * 2; // All writes
});

Optimize Rendering:

Reduce Paint & Composite:

Animation Performance

GPU Acceleration:

/* ✅ GPU-accelerated (fast) */
.animated {
  transform: translateX(100px);
  opacity: 0.5;
}

/* ❌ CPU-bound (slow) */
.animated {
  left: 100px;
  width: 300px;
}

Smooth 60fps:

Intersection Observer:

// Efficiently detect when elements enter viewport
const observer = new IntersectionObserver((entries) => {
  entries.forEach(entry => {
    if (entry.isIntersecting) {
      // Element is visible, lazy load or animate
    }
  });
});

React/Framework Optimization

React-specific:

Framework-agnostic:

Network Optimization

Reduce Requests:

Optimize APIs:

Optimize for Slow Connections:

Core Web Vitals Optimization

Largest Contentful Paint (LCP < 2.5s)

First Input Delay (FID < 100ms) / INP (< 200ms)

Cumulative Layout Shift (CLS < 0.1)

/* Reserve space for image */
.image-container {
  aspect-ratio: 16 / 9;
}

Performance Monitoring

Tools to use:

Key metrics:

IMPORTANT: Measure on real devices with real network conditions. Desktop Chrome with fast connection isn't representative.

NEVER:

Verify Improvements

Test that optimizations worked:

Remember: Performance is a feature. Fast experiences feel more responsive, more polished, more professional. Optimize systematically, measure ruthlessly, and prioritize user-perceived performance.


From `polish`

Final quality pass before shipping. Fixes alignment, spacing, consistency, and detail issues that separate good from great.

First: Use the frontend-design skill for design principles and anti-patterns.

Perform a meticulous final pass to catch all the small details that separate good work from great work. The difference between shipped and polished.

Pre-Polish Assessment

Understand the current state and goals:

  1. Review completeness:
  1. Identify polish areas:

CRITICAL: Polish is the last step, not the first. Don't polish work that's not functionally complete.

Polish Systematically

Work through these dimensions methodically:

Visual Alignment & Spacing

Check:

Typography Refinement

Color & Contrast

Interaction States

Every interactive element needs all states:

Missing states create confusion and broken experiences.

Micro-interactions & Transitions

Content & Copy

Icons & Images

Forms & Inputs

Edge Cases & Error States

Responsiveness

Performance

Code Quality

Polish Checklist

Go through systematically:

IMPORTANT: Polish is about details. Zoom in. Squint at it. Use it yourself. The little things add up.

NEVER:

Final Verification

Before marking as done:

Remember: You have impeccable attention to detail and exquisite taste. Polish until it feels effortless, looks intentional, and works flawlessly. Sweat the details - they matter.


From `quieter`

Tone down overly bold or visually aggressive designs. Reduces intensity while maintaining design quality and impact.

Reduce visual intensity in designs that are too bold, aggressive, or overstimulating, creating a more refined and approachable aesthetic without losing effectiveness.

MANDATORY PREPARATION

Context Gathering (Do This First)

You cannot do a great job without having necessary context, such as target audience (critical), desired use-cases (critical), brand personality/tone, and everything else that a great human designer would need as well.

Attempt to gather these from the current thread or codebase.

  1. If you don't find exact information and have to infer from existing design and functionality, you MUST STOP and STOP and call the AskUserQuestionTool to clarify. whether you got it right.
  2. Otherwise, if you can't fully infer or your level of confidence is medium or lower, you MUST STOP and call the AskUserQuestionTool to clarify. clarifying questions first to complete your context.

Do NOT proceed until you have answers. Guessing leads to generic design.

Use frontend-design skill

Use the frontend-design skill for design principles and anti-patterns. Do NOT proceed until it has executed and you know all DO's and DON'Ts.


Assess Current State

Analyze what makes the design feel too intense:

  1. Identify intensity sources:
  1. Understand the context:

If any of these are unclear from the codebase, STOP and call the AskUserQuestionTool to clarify.

CRITICAL: "Quieter" doesn't mean boring or generic. It means refined, sophisticated, and easier on the eyes. Think luxury, not laziness.

Plan Refinement

Create a strategy to reduce intensity while maintaining impact:

IMPORTANT: Great quiet design is harder than great bold design. Subtlety requires precision.

Refine the Design

Systematically reduce intensity across these dimensions:

Color Refinement

Visual Weight Reduction

Simplification

Motion Reduction

Composition Refinement

NEVER:

Verify Quality

Ensure refinement maintains quality:

Remember: Quiet design is confident design. It doesn't need to shout. Less is more, but less is also harder. Refine with precision and maintain intentionality.


From `teach-impeccable`

One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

Gather design context for this project, then persist it for all future sessions.

Step 1: Explore the Codebase

Before asking questions, thoroughly scan the project to discover what you can:

Note what you've learned and what remains unclear.

Step 2: Ask UX-Focused Questions

STOP and call the AskUserQuestionTool to clarify. Focus only on what you couldn't infer from the codebase:

Users & Purpose

Brand & Personality

Aesthetic Preferences

Accessibility & Inclusion

Skip questions where the answer is already clear from the codebase exploration.

Step 3: Write Design Context

Synthesize your findings and the user's answers into a ## Design Context section:

## Design Context

### Users
[Who they are, their context, the job to be done]

### Brand Personality
[Voice, tone, 3-word personality, emotional goals]

### Aesthetic Direction
[Visual tone, references, anti-references, theme]

### Design Principles
[3-5 principles derived from the conversation that should guide all design decisions]

Write this section to CLAUDE.md in the project root. If the file exists, append or update the Design Context section.

Confirm completion and summarize the key design principles that will now guide all future work.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.