agentleFS
terrene-foundationterrene-foundation/pact/.claude/skills/23-uiux-design-principles/SKILL.md

uiux-design-principles

Skill0 starsChanged 8 months agoApache-2.0View on GitHub

Framework-agnostic UI/UX design principles and guidelines for enterprise applications. CRITICAL for ALL frontend work regardless of framework (React, Flutter, etc.). Use when asking about 'design principles', 'layout', 'visual hierarchy', 'information architecture', 'enterprise UX', 'responsive design', 'accessibility', 'design system', 'top-down design', 'component design', 'user experience', or any frontend design decisions.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill PROACTIVELY when:

    line 120

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

UI/UX Design Principles

Framework-agnostic design principles and patterns for building professional enterprise applications. This skill is CRITICAL for all frontend work and should be invoked proactively before any UI implementation.

Overview

This skill provides:

  • Top-down design methodology (layout → features → components → details)
  • Layout and information architecture patterns
  • Visual hierarchy principles (F-pattern, Z-pattern, inverted pyramid)
  • Enterprise UX patterns (action hierarchy, search & filter, bulk actions)
  • Component design guidelines (cards, buttons, empty states, loading states)
  • Responsive design patterns for all breakpoints
  • Accessibility standards (WCAG 2.1 AA compliance)
  • Design system principles and naming conventions
  • Common pitfalls and solutions

Reference Documentation

Core Principles

  • design-principles - Complete UI/UX design principles and guidelines
    • Top-down design methodology
    • Layout & information architecture
    • Visual hierarchy principles
    • Enterprise UX patterns
    • Component design guidelines
    • Responsive design patterns
    • Accessibility standards
    • Design system principles
    • Common pitfalls & solutions

Motion Design

  • motion-design - Animation timing, easing curves, and motion patterns
    • Timing reference (50ms-800ms+ by interaction type)
    • Modern easing curves (CSS + Flutter)
    • Animation categories (entrance, micro-interaction, state, loading, page)
    • GPU-accelerated properties checklist
    • prefers-reduced-motion accessibility (mandatory)
    • Motion anti-patterns and decision framework

Production Hardening

  • production-hardening - Frontend production hardening checklist
    • Text & content resilience (overflow, length extremes, dynamic content)
    • Internationalization (text expansion, formatting, encoding)
    • Error states & recovery (network, HTTP status, form errors)
    • Edge cases & boundary conditions (empty, loading, data volume, concurrency)
    • Accessibility resilience (zoom, keyboard, screen reader, touch)
    • Performance under stress (lazy loading, virtual scrolling, debouncing)

UX Writing & Microcopy

  • ux-writing - Interface text patterns for enterprise applications
    • Button & action label patterns (verb + noun)
    • Error message structure (what + why + fix)
    • Empty state copy (what goes here + why empty + how to fill)
    • Form labels, placeholders, and help text
    • Confirmation dialog structure
    • Toast/banner message patterns
    • Enterprise tone guidelines

Quick Patterns

Top-Down Design Order (ALWAYS Follow This)

LEVEL 1: FRAME/LAYOUT (Highest Priority)
  ↓ Space division, visual hierarchy, information architecture
LEVEL 2: FEATURE COMMUNICATION
  ↓ Discoverability, action hierarchy, navigation
LEVEL 3: COMPONENT EFFECTIVENESS
  ↓ Widget appropriateness, interaction patterns, feedback
LEVEL 4: VISUAL DETAILS (Lowest Priority)
  → Colors, shadows, animations, typography refinements

The 70/30 Rule

  • 70% of space = primary content (what user came to see/do)
  • 30% of space = secondary UI (navigation, filters, chrome)

Action Hierarchy

TypeSizeStylePositionUse
Primary48pxFilledTop-right1 per page (Save, Add)
Secondary40pxOutlinedNear primary2-3 per page (Cancel, Export)
Tertiary32pxTextContextualUnlimited (Edit, View)

View Type Decision

Data TypeRecommended View
Visual content (faces, photos)Grid (2-4 columns)
Structured data (many fields)Table (sortable)
Mobile/narrow screensList (single column)
Mixed visual + dataGrid with Table toggle

CRITICAL Gotchas

RuleWhy
❌ NEVER design bottom-upPerfecting shadows on misplaced cards wastes effort
✅ ALWAYS start with layoutSolve fundamental usability issues first
❌ NEVER hide primary actionsUsers must find main CTA without keyboard shortcuts
✅ ALWAYS have persistent primary CTAVisible button + keyboard shortcut for power users
❌ NEVER use color as sole indicatorAccessibility requires icons + text for status
✅ ALWAYS test on all breakpointsMobile, tablet, desktop must all work

When to Use This Skill

Use this skill PROACTIVELY when:

  • Starting ANY frontend feature or page design
  • Reviewing or auditing existing UI/UX
  • Making layout or spacing decisions
  • Designing navigation or information architecture
  • Creating or extending design systems
  • Implementing responsive layouts
  • Ensuring accessibility compliance
  • Resolving visual design problems

Related Skills

  • 11-frontend-integration - Technical integration patterns
  • 19-flutter-patterns - Flutter-specific implementation
  • 21-enterprise-ai-ux - AI application UX patterns
  • 22-conversation-ux - Conversation UI patterns

Support

For UI/UX design questions, invoke:

  • uiux-designer - Design analysis and recommendations
  • react-specialist - Implementation guidance
  • flutter-specialist - Flutter/Material Design implementation
  • react-specialist - React component implementation

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.