Get the FREE Ultimate OpenClaw Setup Guide →

ui-design

npx machina-cli add skill Roberdan/MyConvergio/ui-design --openclaw
Files (1)
SKILL.md
6.1 KB

UI Design Skill

Workflow from jony-creative-director: UI Design (Apple HIG) + Design-to-Code

Inputs

ParameterRequiredDescription
PlatformYesiOS / macOS / web
App typeYese.g., fintech dashboard, social app, e-commerce
Primary user personaYesDemographics, goals, context
Top 3 user goalsYesPriority tasks
Current pain pointsYesProblems to solve
Tech stack (for code)If codeReact / Vue / Svelte / Next.js / Tailwind / etc.

Phase 1: Hierarchy & Layout

  • Visual hierarchy strategy (what users see 1st, 2nd, 3rd)
  • F-pattern / Z-pattern application
  • Content density decisions (breathing room vs information density)
  • Liquid Glass principles (iOS 26, if applicable)

Phase 2: Platform Patterns

PatternSpecification
NavigationTab bar / Sidebar / Navigation stack
ModalsPresentation guidelines
GesturesSwipe, pinch, pull-to-refresh definitions
Context menusAction sheets, context menus

Phase 3: Screen Designs (8 key screens)

#ScreenPurpose
1Onboarding/WelcomeFirst-run experience
2Home/DashboardPrimary landing
3Primary taskCore user action
4Detail viewContent deep-dive
5Settings/ProfileUser preferences
6Search/FilterContent discovery
7Checkout/CompletionAction flow end
8Error/Empty stateEdge cases

Per Screen Spec

AspectDetail
WireframeLayout structure description
ComponentsEvery element inventory
InteractionsTap, swipe, long-press behaviors
Empty stateWhat shows with no data
Error stateFailure handling UI
LoadingSkeleton screens, indicators

Phase 4: Component Hierarchy

  • Button hierarchy: Primary, Secondary, Tertiary, Destructive
  • Form patterns: validation, error messaging, success states
  • Card layouts with content prioritization
  • Data visualization components (if applicable)

Phase 5: Accessibility (MANDATORY)

RequirementStandard
Dynamic TypeFont scaling to 310%
VoiceOverLabels + hints for every interactive element
Color contrastWCAG AA: 4.5:1 text, 3:1 UI components
Reduce MotionAlternatives for all animations
Focus indicatorsVisible keyboard navigation

Phase 6: Micro-Interactions

AspectSpecification
TransitionsDuration, easing curves (ease-in-out, spring)
HapticsFeedback mapping per interaction type
SoundDesign guidelines (optional)

Phase 7: Responsive Behavior

Breakpoint adaptations (mobile → tablet → desktop), orientation handling, foldable device considerations.

Phase 8: Design-to-Code Translation

Component Architecture

  • Component hierarchy tree
  • Props interface (TypeScript)
  • State management strategy
  • Data flow diagram

Production Code

Per component: complete copy-paste ready code, responsive (mobile-first), ARIA attributes, error boundaries, loading states, animations.

Styling

AspectSpecification
CSS/TailwindClasses mapped to design tokens
CSS variablesTheming support
Dark modeImplementation strategy
BreakpointsResponsive rules
Stateshover / focus / active implementations

Design Token Integration

Map tokens to CSS variables: colors, typography (sizes, weights, line heights), spacing (padding, margin, gap), shadows, border-radius.

Performance

  • Code splitting recommendations
  • Bundle size optimization
  • React.memo / useMemo / useCallback where needed
  • Image optimization (next/image or equivalent)
  • Lazy loading strategy

Testing

TypeScope
UnitReact Testing Library, per component
Visual regressionSnapshot comparison scenarios
Accessibilityaxe-core integration
ResponsiveBreakpoint test cases

Documentation

JSDoc for all props, 3 usage examples per component, Do's and Don'ts.

Include "Designer's Intent" comments explaining why code decisions preserve design vision.

Outputs

DeliverableFormat
Screen designs8 detailed screen specs
Component specsHierarchy + interaction definitions
AccessibilityFull compliance checklist
Production codeCopy-paste components + styles
Design tokensCSS variables / JSON
Test suiteUnit + visual + a11y tests

Related

/design-systems (token foundation) | /design-quality (critique + a11y audit) | /brand-identity (visual language)

Source

git clone https://github.com/Roberdan/MyConvergio/blob/master/.claude/skills/ui-design/SKILL.mdView on GitHub

Overview

Guides UI design aligned with Apple HIG and translates visuals into production-ready code. It covers hierarchy and layout, platform patterns, eight key screens, accessibility, and responsive behavior for iOS, macOS, and web.

How This Skill Works

Begin with inputs (Platform, App type, persona, goals, pain points, and code stack). Apply Phases 1-8 to define hierarchy, patterns, screen specs, component structure, accessibility, micro-interactions, and responsive behavior. Finally, translate designs into code for React, Vue, Svelte, Next.js, Tailwind, and validate across platforms.

When to Use It

  • Starting a new iOS/macOS/web app and aligning UI with Apple HIG
  • Designing a fintech dashboard or e-commerce flow with onboarding, home, task, detail, settings, and checkout screens
  • Ensuring accessibility by including Dynamic Type, VoiceOver labels, color contrast, and motion reduction from the start
  • Translating design specs into production-ready code in your chosen stack (React, Vue, Svelte, Next.js, Tailwind)
  • Building responsive interfaces that adapt from mobile to tablet and desktop

Quick Start

  1. Step 1: Define inputs (Platform, App type, primary persona, top goals, pain points, and tech stack)
  2. Step 2: Complete Phase 1-8 design work to generate screens, components, and accessibility specs
  3. Step 3: Translate designs into code (React/Vue/Svelte/Next.js/Tailwind) and validate across breakpoints

Best Practices

  • Start with Apple HIG alignment for platform patterns
  • Define the 8 screens and per-screen specs before coding
  • Prioritize accessibility across Dynamic Type, VoiceOver, color contrast, and motion
  • Maintain a clear component hierarchy and consistent button patterns
  • Test responsiveness early with mobile, tablet, and desktop breakpoints

Example Use Cases

  • Onboarding/Welcome screen for a fintech app
  • Home/Dashboard for a productivity app
  • Primary task screen for core user action
  • Checkout/Completion flow in an e-commerce app
  • Error/Empty state handling in a content app

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers