ui-ux-master 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +198 -0
  3. package/SKILL.md +717 -0
  4. package/agent-templates/antigravity/AGENTS.append.md +15 -0
  5. package/agent-templates/claude/commands/ui-ux-master.md +25 -0
  6. package/agent-templates/codex/AGENTS.append.md +15 -0
  7. package/agent-templates/cursor/rules/ui-ux-master.mdc +10 -0
  8. package/agent-templates/gemini/GEMINI.append.md +9 -0
  9. package/agent-templates/universal/ui-ux-master-trigger.md +18 -0
  10. package/agent-templates/windsurf/rules/ui-ux-master.md +17 -0
  11. package/bin/ui-ux-master.mjs +192 -0
  12. package/docs/slash-command-compatibility.md +58 -0
  13. package/package.json +55 -0
  14. package/references/accessibility-advanced-patterns.md +43 -0
  15. package/references/competitive-landscape.md +47 -0
  16. package/references/content-design-and-i18n.md +53 -0
  17. package/references/data-visualization-dashboard-ux.md +46 -0
  18. package/references/design-system-playbook.md +133 -0
  19. package/references/ethical-inclusive-design.md +52 -0
  20. package/references/platform-guidelines.md +59 -0
  21. package/references/service-design-journey-mapping.md +39 -0
  22. package/references/top-100-brand-website-analysis.md +302 -0
  23. package/references/ui-ux-complete-checklist.md +214 -0
  24. package/references/ui-ux-curriculum-and-standards.md +40 -0
  25. package/references/ui-ux-frontend-implementation-rules.md +378 -0
  26. package/references/ui-ux-memory-workflow.md +175 -0
  27. package/references/usability-heuristics.md +65 -0
  28. package/references/ux-measurement-quality-gates.md +58 -0
  29. package/references/ux-research-methods.md +99 -0
  30. package/references/wcag-aa-quick-reference.md +85 -0
  31. package/scripts/build_deployment_zip.py +42 -0
  32. package/scripts/validate_skill.py +303 -0
  33. package/templates/component-spec.md +127 -0
  34. package/templates/design-system-spec.md +121 -0
  35. package/templates/top-brand-frontend-spec.md +133 -0
  36. package/templates/ui-ux-audit-report.md +146 -0
  37. package/templates/ui-ux-brief.md +86 -0
  38. package/templates/ui-ux-memory.md +204 -0
  39. package/tests/install-smoke.test.mjs +71 -0
package/SKILL.md ADDED
@@ -0,0 +1,717 @@
1
+ ---
2
+ name: ui-ux-master
3
+ description: "Use when an agent must design, audit, improve, prototype, specify, or hand off any UI/UX work end-to-end. Provides one-stop UX strategy, research, IA, flows, wireframes, visual design, design systems, accessibility, usability testing, conversion, and engineering handoff workflows."
4
+ version: 1.1.0
5
+ author: Hermes Agent
6
+ license: MIT
7
+ platforms: [linux, macos, windows]
8
+ metadata:
9
+ hermes:
10
+ tags: [ui, ux, product-design, accessibility, design-system, prototyping, audit, frontend]
11
+ related_skills: [popular-web-designs, sketch, claude-design, design-md, excalidraw, humanizer, writing-plans]
12
+ ---
13
+
14
+ # UI/UX Master Skill
15
+
16
+ ## Overview
17
+
18
+ This is a one-stop UI/UX skill for agents. Use it whenever the user asks for anything related to user experience, interface design, product design, design systems, wireframes, prototypes, frontend polish, accessibility, conversion, usability, or design critique.
19
+
20
+ The job is not only to make screens look good. The job is to solve the user's goal with a usable, accessible, coherent, implementable interface. Always connect design choices to user needs, product goals, content, system constraints, and measurable outcomes.
21
+
22
+ ## Cross-Agent Activation
23
+
24
+ This skill is opt-in. In Codex, Claude, Windsurf, Antigravity, Gemini, Cursor, and other agents, activate it only when the user includes `/ui-ux-master` in the prompt or invokes the installed native slash command. If the user does not mention `/ui-ux-master`, do not apply this skill automatically.
25
+
26
+ When activated, the user can write naturally, for example: `/ui-ux-master audit this checkout flow` or `/ui-ux-master design a premium SaaS landing page`. Treat the rest of the prompt as the task and follow this SKILL.md plus the referenced files.
27
+
28
+ ## Core Operating Rule
29
+
30
+ Do not jump directly to visuals. Work in this order unless the user explicitly asks for a narrow task:
31
+
32
+ 1. Check for existing UI/UX memory and branding first: `.ui-ux-memory.md`, design tokens, CSS variables, theme files, existing components, fonts, color scheme, and representative screens.
33
+ 2. If memory exists, follow it as the design baseline. If no memory exists, create one for the application using `templates/ui-ux-memory.md` after inspecting existing branding or asking minimum high-value questions for a fresh project.
34
+ 3. Understand the product, users, goal, platform, constraints, evidence available, research confidence, and success metric.
35
+ 4. Define the UX model: audience, jobs-to-be-done, journeys, service touchpoints, information architecture, flows, states, and content.
36
+ 5. Select an appropriate top-brand design method when frontend polish is requested: Product Cinema, Utility Command Center, Editorial Brand World, Enterprise Trust Hub, Card-Based Discovery, Conversion Simplicity, Ecosystem Bundling, Premium Restraint, Playful Familiarity, or Technical Authority.
37
+ 6. Design the interface by extending the existing memory/brand baseline unless the user explicitly asks for a redesign or specific visual modification.
38
+ 7. Validate: consistency with memory, research evidence, heuristics, WCAG, platform conventions, usability risks, i18n, ethics/privacy, edge cases, technical feasibility, metrics, and brand-fit.
39
+ 8. Update the application UI/UX memory with durable design decisions before handoff.
40
+ 9. Hand off: exact specs, tokens, component behavior, copy, states, QA checklist, implementation notes.
41
+
42
+ ## When to Use
43
+
44
+ Use this skill for:
45
+
46
+ - New app, website, dashboard, landing page, SaaS, mobile, admin, ecommerce, onboarding, forms, checkout, settings, profile, search, data tables, empty states, error states, auth, or any other UI.
47
+ - Redesigning, modernizing, polishing, or improving an existing screen.
48
+ - Creating UX plans, design briefs, IA, user flows, wireframes, prototypes, mockups, design systems, or style guides.
49
+ - Reviewing UI/UX quality, accessibility, conversion, usability, responsiveness, or handoff readiness.
50
+ - Turning vague product ideas into design requirements.
51
+ - Translating Figma/design screenshots into implementation-ready frontend instructions.
52
+ - Giving agents a repeatable UI/UX process across all projects.
53
+
54
+ Do not use this skill for pure backend work with no user-facing behavior, unless API decisions affect UX states, latency, data shape, validation, or error handling.
55
+
56
+ ## Required Agent Behavior
57
+
58
+ ### Adaptive Brand and Memory Behavior
59
+
60
+ Every time this skill is used on an application, first load and follow `references/ui-ux-memory-workflow.md`.
61
+
62
+ The goal is consistency across the whole application. Do not create a new visual style each time.
63
+
64
+ Required behavior:
65
+
66
+ - Search for an application UI/UX memory file before designing: `.ui-ux-memory.md`, `docs/ui-ux-memory.md`, `docs/design/ui-ux-memory.md`, or `design/ui-ux-memory.md`.
67
+ - If memory exists, read it and treat it as the source of truth for brand, colors, fonts, layout rhythm, components, states, copy voice, and responsive rules.
68
+ - If memory does not exist, inspect existing branding first: CSS variables, theme files, Tailwind config, design tokens, global styles, components, pages, logo usage, fonts, and screenshots if available.
69
+ - If existing branding is found, create `.ui-ux-memory.md` at the application root using `templates/ui-ux-memory.md` and fill it with discovered stable facts.
70
+ - If the project is fresh and no branding exists, ask only a few high-value questions to understand what the user is building, who it is for, desired personality, colors/fonts/references, and platform. If the user does not answer, proceed with clear assumptions and record them in memory.
71
+ - For later changes, read memory first, preserve the baseline, and update only the requested area unless the user asks for a full redesign/rebrand.
72
+ - After stable UI decisions change, update the memory file so future work stays consistent.
73
+ - Be adaptive: normalize weak/inconsistent branding into a clearer token system; extend strong branding without unnecessary change.
74
+
75
+ Fresh project questions:
76
+
77
+ 1. What are you building and who is it for?
78
+ 2. What is the primary user action or success moment?
79
+ 3. What personality should it have: premium, playful, enterprise, technical, calm, bold, luxury, friendly, etc.?
80
+ 4. Any colors, fonts, logos, competitors, or references to use or avoid?
81
+ 5. Is it a landing page, SaaS app, dashboard, ecommerce, admin, mobile, or another type?
82
+
83
+ Final response must mention whether UI/UX memory was read, created, updated, or unavailable.
84
+
85
+ ### Ask Only High-Value Questions
86
+
87
+ If the user gave enough context, proceed with assumptions and label them. Ask questions only when missing context would materially change the design.
88
+
89
+ High-value questions:
90
+
91
+ - Who is the primary user and what job are they trying to complete?
92
+ - What platform: web, mobile, desktop, kiosk, email, dashboard, embedded widget?
93
+ - What is the primary success metric: activation, conversion, retention, task completion, speed, trust, comprehension?
94
+ - Is there an existing brand, design system, tech stack, or accessibility requirement?
95
+ - Are there competitor or reference products the user likes/dislikes?
96
+
97
+ ### Always Produce Useful Output
98
+
99
+ For design tasks, include concrete artifacts, not just advice:
100
+
101
+ - Design direction and rationale.
102
+ - IA/site map or screen inventory.
103
+ - User flow or task flow.
104
+ - Layout/wireframe description.
105
+ - Component list and states.
106
+ - Copy recommendations.
107
+ - Responsive behavior.
108
+ - Accessibility requirements.
109
+ - Implementation/handoff checklist.
110
+ - Testing and QA checklist.
111
+
112
+ ### Prefer Specifics Over Taste
113
+
114
+ Avoid vague language like "make it modern" or "improve UX" unless followed by exact changes. Say what to change, where, and why.
115
+
116
+ Bad: "Make the hero cleaner."
117
+ Good: "Reduce hero to one H1, one 18px supporting sentence, one primary CTA, one secondary proof link; move feature bullets below fold to reduce decision load."
118
+
119
+ ## Universal UI/UX Workflow
120
+
121
+ ### Phase 1: Product and User Understanding
122
+
123
+ Capture:
124
+
125
+ - Project category and promise.
126
+ - Existing UI/UX memory and branding baseline, if any.
127
+ - Existing colors, fonts, tokens, components, and representative screens.
128
+ - Primary user segments.
129
+ - User jobs-to-be-done.
130
+ - Business goals.
131
+ - Platform and context of use.
132
+ - Constraints: time, tech stack, brand, compliance, device, content, localization.
133
+ - Known data inputs/outputs.
134
+ - Existing analytics or user feedback if available.
135
+
136
+ Deliverable: short design brief.
137
+
138
+ ### Phase 1B: UX Research and Evidence
139
+
140
+ When the task involves discovery, validation, audit, redesign, conversion, or an uncertain product direction, load and apply `references/ux-research-methods.md`.
141
+
142
+ Define:
143
+
144
+ - What is known from evidence.
145
+ - What is assumed.
146
+ - Research method needed, if any.
147
+ - Evidence confidence: high, medium, or low.
148
+ - Risks if the design proceeds without user evidence.
149
+
150
+ Use interviews, surveys, analytics review, support-ticket synthesis, card sorting, tree testing, first-click testing, usability testing, accessibility testing, or heuristic review as appropriate. Do not invent user research; label synthetic personas and journeys as assumptions.
151
+
152
+ Deliverable: research/evidence summary or research plan.
153
+
154
+ ### Phase 2: UX Strategy
155
+
156
+ Define:
157
+
158
+ - Primary and secondary use cases.
159
+ - Main user journey.
160
+ - Decision points and friction points.
161
+ - Prioritized screens.
162
+ - Success metrics and guardrail metrics.
163
+ - Risks and assumptions.
164
+
165
+ Deliverable: UX strategy summary.
166
+
167
+ ### Phase 3: Information Architecture
168
+
169
+ Create:
170
+
171
+ - Navigation model.
172
+ - Page/screen hierarchy.
173
+ - Content grouping.
174
+ - Labels and terminology.
175
+ - Search/filter/sort model where applicable.
176
+ - Permission/role visibility if applicable.
177
+
178
+ Principles:
179
+
180
+ - Use user vocabulary, not internal system vocabulary.
181
+ - Put the most common task in the shortest path.
182
+ - Progressive disclosure beats dense first screens.
183
+ - Group by user intent, not database schema.
184
+
185
+ Deliverable: IA map or screen inventory.
186
+
187
+ ### Phase 4: User Flows
188
+
189
+ For each key task, define:
190
+
191
+ - Entry point.
192
+ - Required user decision.
193
+ - System response.
194
+ - Success path.
195
+ - Empty/error/loading/permission states.
196
+ - Recovery path.
197
+ - Exit/next best action.
198
+
199
+ Deliverable: flow steps or diagram.
200
+
201
+ ### Phase 5: Wireframes and Layout
202
+
203
+ Design screen structure:
204
+
205
+ - Page goal.
206
+ - Primary action.
207
+ - Secondary actions.
208
+ - Visual hierarchy.
209
+ - Grid and spacing.
210
+ - Content modules.
211
+ - Component placement.
212
+ - Above-the-fold priorities.
213
+
214
+ For every screen, specify:
215
+
216
+ - Header/navigation.
217
+ - Main content region.
218
+ - Sidebars/panels if any.
219
+ - Footer or persistent actions.
220
+ - Responsive collapse behavior.
221
+
222
+ Deliverable: wireframe description or quick HTML/ASCII/diagram when useful.
223
+
224
+ ### Phase 6: Visual Design
225
+
226
+ Define visual language:
227
+
228
+ - Brand personality: e.g. calm, premium, playful, technical, enterprise, editorial.
229
+ - Color palette and semantic color roles.
230
+ - Typography scale.
231
+ - Spacing scale.
232
+ - Radius, shadows, borders, elevation.
233
+ - Iconography and illustration style.
234
+ - Motion style.
235
+ - Density: compact, comfortable, spacious.
236
+
237
+ Rules:
238
+
239
+ - Use color semantically, not decoratively only.
240
+ - One dominant visual idea per screen.
241
+ - Establish hierarchy with size, weight, spacing, contrast, and grouping.
242
+ - Maintain consistent component behavior across screens.
243
+
244
+ Deliverable: style direction and design tokens.
245
+
246
+ ### Phase 7: Interaction Design
247
+
248
+ Specify:
249
+
250
+ - Hover, focus, active, selected, disabled states.
251
+ - Loading and skeleton states.
252
+ - Empty states.
253
+ - Error and validation behavior.
254
+ - Confirmation patterns.
255
+ - Undo vs destructive confirmation.
256
+ - Keyboard support.
257
+ - Touch target sizes.
258
+ - Motion duration/easing.
259
+ - Drag/drop, pagination, infinite scroll, modals, drawers, popovers, tabs, accordions behavior.
260
+
261
+ Deliverable: interaction spec.
262
+
263
+ ### Phase 8: Accessibility and Inclusive Design
264
+
265
+ Minimum standard: WCAG 2.2 AA unless user requests stricter.
266
+
267
+ Check:
268
+
269
+ - Semantic structure and headings.
270
+ - Keyboard navigation and focus order.
271
+ - Visible focus indicators.
272
+ - Color contrast.
273
+ - Text resizing/reflow.
274
+ - Touch target sizes.
275
+ - Form labels and error messages.
276
+ - ARIA only when semantic HTML is insufficient.
277
+ - Screen reader names/roles/states.
278
+ - Reduced motion.
279
+ - Language and reading level.
280
+ - Non-color indicators.
281
+
282
+ Deliverable: accessibility checklist and fixes.
283
+
284
+ ### Phase 9: Content Design and Microcopy
285
+
286
+ For every screen, consider:
287
+
288
+ - Clear H1 that matches user intent.
289
+ - CTA labels that say what happens next.
290
+ - Helpful empty states.
291
+ - Recovery-focused error messages.
292
+ - Field labels and helper text.
293
+ - Confirmation copy.
294
+ - Tooltip necessity; avoid hiding critical information in tooltips.
295
+ - Tone consistency.
296
+
297
+ Copy principles:
298
+
299
+ - Be specific, human, and action-oriented.
300
+ - Avoid blame: "We couldn't save changes" instead of "Invalid input".
301
+ - Put the fix in the message.
302
+ - Use verbs for actions.
303
+
304
+ Deliverable: suggested copy blocks.
305
+
306
+ ### Phase 10: Prototype and Handoff
307
+
308
+ Produce implementation-ready handoff:
309
+
310
+ - Screen list.
311
+ - Component inventory.
312
+ - Token values.
313
+ - Layout specs.
314
+ - Responsive rules.
315
+ - State matrix.
316
+ - Accessibility notes.
317
+ - Data requirements.
318
+ - Analytics events.
319
+ - QA checklist.
320
+ - Out-of-scope items.
321
+
322
+ Deliverable: handoff spec developers can implement without guessing.
323
+
324
+ ### Phase 11: Measurement and Quality Gates
325
+
326
+ Before final handoff, load `references/ux-measurement-quality-gates.md` and define measurable acceptance criteria.
327
+
328
+ Include where applicable:
329
+
330
+ - Task success metric.
331
+ - Error-rate or support-contact reduction target.
332
+ - Funnel/conversion event names.
333
+ - Accessibility gate: WCAG 2.2 AA plus keyboard and screen-reader smoke checks.
334
+ - Responsive and platform acceptance criteria.
335
+ - Performance perception/Core Web Vitals expectations for web.
336
+ - Usability validation method: heuristic review, cognitive walkthrough, or user test.
337
+
338
+ Deliverable: quality gate checklist and validation plan.
339
+
340
+ ### Phase 12: Ethics, Privacy, Inclusion, and Localization
341
+
342
+ For any flow involving personal data, money, health, identity, children, AI, permissions, cancellation, ads, subscriptions, or persuasive design, load `references/ethical-inclusive-design.md`. For content-heavy or multi-locale products, load `references/content-design-and-i18n.md`.
343
+
344
+ Check:
345
+
346
+ - No dark patterns or manipulative consent.
347
+ - Sensitive permissions are explained at the moment of need.
348
+ - Users can cancel, undo, delete, export, or recover when appropriate.
349
+ - Content is plain, inclusive, and localizable.
350
+ - RTL, text expansion, dates, numbers, names, addresses, and currency are handled where relevant.
351
+
352
+ Deliverable: ethics/privacy/i18n risk notes and fixes.
353
+
354
+ ## Design Specialties Covered
355
+
356
+ ### Product UX
357
+
358
+ Use for product structure, onboarding, activation, dashboards, retention loops, notification strategy, settings, permissions, collaboration, lifecycle emails, and feature discovery.
359
+
360
+ Key questions:
361
+
362
+ - What is the user's first successful moment?
363
+ - What must they understand before they can act?
364
+ - What can be deferred until later?
365
+ - What feedback confirms progress?
366
+ - What state makes users trust the system?
367
+
368
+ ### SaaS and Dashboard UX
369
+
370
+ Must include:
371
+
372
+ - Role-based navigation.
373
+ - Overview with clear hierarchy: key metrics, alerts, recent activity, next actions.
374
+ - Data table behavior: sorting, filtering, search, bulk actions, column management, pagination, empty/error/loading states.
375
+ - Chart clarity: title, timeframe, units, legends, annotations, comparison, no misleading axes.
376
+ - Drill-down paths.
377
+ - Export/share behavior.
378
+ - Chart selection, axis integrity, units, freshness, uncertainty, annotations, and color-accessible legends.
379
+ - Data-grid keyboard behavior, density controls, saved filters, and stale/partial data states.
380
+ - Use `references/data-visualization-dashboard-ux.md` for analytics-heavy screens.
381
+
382
+ ### Landing Page and Conversion UX
383
+
384
+ Must include:
385
+
386
+ - One clear promise above the fold.
387
+ - Primary CTA repeated at logical points.
388
+ - Social proof near claims.
389
+ - Objection handling.
390
+ - Feature-to-benefit translation.
391
+ - Pricing clarity if applicable.
392
+ - Trust signals.
393
+ - FAQ for high-friction questions.
394
+ - Performance and mobile-first layout.
395
+
396
+ ### Ecommerce UX
397
+
398
+ Must include:
399
+
400
+ - Product discovery: categories, search, filters, sort.
401
+ - Product detail: imagery, price, variants, availability, delivery, returns, reviews, trust.
402
+ - Cart: editable quantities, transparent costs, saved state.
403
+ - Checkout: guest checkout, progress, validation, payment trust, error recovery.
404
+ - Post-purchase confirmation and tracking.
405
+
406
+ ### Forms UX
407
+
408
+ Must include:
409
+
410
+ - Ask only necessary fields.
411
+ - Group fields logically.
412
+ - Label every field.
413
+ - Use inline validation after user input, not before.
414
+ - Preserve entered data on errors.
415
+ - Explain why sensitive data is needed.
416
+ - Provide input masks/examples for formatted data.
417
+ - Make submit state and errors obvious.
418
+
419
+ ### Mobile and Platform-Specific UX
420
+
421
+ Load `references/platform-guidelines.md` for web, iOS, Android/Material, Windows/desktop, kiosk, email, TV, or other platform-specific conventions.
422
+
423
+ Must include:
424
+
425
+ - Thumb-friendly primary actions.
426
+ - 44x44 px minimum touch targets.
427
+ - Avoid hover-only interactions.
428
+ - Handle keyboard viewport changes.
429
+ - Reduce dense tables into cards or priority columns.
430
+ - Use native patterns where appropriate.
431
+ - Offline/poor network states if relevant.
432
+
433
+ ### Design Systems
434
+
435
+ Must include:
436
+
437
+ - Foundations: color, typography, spacing, radius, elevation, iconography, motion.
438
+ - Components: buttons, inputs, selects, checkboxes, radios, switches, tabs, modals, drawers, cards, tables, alerts, toasts, tooltips, navigation, breadcrumbs, pagination.
439
+ - Component anatomy.
440
+ - Variants and sizes.
441
+ - State matrix.
442
+ - Accessibility rules.
443
+ - Usage guidelines and anti-patterns.
444
+ - Token naming and semantic roles.
445
+
446
+ ### Top-Brand Frontend Method
447
+
448
+ When the user asks for a frontend that looks polished, premium, world-class, or similar to top brands, use `references/top-100-brand-website-analysis.md` before designing.
449
+
450
+ Process:
451
+
452
+ 1. Identify the product category and user task.
453
+ 2. Pick one primary method and one or two supporting methods:
454
+ - Product Cinema for premium product reveals.
455
+ - Utility Command Center for task-heavy ecommerce, booking, logistics, dashboards.
456
+ - Editorial Brand World for fashion, sports, beverage, entertainment, luxury campaigns.
457
+ - Enterprise Trust Hub for B2B, finance, healthcare, infrastructure, industrial.
458
+ - Card-Based Discovery for marketplaces, media, travel, catalogs, content libraries.
459
+ - Conversion Simplicity for signup, trial, app download, subscription, fintech flows.
460
+ - Ecosystem Bundling for multi-product suites.
461
+ - Premium Restraint for luxury, high-end finance, premium services.
462
+ - Playful Familiarity for food, toys, family, consumer brands.
463
+ - Technical Authority for AI, developer tools, semiconductors, infrastructure.
464
+ 3. Translate the selected methods into original tokens, layout rules, components, states, and copy.
465
+ 4. Never copy a brand exactly unless the user owns that brand. Avoid logos, proprietary images, exact trademark color combinations, and pixel-for-pixel layouts.
466
+ 5. Preserve accessibility and usability even when using cinematic, luxury, or experimental layouts.
467
+
468
+ Deliverable additions:
469
+
470
+ - Brand-inspiration blend.
471
+ - Selected method rationale.
472
+ - Layout archetype.
473
+ - Token direction.
474
+ - Component behavior.
475
+ - Accessibility safeguards.
476
+ - Anti-copy/IP safety note.
477
+
478
+ ### Frontend Implementation UX
479
+
480
+ When implementing UI, first load and follow `references/ui-ux-frontend-implementation-rules.md`. Treat it as the non-negotiable frontend implementation checklist.
481
+
482
+ Before coding, check project dependencies first. Do not assume Tailwind, shadcn, Material UI, Radix, Framer Motion, Bootstrap, or any other library exists. Use existing component conventions whenever possible.
483
+
484
+ Implementation rules:
485
+
486
+ - Inspect existing stack, components, routes, styles, tokens, and similar screens before editing.
487
+ - Reuse existing components before creating new ones.
488
+ - Preserve routing, state management, data fetching, and styling conventions.
489
+ - Use semantic HTML.
490
+ - Avoid hardcoded magic values when a token system exists.
491
+ - Build all states, not only the happy path.
492
+ - Implement loading, empty, error, success, disabled, permission, hover, focus, active, and responsive states.
493
+ - Test keyboard, focus, screen-reader names, contrast, mobile layout, console errors, and build/lint checks when available.
494
+ - Do not mark frontend work complete until the QA checklist in `references/ui-ux-frontend-implementation-rules.md` passes or any remaining gaps are explicitly reported.
495
+
496
+ ## UI/UX Audit Framework
497
+
498
+ When auditing an existing UI, load `references/usability-heuristics.md`, score each area 1-5, map findings to heuristics where useful, and provide fixes:
499
+
500
+ 1. Clarity: Can users immediately understand what this is and what to do?
501
+ 2. Hierarchy: Is the most important content/action visually dominant?
502
+ 3. Flow: Is the task path short, predictable, and recoverable?
503
+ 4. Content: Is copy specific, useful, and human?
504
+ 5. Accessibility: Does it meet WCAG AA basics?
505
+ 6. Consistency: Are components, spacing, terminology, and states consistent?
506
+ 7. Responsiveness: Does it work well across viewport sizes?
507
+ 8. Feedback: Are loading, success, error, empty, and disabled states clear?
508
+ 9. Trust: Are claims, permissions, costs, risks, and system status transparent?
509
+ 10. Performance perception: Does the UI feel fast and stable?
510
+ 11. Conversion/task success: Does it reduce friction toward the main goal?
511
+ 12. Implementation readiness: Can developers build it from the spec?
512
+ 13. Platform fit: Does it follow platform-native conventions?
513
+ 14. Internationalization/content resilience: Will copy, layout, and formats survive localization?
514
+ 15. Ethics/privacy: Does it avoid dark patterns and explain data/permission use?
515
+ 16. Measurement: Are quality gates and success metrics explicit?
516
+
517
+ Output format:
518
+
519
+ - Executive summary.
520
+ - Severity-ranked findings.
521
+ - Quick wins.
522
+ - Detailed recommendations.
523
+ - Accessibility fixes.
524
+ - Revised screen structure or copy.
525
+ - QA checklist.
526
+
527
+ ## Screen State Checklist
528
+
529
+ Every meaningful screen/component should define:
530
+
531
+ - Default.
532
+ - Loading.
533
+ - Skeleton if loading > 500ms.
534
+ - Empty.
535
+ - Error.
536
+ - Partial data.
537
+ - Permission denied.
538
+ - Offline/network failure if relevant.
539
+ - Disabled.
540
+ - Hover.
541
+ - Focus.
542
+ - Active/pressed.
543
+ - Selected/current.
544
+ - Validation success/error/warning.
545
+ - Success confirmation.
546
+ - Undo/recovery.
547
+
548
+ ## Responsive Breakpoints Guidance
549
+
550
+ Use the project's existing breakpoints if present. If none exist, use:
551
+
552
+ - Small mobile: 320-374 px.
553
+ - Mobile: 375-767 px.
554
+ - Tablet: 768-1023 px.
555
+ - Desktop: 1024-1439 px.
556
+ - Wide: 1440+ px.
557
+
558
+ Responsive decisions:
559
+
560
+ - What reflows?
561
+ - What collapses?
562
+ - What becomes a drawer?
563
+ - What becomes horizontally scrollable only if unavoidable?
564
+ - What content is prioritized or hidden?
565
+ - How do sticky/fixed elements behave?
566
+
567
+ ## Design Token Starter Set
568
+
569
+ Use semantic tokens, not raw color names in component specs.
570
+
571
+ Color roles:
572
+
573
+ - background, surface, surface-raised, surface-muted.
574
+ - text-primary, text-secondary, text-muted, text-inverse.
575
+ - border, border-strong, focus-ring.
576
+ - primary, primary-hover, primary-active, primary-contrast.
577
+ - secondary, secondary-hover, secondary-contrast.
578
+ - success, warning, danger, info and their background/border/text roles.
579
+
580
+ Typography roles:
581
+
582
+ - display, h1, h2, h3, body, body-sm, caption, label, code.
583
+
584
+ Spacing scale:
585
+
586
+ - 0, 2, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 80.
587
+
588
+ Radius:
589
+
590
+ - none, sm, md, lg, xl, full.
591
+
592
+ Elevation:
593
+
594
+ - none, sm, md, lg, overlay.
595
+
596
+ Motion:
597
+
598
+ - fast 120ms, base 180ms, slow 240ms.
599
+ - easing: standard, enter, exit.
600
+
601
+ ## Handoff Output Template
602
+
603
+ When asked to produce a final UI/UX spec, use this structure:
604
+
605
+ 1. Goal and assumptions.
606
+ 2. Users and jobs-to-be-done.
607
+ 3. UX strategy.
608
+ 4. Information architecture.
609
+ 5. Key flows.
610
+ 6. Screen-by-screen specification.
611
+ 7. Components and states.
612
+ 8. Visual direction, top-brand method blend, and tokens.
613
+ 9. Content and microcopy.
614
+ 10. Accessibility requirements.
615
+ 11. Responsive behavior.
616
+ 12. Analytics events.
617
+ 13. Developer implementation notes.
618
+ 14. QA/testing checklist.
619
+ 15. Open questions and risks.
620
+ 16. Anti-copy/IP safety notes when inspired by real brands.
621
+ 17. UI/UX memory status: read, created, updated, or unavailable.
622
+ 18. Durable design decisions added to memory.
623
+
624
+ ## Quality Bar
625
+
626
+ A UI/UX answer is complete only when it handles:
627
+
628
+ - User goal.
629
+ - Business goal.
630
+ - Main flow.
631
+ - Edge cases.
632
+ - Error/loading/empty states.
633
+ - Accessibility.
634
+ - Responsiveness.
635
+ - Content/microcopy.
636
+ - Visual consistency.
637
+ - Implementation feasibility.
638
+ - Verification.
639
+
640
+ ## Common Pitfalls
641
+
642
+ 1. Starting with colors before solving the flow.
643
+ 2. Designing only the happy path.
644
+ 3. Ignoring empty, error, loading, and permission states.
645
+ 4. Hiding critical actions behind icons without labels.
646
+ 5. Using low-contrast text or color-only status indicators.
647
+ 6. Creating new components when the project already has a component system.
648
+ 7. Writing generic copy that does not tell users what happened or what to do next.
649
+ 8. Overloading dashboards with metrics but no next action.
650
+ 9. Making desktop-first layouts that collapse poorly on mobile.
651
+ 10. Treating accessibility as a final pass instead of a design constraint.
652
+ 11. Forgetting keyboard users.
653
+ 12. Overusing modals, carousels, hover-only controls, and vague tooltips.
654
+ 13. Shipping a mockup without developer-ready states and specs.
655
+ 14. Choosing trendy visuals that conflict with the product's trust needs.
656
+ 15. Confusing user personas with stereotypes; focus on tasks, context, and constraints.
657
+
658
+ ## Verification Checklist
659
+
660
+ Before finalizing UI/UX work, verify:
661
+
662
+ - [ ] The primary user goal is explicit.
663
+ - [ ] Existing UI/UX memory was checked or created for the application.
664
+ - [ ] Existing branding, colors, fonts, tokens, and components were inspected before new design decisions.
665
+ - [ ] Research evidence, assumptions, and confidence level are documented.
666
+ - [ ] Platform-specific conventions are followed.
667
+ - [ ] Content design, i18n/localization, and translation risks are considered.
668
+ - [ ] Ethical, privacy, dark-pattern, and inclusive-design risks are checked.
669
+ - [ ] Measurement and quality gates are defined.
670
+ - [ ] The main CTA and next action are obvious.
671
+ - [ ] Screen hierarchy supports the main task.
672
+ - [ ] Navigation labels match user language.
673
+ - [ ] Every interactive element has states.
674
+ - [ ] Loading, empty, error, and success states are specified.
675
+ - [ ] Forms have labels, validation, helper text, and recovery behavior.
676
+ - [ ] Color contrast and focus states meet WCAG AA.
677
+ - [ ] Layout works at mobile, tablet, desktop, and wide sizes.
678
+ - [ ] Copy is specific, concise, and action-oriented.
679
+ - [ ] Components reuse or extend the existing design system.
680
+ - [ ] `references/ui-ux-frontend-implementation-rules.md` has been followed for frontend implementation.
681
+ - [ ] If top-brand inspiration is used, the output blends methods instead of copying a brand exactly.
682
+ - [ ] Developer handoff includes tokens, states, data needs, and QA steps.
683
+ - [ ] Risks, assumptions, and open questions are documented.
684
+
685
+ ## Supporting Files
686
+
687
+ Use the supporting files in this skill folder when useful:
688
+
689
+ - `README.md` — installation, usage, validation, maintenance, and deployment-readiness instructions.
690
+
691
+ - `references/ui-ux-complete-checklist.md` — exhaustive checklist across UX, UI, content, accessibility, states, responsiveness, and handoff.
692
+ - `references/ui-ux-memory-workflow.md` — dynamic project memory workflow for preserving brand consistency across the application.
693
+ - `references/ui-ux-frontend-implementation-rules.md` — mandatory frontend implementation rules so agents do not miss stack inspection, states, accessibility, responsiveness, tokens, QA, or handoff.
694
+ - `references/wcag-aa-quick-reference.md` — practical WCAG 2.2 AA reference for agents.
695
+ - `references/design-system-playbook.md` — how to create or extend a design system.
696
+ - `references/top-100-brand-website-analysis.md` — top global brand website patterns and reusable frontend methods.
697
+ - `references/ux-research-methods.md` — research planning, method selection, evidence confidence, and ethical research rules.
698
+ - `references/usability-heuristics.md` — heuristic review, cognitive rules, and severity scoring.
699
+ - `references/platform-guidelines.md` — web, iOS, Android/Material, Windows, desktop, kiosk, email, TV, and cross-platform rules.
700
+ - `references/content-design-and-i18n.md` — UX writing, microcopy, localization, RTL, and content handoff.
701
+ - `references/ux-measurement-quality-gates.md` — task success metrics, UX measurement, accessibility gates, and definition of done.
702
+ - `references/ethical-inclusive-design.md` — dark-pattern avoidance, privacy UX, inclusive design, high-risk and AI interface rules.
703
+ - `references/service-design-journey-mapping.md` — journey maps, service blueprints, support handoff, and omnichannel checks.
704
+ - `references/data-visualization-dashboard-ux.md` — dashboard, table, chart, data-grid, and alerting UX rules.
705
+ - `references/accessibility-advanced-patterns.md` — complex widget accessibility and screen-reader test matrix.
706
+ - `references/ui-ux-curriculum-and-standards.md` — basic-to-advanced UI/UX curriculum and standards map.
707
+ - `references/competitive-landscape.md` — competitor gaps and strategy for staying ahead.
708
+ - `docs/slash-command-compatibility.md` — cross-agent `/ui-ux-master` trigger compatibility.
709
+ - `agent-templates/` — Claude, Codex, Windsurf, Antigravity, Gemini, Cursor, and universal installer templates.
710
+ - `bin/ui-ux-master.mjs` — npm CLI installer.
711
+ - `templates/ui-ux-brief.md` — intake and requirements template.
712
+ - `templates/ui-ux-memory.md` — project UI/UX memory file template to copy into an application root as `.ui-ux-memory.md`.
713
+ - `templates/ui-ux-audit-report.md` — audit output template.
714
+ - `templates/component-spec.md` — component handoff template.
715
+ - `templates/design-system-spec.md` — design system template.
716
+ - `templates/top-brand-frontend-spec.md` — frontend spec template for top-brand-inspired UI.
717
+ - `scripts/validate_skill.py` — local validation for this skill package.