mobileui-os 1.0.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.
- package/AGENTS.md +47 -0
- package/CHANGELOG.md +25 -0
- package/README.md +78 -0
- package/bin/cli.mjs +375 -0
- package/knowledge/android/00-apple-to-android-adaption.md +1499 -0
- package/knowledge/android/accessibility.md +333 -0
- package/knowledge/android/components-controls.md +270 -0
- package/knowledge/android/material-design-3.md +174 -0
- package/knowledge/android/navigation-patterns.md +212 -0
- package/knowledge/apple/00-skill-reading-protocol.md +1296 -0
- package/knowledge/apple/Accessibility, Inclusive Design & Human Factors Intelligence.md +735 -0
- package/knowledge/apple/Advanced Interaction Patterns, Gestures, Feedback & State Transitions.md +1140 -0
- package/knowledge/apple/Advanced Navigation, Information Architecture & Wayfinding.md +551 -0
- package/knowledge/apple/Autonomus Ui-UX Improvement Loop.md +611 -0
- package/knowledge/apple/Color, Materials, Contrast, Themes & Visual Depth.md +1351 -0
- package/knowledge/apple/Content, Copy, Microinteractions & UX Communication.md +642 -0
- package/knowledge/apple/Data-Heavy Interfaces, Tables, Lists, Search, Filtering & Large-Scale Content.md +721 -0
- package/knowledge/apple/Design Systems & Component Architecture.md +412 -0
- package/knowledge/apple/Forms, Input, Data Entry & Validation Intelligence.md +705 -0
- package/knowledge/apple/Interaction, State & Edge-Case Engineering.md +491 -0
- package/knowledge/apple/Interaction-behaviour.md +1378 -0
- package/knowledge/apple/Layout Architecture, Responsive Design & Spatial Systems.md +1365 -0
- package/knowledge/apple/MASTER UI-UX ORCHESTRATOR.md +1210 -0
- package/knowledge/apple/Navigation Architecture, Routing, Deep Linking & State Restoration.md +1392 -0
- package/knowledge/apple/Navigation, Information Architecture & Spatial Hierarchy.md +1613 -0
- package/knowledge/apple/Notifications, Permissions, Privacy and Trust.md +1540 -0
- package/knowledge/apple/Patterns-templates-composition.md +647 -0
- package/knowledge/apple/Performance, Perceived Speed, Motion & Rendering Intelligence.md +855 -0
- package/knowledge/apple/Responsive, Adaptive & Cross-Platform UI Intelligence.md +669 -0
- package/knowledge/apple/Responsive, Adaptive, Accessible & Performant UI.md +545 -0
- package/knowledge/apple/Tablet Adaptation & Multi-Device UX.md +1447 -0
- package/knowledge/apple/UI Implementation & Refactoring.md +498 -0
- package/knowledge/apple/UI-UX Decision-Making, Prioritization & Trade-offs.md +533 -0
- package/knowledge/apple/UI-UX Project Lifecycle & Delivery.md +544 -0
- package/knowledge/apple/User Flows & Experience Architecture.md +335 -0
- package/knowledge/apple/Visual Design Systems, Theming, Tokens & Brand Intelligence.md +764 -0
- package/knowledge/apple/Visual QA, Testing & Validation.md +557 -0
- package/knowledge/apple/accessibility-inclusive-interaction.md +1361 -0
- package/knowledge/apple/accessibility.md +2162 -0
- package/knowledge/apple/color.md +1933 -0
- package/knowledge/apple/component-architecture.md +2208 -0
- package/knowledge/apple/components.md +2172 -0
- package/knowledge/apple/design-decision-framework.md +1883 -0
- package/knowledge/apple/design-review-engine.md +2108 -0
- package/knowledge/apple/design-tokens.md +1943 -0
- package/knowledge/apple/designing-for-ios.md +1680 -0
- package/knowledge/apple/gestures, touch behavior, feedback, motion, and micro-interactions.md +1538 -0
- package/knowledge/apple/hig-foundation.md +1806 -0
- package/knowledge/apple/iconography.md +1903 -0
- package/knowledge/apple/interaction-patterns.md +2513 -0
- package/knowledge/apple/interaction.md +2141 -0
- package/knowledge/apple/ios-alerts-confirmations-destructive-actions.md +1342 -0
- package/knowledge/apple/ios-components-and-controls.md +1634 -0
- package/knowledge/apple/ios-components-patterns.md +1343 -0
- package/knowledge/apple/ios-design-system-architecture.md +1520 -0
- package/knowledge/apple/ios-empty-error-offline-states.md +1370 -0
- package/knowledge/apple/ios-empty-loading-error-recovery.md +1674 -0
- package/knowledge/apple/ios-forms-and-input.md +1458 -0
- package/knowledge/apple/ios-forms-input-data-entry.md +1308 -0
- package/knowledge/apple/ios-gestures-and-touch.md +1272 -0
- package/knowledge/apple/ios-lists-collections-and-data-display.md +1735 -0
- package/knowledge/apple/ios-loading-progress-async-states.md +1378 -0
- package/knowledge/apple/ios-materials-and-surfaces.md +1543 -0
- package/knowledge/apple/ios-motion-animation-transitions.md +1178 -0
- package/knowledge/apple/ios-navigation-and-information-architecture.md +1674 -0
- package/knowledge/apple/ios-navigation-user-flows-design-architecture.md +1195 -0
- package/knowledge/apple/ios-search-and-discovery.md +1456 -0
- package/knowledge/apple/ios-search-filtering-discovery.md +1402 -0
- package/knowledge/apple/ios-sheets-modals-popovers.md +1205 -0
- package/knowledge/apple/ios-typography-icons-visual-hierarchy.md +1431 -0
- package/knowledge/apple/layout.md +2331 -0
- package/knowledge/apple/media-centric-content-ui-patterns.md +1470 -0
- package/knowledge/apple/motion, transitions, physics, and animation language.md +1535 -0
- package/knowledge/apple/motion-and-animation.md +1698 -0
- package/knowledge/apple/motion.md +2087 -0
- package/knowledge/apple/navigation.md +2281 -0
- package/knowledge/apple/responsive-adaptive.md +2159 -0
- package/knowledge/apple/screen-architecture.md +2067 -0
- package/knowledge/apple/typography, Content Hierarchy & Readability.md +1411 -0
- package/knowledge/apple/typography.md +1802 -0
- package/knowledge/apple/ui-ux inteligence audit.md +106 -0
- package/knowledge/apple/visual-design-and-premium-ui.md +1555 -0
- package/knowledge/apple/visual-hierarchy-engine.md +1647 -0
- package/knowledge/apple/visual-materials.md +2189 -0
- package/package.json +53 -0
- package/principles/design-principles.md +37 -0
- package/principles/platform-principles.md +25 -0
- package/principles/ux-principles.md +16 -0
- package/references/official-links.md +11 -0
- package/skills/accessibility-engineer/SKILL.md +125 -0
- package/skills/analytics-engineer/SKILL.md +283 -0
- package/skills/animation-engineer/SKILL.md +316 -0
- package/skills/component-designer/SKILL.md +75 -0
- package/skills/component-library-engineer/SKILL.md +140 -0
- package/skills/component-library-ops/SKILL.md +155 -0
- package/skills/design-system/SKILL.md +77 -0
- package/skills/design-token-engineer/SKILL.md +203 -0
- package/skills/design-token-pipeline/SKILL.md +277 -0
- package/skills/device-lab-engineer/SKILL.md +387 -0
- package/skills/forms-engineer/SKILL.md +79 -0
- package/skills/internationalization-engineer/SKILL.md +256 -0
- package/skills/motion-designer/SKILL.md +77 -0
- package/skills/native-data-fetching/SKILL.md +50 -0
- package/skills/navigation-architect/SKILL.md +65 -0
- package/skills/performance-engineer/SKILL.md +250 -0
- package/skills/platform-specialist/SKILL.md +95 -0
- package/skills/pre-release-gate/SKILL.md +75 -0
- package/skills/screen-designer/SKILL.md +117 -0
- package/skills/security-engineer/SKILL.md +375 -0
- package/skills/skills.json +134 -0
- package/skills/testing-auditor/SKILL.md +62 -0
- package/skills/ui-architect/SKILL.md +86 -0
- package/skills/ui-implementer/SKILL.md +188 -0
- package/skills/ux-architect/SKILL.md +49 -0
- package/skills/ux-auditor/SKILL.md +52 -0
- package/skills/visual-auditor/SKILL.md +71 -0
- package/templates/audit-report.md +29 -0
- package/templates/design-tokens.ts +33 -0
- package/templates/screen-spec.md +61 -0
- package/workflows/new-screen.md +17 -0
- package/workflows/pre-release.md +21 -0
- package/workflows/redesign.md +14 -0
- package/workflows/ui-audit.md +22 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skills": [
|
|
3
|
+
{
|
|
4
|
+
"name": "accessibility-engineer",
|
|
5
|
+
"description": "Audit and implement accessibility as architecture, not afterthought.",
|
|
6
|
+
"instructions": "accessibility-engineer/SKILL.md"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": "analytics-engineer",
|
|
10
|
+
"description": "Implement privacy-compliant, actionable event tracking with clear taxonomy and funnel analysis.",
|
|
11
|
+
"instructions": "analytics-engineer/SKILL.md"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "animation-engineer",
|
|
15
|
+
"description": "Build performant, platform-native motion: shared elements, layout animations, spring physics, gesture-driven transitions.",
|
|
16
|
+
"instructions": "animation-engineer/SKILL.md"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "component-designer",
|
|
20
|
+
"description": "Create components from repeated semantics, not arbitrary visual fragments.",
|
|
21
|
+
"instructions": "component-designer/SKILL.md"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "component-library-engineer",
|
|
25
|
+
"description": "Operate a reusable component library: versioning, releases, documentation, consumption.",
|
|
26
|
+
"instructions": "component-library-engineer/SKILL.md"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "component-library-ops",
|
|
30
|
+
"description": "Operate a versioned, documented, tested component library for cross-platform consumption.",
|
|
31
|
+
"instructions": "component-library-ops/SKILL.md"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "design-system",
|
|
35
|
+
"description": "Use semantic tokens. Build a shared, versioned, platform-agnostic design system.",
|
|
36
|
+
"instructions": "design-system/SKILL.md"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "design-token-engineer",
|
|
40
|
+
"description": "Build and maintain the token pipeline: Figma → semantic tokens → platform outputs.",
|
|
41
|
+
"instructions": "design-token-engineer/SKILL.md"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "design-token-pipeline",
|
|
45
|
+
"description": "Transform design decisions into platform-agnostic tokens and deliver them to every target.",
|
|
46
|
+
"instructions": "design-token-pipeline/SKILL.md"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "device-lab-engineer",
|
|
50
|
+
"description": "Automate testing across real device matrices: CI integration, flake detection, parallel execution, artifact collection.",
|
|
51
|
+
"instructions": "device-lab-engineer/SKILL.md"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "forms-engineer",
|
|
55
|
+
"description": "Build accessible, platform-native forms with validation, error handling, and input optimization.",
|
|
56
|
+
"instructions": "forms-engineer/SKILL.md"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "internationalization-engineer",
|
|
60
|
+
"description": "Build apps that work globally: RTL, locales, pluralization, formatting, translation workflow.",
|
|
61
|
+
"instructions": "internationalization-engineer/SKILL.md"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "motion-designer",
|
|
65
|
+
"description": "Motion must serve feedback, state change, spatial continuity, hierarchy, or gesture response.",
|
|
66
|
+
"instructions": "motion-designer/SKILL.md"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "native-data-fetching",
|
|
70
|
+
"description": "Implement robust data fetching for mobile: loading, error, empty, offline, and recovery states.",
|
|
71
|
+
"instructions": "native-data-fetching/SKILL.md"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "navigation-architect",
|
|
75
|
+
"description": "Design and implement Expo Router navigation: structure, deep linking, state restoration, platform adaptations.",
|
|
76
|
+
"instructions": "navigation-architect/SKILL.md"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "performance-engineer",
|
|
80
|
+
"description": "Profile, optimize, and enforce performance budgets for mobile apps.",
|
|
81
|
+
"instructions": "performance-engineer/SKILL.md"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "platform-specialist",
|
|
85
|
+
"description": "Determine platform-specific vs. shared implementation for every interaction.",
|
|
86
|
+
"instructions": "platform-specialist/SKILL.md"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "pre-release-gate",
|
|
90
|
+
"description": "Execute the pre-release workflow: automated checks, manual verification, beta distribution, rollout monitoring.",
|
|
91
|
+
"instructions": "pre-release-gate/SKILL.md"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "screen-designer",
|
|
95
|
+
"description": "Translate the screen architecture into a visual composition.",
|
|
96
|
+
"instructions": "screen-designer/SKILL.md"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "security-engineer",
|
|
100
|
+
"description": "Implement defense-in-depth: secure storage, network, authentication, data minimization, compliance.",
|
|
101
|
+
"instructions": "security-engineer/SKILL.md"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "testing-auditor",
|
|
105
|
+
"description": "Automate visual, accessibility, and performance regression gates for pre-release.",
|
|
106
|
+
"instructions": "testing-auditor/SKILL.md"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "ui-architect",
|
|
110
|
+
"description": "Define the structure of a screen or feature before implementation.",
|
|
111
|
+
"instructions": "ui-architect/SKILL.md"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "ui-implementer",
|
|
115
|
+
"description": "Implementation order: tokens → primitives → structure → interaction → states → motion → a11y → platform → polish.",
|
|
116
|
+
"instructions": "ui-implementer/SKILL.md"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "ux-architect",
|
|
120
|
+
"description": "Map the complete user journey from entry to exit and re-entry.",
|
|
121
|
+
"instructions": "ux-architect/SKILL.md"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "ux-auditor",
|
|
125
|
+
"description": "Test the experience against heuristics and user goals.",
|
|
126
|
+
"instructions": "ux-auditor/SKILL.md"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "visual-auditor",
|
|
130
|
+
"description": "Inspect the completed UI for visual and behavioral quality.",
|
|
131
|
+
"instructions": "visual-auditor/SKILL.md"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Testing Auditor
|
|
2
|
+
|
|
3
|
+
Automate visual, accessibility, and performance regression gates for pre-release.
|
|
4
|
+
|
|
5
|
+
## Visual Regression
|
|
6
|
+
|
|
7
|
+
- Tool: Loki, Playwright, or Chromatic with Expo
|
|
8
|
+
- Baseline: Main branch screenshots on iOS/Android simulators
|
|
9
|
+
- Threshold: 0.1% pixel diff for components, 1% for screens
|
|
10
|
+
- Run on: PRs affecting UI, component library changes, design token updates
|
|
11
|
+
- Mask: Dynamic content (timestamps, user avatars, ads)
|
|
12
|
+
|
|
13
|
+
## Accessibility Automation
|
|
14
|
+
|
|
15
|
+
- Tool: jest-axe + react-native-testing-library
|
|
16
|
+
- Run on: Every PR
|
|
17
|
+
- Rules (WCAG 2.1 AA minimum):
|
|
18
|
+
- Color contrast ≥ 4.5:1 (3:1 for large text)
|
|
19
|
+
- Touch targets ≥ 44×44pt (iOS) / 48×48dp (Android)
|
|
20
|
+
- All interactive elements have accessible labels
|
|
21
|
+
- Focus order matches visual order
|
|
22
|
+
- Dynamic type: no clipping at 200% zoom
|
|
23
|
+
- Reduced motion: animations disabled respect preference
|
|
24
|
+
- Screen reader: all states announced (loading, error, success)
|
|
25
|
+
|
|
26
|
+
## Performance Budgets
|
|
27
|
+
|
|
28
|
+
| Metric | Budget | Tool |
|
|
29
|
+
|--------|--------|------|
|
|
30
|
+
| App launch (cold) | < 2s | flipper / Xcode Instruments |
|
|
31
|
+
| Screen transition | < 300ms | react-native-performance |
|
|
32
|
+
| JS bundle (gzipped) | < 200KB | expo bundle analyzer |
|
|
33
|
+
| Frame drops | 0 jank frames | why-did-you-render / reanimated |
|
|
34
|
+
| Memory | < 150MB baseline | Xcode / Android Studio |
|
|
35
|
+
| List scroll (100 items) | 60fps sustained | flash-list / shopify flash-list |
|
|
36
|
+
|
|
37
|
+
## E2E Critical Paths
|
|
38
|
+
|
|
39
|
+
- Onboarding → first value action
|
|
40
|
+
- Auth: login, logout, token refresh, biometric
|
|
41
|
+
- Primary user flow (purchase, booking, publish, etc.)
|
|
42
|
+
- Offline → online sync
|
|
43
|
+
- Deep link → correct screen with context
|
|
44
|
+
|
|
45
|
+
## CI Gate Configuration
|
|
46
|
+
|
|
47
|
+
```yaml
|
|
48
|
+
# Required checks before merge
|
|
49
|
+
- visual-regression: pass
|
|
50
|
+
- a11y-automation: 0 violations
|
|
51
|
+
- performance-budgets: all green
|
|
52
|
+
- e2e-critical-paths: pass
|
|
53
|
+
- typecheck: pass
|
|
54
|
+
- lint: pass
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Reporting
|
|
58
|
+
|
|
59
|
+
- Visual: Side-by-side diff with pixel highlight
|
|
60
|
+
- A11y: Violation list with element selector + WCAG rule
|
|
61
|
+
- Performance: Flamegraph + budget comparison chart
|
|
62
|
+
- All: Post as PR comment with links to artifacts
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# UI Architect
|
|
2
|
+
|
|
3
|
+
Define the structure of a screen or feature before implementation.
|
|
4
|
+
|
|
5
|
+
## Process
|
|
6
|
+
|
|
7
|
+
1. **Identify the user goal** — What job does this screen do?
|
|
8
|
+
2. **Identify actions** — Primary (1), secondary (2–3), contextual (inline), destructive (protected)
|
|
9
|
+
3. **Define information hierarchy** — What must user see first, second, third?
|
|
10
|
+
4. **Decide navigation placement** — Tab, stack, modal, drawer, rail, deep link entry
|
|
11
|
+
5. **Decide persistence** — What stays (nav, player, cart) vs. contextual (toolbar, FAB, sheet)
|
|
12
|
+
6. **Define major regions** — Header, content, footer, sidebar, overlay zones
|
|
13
|
+
7. **Define responsive behavior** — Compact → regular → large; portrait/landscape; split view
|
|
14
|
+
8. **Identify all states** — Loading, empty, content, error, offline, permission, partial, success
|
|
15
|
+
9. **Produce screen specification** — Use `templates/screen-spec.md`
|
|
16
|
+
|
|
17
|
+
## Output Artifacts
|
|
18
|
+
|
|
19
|
+
| Artifact | Format | Purpose |
|
|
20
|
+
|----------|--------|---------|
|
|
21
|
+
| **User goal** | One sentence | North star for decisions |
|
|
22
|
+
| **Hierarchy** | Numbered list | Visual/functional priority |
|
|
23
|
+
| **Screen regions** | Diagram + labels | Header, primary, secondary, persistent, overlay |
|
|
24
|
+
| **Actions** | Table (primary/secondary/destructive) | Visual weight, placement, confirmation |
|
|
25
|
+
| **Navigation** | Flow diagram | Entry, exit, back, deep link, cross-links |
|
|
26
|
+
| **States** | State matrix | Loading/empty/content/error/offline/permission |
|
|
27
|
+
| **Responsive** | Breakpoint table | Compact/regular/large × portrait/landscape |
|
|
28
|
+
| **Implementation notes** | Markdown | Token mapping, component reuse, platform diffs |
|
|
29
|
+
|
|
30
|
+
## Screen Region Template
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
┌─────────────────────────────────────┐
|
|
34
|
+
│ Navigation (persistent) │ ← Tab bar / Nav bar / Rail
|
|
35
|
+
├─────────────────────────────────────┤
|
|
36
|
+
│ Context Header (conditional) │ ← Breadcrumbs, filters, search
|
|
37
|
+
├─────────────────────────────────────┤
|
|
38
|
+
│ Primary Content (scrollable) │ ← List, detail, form, media
|
|
39
|
+
│ ├─ Section 1 │
|
|
40
|
+
│ ├─ Section 2 │
|
|
41
|
+
│ └─ Section 3 │
|
|
42
|
+
├─────────────────────────────────────┤
|
|
43
|
+
│ Persistent Actions (sticky) │ ← FAB, bottom bar, player
|
|
44
|
+
└─────────────────────────────────────┘
|
|
45
|
+
Overlay Zones: Sheets, modals, toasts, dropdowns
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## State Matrix (Required per Screen)
|
|
49
|
+
|
|
50
|
+
| State | Trigger | Visual | Action | Recovery |
|
|
51
|
+
|-------|---------|--------|--------|----------|
|
|
52
|
+
| Loading | Initial fetch | Skeleton (matches layout) | None | Auto → content/error |
|
|
53
|
+
| Empty | No data | Illustration + copy + CTA | Primary action | User creates/imports |
|
|
54
|
+
| Content | Success | Full layout | Interactions | — |
|
|
55
|
+
| Error | Network/server | Inline + banner + toast | Retry + help | One-tap retry |
|
|
56
|
+
| Offline | No network | Cached + banner + sync icon | Queue writes | Auto-sync on reconnect |
|
|
57
|
+
| Permission | Denied | Explanation + settings link | Open settings | Grant → refetch |
|
|
58
|
+
| Partial | Degraded | Available sections + placeholders | Degraded interactions | Graceful |
|
|
59
|
+
|
|
60
|
+
## Responsive Breakpoints
|
|
61
|
+
|
|
62
|
+
| Size Class | Width | Layout Adaptations |
|
|
63
|
+
|------------|-------|-------------------|
|
|
64
|
+
| **Compact** | < 600dp / 375pt | Single column, bottom nav, sheets |
|
|
65
|
+
| **Regular** | 600–840dp / 375–414pt | Two-column (list+detail), rail, dialogs |
|
|
66
|
+
| **Large** | > 840dp / > 414pt | Multi-pane, permanent rail, split view |
|
|
67
|
+
|
|
68
|
+
## Platform Adaptation Notes (Per Screen)
|
|
69
|
+
|
|
70
|
+
| Aspect | iOS | Android |
|
|
71
|
+
|--------|-----|---------|
|
|
72
|
+
| Nav title | Large (scroll) | Collapsing toolbar |
|
|
73
|
+
| Back | Swipe edge | System gesture/button |
|
|
74
|
+
| Primary action | Trailing (nav bar) | FAB / bottom bar |
|
|
75
|
+
| Destructive | Red text button | Red filled button |
|
|
76
|
+
| Sheet | Detents + grabber | Expandable bottom sheet |
|
|
77
|
+
| Selection | Checkmark accessory | Checkbox / chip |
|
|
78
|
+
|
|
79
|
+
## Anti-Patterns
|
|
80
|
+
|
|
81
|
+
- Designing pixels before hierarchy
|
|
82
|
+
- Multiple primary actions
|
|
83
|
+
- Persistent UI that should be contextual
|
|
84
|
+
- Missing states (especially empty/error/offline)
|
|
85
|
+
- Desktop layout scaled to mobile
|
|
86
|
+
- No deep link / state restoration plan
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# UI Implementer
|
|
2
|
+
|
|
3
|
+
Implementation order: tokens → primitives → structure → interaction → states → motion → a11y → platform → polish.
|
|
4
|
+
|
|
5
|
+
## Phase 1: Semantic Tokens
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
// 1. Import tokens (generated from design-token-pipeline)
|
|
9
|
+
import { tokens } from '@myorg/design-tokens';
|
|
10
|
+
|
|
11
|
+
// 2. Use exclusively — no raw values
|
|
12
|
+
const styles = StyleSheet.create({
|
|
13
|
+
container: {
|
|
14
|
+
padding: tokens.spacing.md, // not 16
|
|
15
|
+
backgroundColor: tokens.color.surface, // not '#fff'
|
|
16
|
+
borderRadius: tokens.radius.md, // not 12
|
|
17
|
+
},
|
|
18
|
+
title: {
|
|
19
|
+
fontSize: tokens.typography.heading.fontSize,
|
|
20
|
+
lineHeight: tokens.typography.heading.lineHeight,
|
|
21
|
+
fontWeight: tokens.typography.heading.fontWeight,
|
|
22
|
+
color: tokens.color.onSurface,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Phase 2: Component Primitives
|
|
28
|
+
|
|
29
|
+
Build once, reuse everywhere:
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
// primitives/Box.tsx — layout primitive
|
|
33
|
+
export const Box = ({ children, ...props }: ViewProps) => (
|
|
34
|
+
<View {...props} style={{ flex: 1 }} />
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
// primitives/Text.tsx — typography primitive
|
|
38
|
+
export const Text = ({ variant = 'body', children, ...props }: TextProps) => (
|
|
39
|
+
<Text {...props} style={[tokens.typography[variant], props.style]} />
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
// primitives/Pressable.tsx — interaction primitive
|
|
43
|
+
export const Pressable = ({ onPress, children, ...props }: PressableProps) => (
|
|
44
|
+
<Pressable
|
|
45
|
+
onPress={onPress}
|
|
46
|
+
accessibilityRole="button"
|
|
47
|
+
android_ripple={{ color: tokens.color.primaryAction }}
|
|
48
|
+
{...props}
|
|
49
|
+
>
|
|
50
|
+
{children}
|
|
51
|
+
</Pressable>
|
|
52
|
+
);
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Phase 3: Screen Structure
|
|
56
|
+
|
|
57
|
+
```tsx
|
|
58
|
+
// screens/HomeScreen.tsx
|
|
59
|
+
export default function HomeScreen() {
|
|
60
|
+
return (
|
|
61
|
+
<SafeAreaView style={styles.container}>
|
|
62
|
+
<Header title="Home" />
|
|
63
|
+
<FlashList
|
|
64
|
+
data={items}
|
|
65
|
+
renderItem={({ item }) => <ItemCard item={item} />}
|
|
66
|
+
estimatedItemSize={120}
|
|
67
|
+
keyExtractor={item => item.id}
|
|
68
|
+
contentContainerStyle={styles.listContent}
|
|
69
|
+
/>
|
|
70
|
+
<StickyFAB onPress={createNew} />
|
|
71
|
+
</SafeAreaView>
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Phase 4: Interaction
|
|
77
|
+
|
|
78
|
+
- **Tap**: `Pressable` with native ripple (Android) / haptic (iOS)
|
|
79
|
+
- **Long press**: Context menu / drag start
|
|
80
|
+
- **Swipe**: `FlashList` swipe actions / `GestureHandler`
|
|
81
|
+
- **Drag**: Reanimated `PanGestureHandler` + `useSharedValue`
|
|
82
|
+
- **Keyboard**: `KeyboardAvoidingView` (iOS) / `windowSoftInputMode` (Android)
|
|
83
|
+
- **Pull-to-refresh**: `RefreshControl` / `SwipeRefreshLayout`
|
|
84
|
+
|
|
85
|
+
## Phase 5: States (All Required)
|
|
86
|
+
|
|
87
|
+
```tsx
|
|
88
|
+
// Every data-driven screen
|
|
89
|
+
const { data, isLoading, isError, isEmpty, isOffline } = useQuery(...);
|
|
90
|
+
|
|
91
|
+
if (isLoading) return <SkeletonList />;
|
|
92
|
+
if (isError) return <ErrorState message={error.message} onRetry={refetch} />;
|
|
93
|
+
if (isEmpty) return <EmptyState illustration="inbox" action={<Button>Create</Button>} />;
|
|
94
|
+
if (isOffline) return <OfflineBanner onDismiss={hide} />;
|
|
95
|
+
|
|
96
|
+
return <Content data={data} />;
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### State Components (Reusable)
|
|
100
|
+
|
|
101
|
+
| Component | Purpose |
|
|
102
|
+
|-----------|---------|
|
|
103
|
+
| `SkeletonList` | Matches content structure (not generic cards) |
|
|
104
|
+
| `ErrorState` | Inline + banner + retry button |
|
|
105
|
+
| `EmptyState` | Illustration + copy + primary CTA |
|
|
106
|
+
| `OfflineBanner` | Persistent, dismissible, shows sync status |
|
|
107
|
+
| `PermissionGate` | Explains why + settings link |
|
|
108
|
+
|
|
109
|
+
## Phase 6: Motion
|
|
110
|
+
|
|
111
|
+
```tsx
|
|
112
|
+
// Layout animation (Reanimated 3)
|
|
113
|
+
import { Layout } from 'react-native-reanimated';
|
|
114
|
+
|
|
115
|
+
<Layout animation={withSpring({}, springs.gentle)}>
|
|
116
|
+
<Animated.View style={style} />
|
|
117
|
+
</Layout>
|
|
118
|
+
|
|
119
|
+
// Shared element (Expo Router)
|
|
120
|
+
<SharedTransition>
|
|
121
|
+
<SharedTransition.Item id={`item-${item.id}`}>
|
|
122
|
+
<Card item={item} />
|
|
123
|
+
</SharedTransition.Item>
|
|
124
|
+
</SharedTransition>
|
|
125
|
+
|
|
126
|
+
// Reduced motion
|
|
127
|
+
const reduceMotion = useReducedMotion();
|
|
128
|
+
const springConfig = reduceMotion ? { duration: 0 } : springs.gentle;
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Phase 7: Accessibility
|
|
132
|
+
|
|
133
|
+
```tsx
|
|
134
|
+
// Every interactive
|
|
135
|
+
<Pressable
|
|
136
|
+
accessibilityRole="button"
|
|
137
|
+
accessibilityLabel={label}
|
|
138
|
+
accessibilityHint={hint}
|
|
139
|
+
accessibilityState={{ disabled, selected, busy: loading }}
|
|
140
|
+
onPress={handler}
|
|
141
|
+
/>
|
|
142
|
+
|
|
143
|
+
// Live regions
|
|
144
|
+
<Text accessibilityLiveRegion="polite">{statusMessage}</Text>
|
|
145
|
+
<Text accessibilityLiveRegion="assertive">{errorMessage}</Text>
|
|
146
|
+
|
|
147
|
+
// Dynamic type
|
|
148
|
+
<Text style={{ fontSize: 16 }} adjustsFontSizeToFit={false} />
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Phase 8: Platform Adaptation
|
|
152
|
+
|
|
153
|
+
```tsx
|
|
154
|
+
// Platform-specific files
|
|
155
|
+
// Button.ios.tsx → SF Symbols, haptic, large title aware
|
|
156
|
+
// Button.android.tsx → Material ripple, predictive back
|
|
157
|
+
|
|
158
|
+
export const Button = Platform.select({
|
|
159
|
+
ios: ButtonIOS,
|
|
160
|
+
android: ButtonAndroid,
|
|
161
|
+
default: ButtonBase,
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
// Or Expo UI native
|
|
165
|
+
import { Host, Button } from '@expo/ui';
|
|
166
|
+
<Host><Button variant="filled" /></Host>
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
## Phase 9: Polish
|
|
170
|
+
|
|
171
|
+
- [ ] Visual regression test (Loki/Playwright)
|
|
172
|
+
- [ ] Performance profile (Flipper, why-did-you-render)
|
|
173
|
+
- [ ] Device test matrix (iOS 16/17/18, Android 12–14, SE/Pro/Tablet)
|
|
174
|
+
- [ ] Dynamic type 200%, reduced motion, RTL, dark mode
|
|
175
|
+
- [ ] VoiceOver / TalkBack full path
|
|
176
|
+
- [ ] Offline → online transition
|
|
177
|
+
- [ ] Deep link cold/warm start
|
|
178
|
+
|
|
179
|
+
## Anti-Patterns
|
|
180
|
+
|
|
181
|
+
- Hardcoded values when tokens exist
|
|
182
|
+
- Inline styles in render (use `StyleSheet.create`)
|
|
183
|
+
- Missing states (loading/error/empty/offline)
|
|
184
|
+
- `FlatList` without `getItemLayout` / `FlashList`
|
|
185
|
+
- No `React.memo` on list items
|
|
186
|
+
- Platform detection scattered (use primitives)
|
|
187
|
+
- Animation without `useNativeDriver` / native driver
|
|
188
|
+
- Accessibility as afterthought
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# UX Architect
|
|
2
|
+
|
|
3
|
+
Map the complete user journey from entry to exit and re-entry.
|
|
4
|
+
|
|
5
|
+
## Journey Stages
|
|
6
|
+
|
|
7
|
+
| Stage | Questions | Deliverable |
|
|
8
|
+
|-------|-----------|-------------|
|
|
9
|
+
| **Entry** | How does user arrive? (launch, deep link, notification, share) | Entry matrix |
|
|
10
|
+
| **Discovery** | Can user find primary action? Secondary? Help? | Hierarchy map |
|
|
11
|
+
| **Action** | Steps to complete? Input preserved? Shortcuts? | Flow diagram |
|
|
12
|
+
| **Feedback** | Immediate? Progress? Outcome clear? | Feedback spec |
|
|
13
|
+
| **Completion** | Success state? Next steps? Share? | Completion screen |
|
|
14
|
+
| **Cancellation** | Easy to abandon? Data preserved? | Cancel flow |
|
|
15
|
+
| **Undo** | Reversible actions have window? Toast + action? | Undo pattern |
|
|
16
|
+
| **Failure** | Error explains what/why/how? Retry? | Error spec |
|
|
17
|
+
| **Retry** | One-tap? Offline queue? Background sync? | Retry pattern |
|
|
18
|
+
| **Exit/Re-entry** | State preserved? Deep link restores? | Restoration spec |
|
|
19
|
+
|
|
20
|
+
## Evaluation Criteria
|
|
21
|
+
|
|
22
|
+
- **Shortest understandable path** — No hidden controls; progressive disclosure
|
|
23
|
+
- **Context preservation** — User never loses "where am I?" or "what was I doing?"
|
|
24
|
+
- **Error as conversation** — Not "Error 500" but "Couldn't save. Tap to retry."
|
|
25
|
+
- **Destructive protection** — Confirm → undo window → archive/trash
|
|
26
|
+
- **Offline-first** — Read cached, queue writes, sync transparently
|
|
27
|
+
- **Accessibility as default** — Not a separate flow
|
|
28
|
+
|
|
29
|
+
## Flow Artifacts
|
|
30
|
+
|
|
31
|
+
1. **Journey map** — Visual timeline with emotions, pain points, opportunities
|
|
32
|
+
2. **Flow diagram** — Decision tree with all branches (success, error, cancel, back)
|
|
33
|
+
3. **State transition table** — Screen × state (loading/empty/content/error/offline)
|
|
34
|
+
4. **Entry/exit matrix** — Deep links, notifications, share targets, restoration
|
|
35
|
+
|
|
36
|
+
## Anti-Patterns
|
|
37
|
+
|
|
38
|
+
- Dead ends (no back, no action)
|
|
39
|
+
- Modal stacks >2 deep
|
|
40
|
+
- Losing input on error/back
|
|
41
|
+
- Generic errors without recovery
|
|
42
|
+
- Onboarding that blocks value
|
|
43
|
+
- Settings required before first use
|
|
44
|
+
- No undo for destructive actions
|
|
45
|
+
- Deep link drops to home
|
|
46
|
+
|
|
47
|
+
## Output
|
|
48
|
+
|
|
49
|
+
Journey specification + flow diagrams + state matrix + entry/exit matrix + accessibility notes.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# UX Auditor
|
|
2
|
+
|
|
3
|
+
Test the experience against heuristics and user goals.
|
|
4
|
+
|
|
5
|
+
## Heuristic Evaluation
|
|
6
|
+
|
|
7
|
+
- [ ] **Visibility of system status** — Loading, progress, sync, errors communicated
|
|
8
|
+
- [ ] **Match between system and real world** — Language, concepts, conventions familiar
|
|
9
|
+
- [ ] **User control and freedom** — Undo, cancel, back, escape hatches
|
|
10
|
+
- [ ] **Consistency and standards** — Same action = same result; platform conventions
|
|
11
|
+
- [ ] **Error prevention** — Confirm destructive; validate inline; smart defaults
|
|
12
|
+
- [ ] **Recognition over recall** — Context visible; no memory burden
|
|
13
|
+
- [ ] **Flexibility and efficiency** — Shortcuts for experts; progressive disclosure
|
|
14
|
+
- [ ] **Aesthetic and minimalist design** — Every element earns its place
|
|
15
|
+
- [ ] **Help users recognize, diagnose, recover** — Error = problem + impact + fix
|
|
16
|
+
- [ ] **Help and documentation** — Contextual, searchable, task-oriented
|
|
17
|
+
|
|
18
|
+
## Task-Based Audit
|
|
19
|
+
|
|
20
|
+
For each critical user flow:
|
|
21
|
+
|
|
22
|
+
1. **Entry** — Can user start without friction? (auth, onboarding, deep link)
|
|
23
|
+
2. **Discovery** — Primary action obvious? Secondary findable?
|
|
24
|
+
3. **Action** — Steps minimized? Input preserved on error?
|
|
25
|
+
4. **Feedback** — Immediate? Clear outcome? Progress for long ops?
|
|
26
|
+
5. **Completion** — Success state? Next steps clear?
|
|
27
|
+
6. **Cancellation** — Easy to abandon? Data preserved?
|
|
28
|
+
7. **Undo** — Reversible actions have undo window?
|
|
29
|
+
8. **Failure** — Error explains what, why, how to fix?
|
|
30
|
+
9. **Retry** — One-tap retry? Offline queue?
|
|
31
|
+
10. **Exit/Re-entry** — State preserved? Deep link restores context?
|
|
32
|
+
|
|
33
|
+
## Accessibility Gate
|
|
34
|
+
|
|
35
|
+
- [ ] VoiceOver (iOS) / TalkBack (Android): full critical path
|
|
36
|
+
- [ ] Touch targets ≥44pt/48dp
|
|
37
|
+
- [ ] Contrast AA minimum
|
|
38
|
+
- [ ] Dynamic type 200% no clipping
|
|
39
|
+
- [ ] Reduced motion respected
|
|
40
|
+
- [ ] Focus order logical
|
|
41
|
+
- [ ] Color-independent meaning
|
|
42
|
+
|
|
43
|
+
## Severity
|
|
44
|
+
|
|
45
|
+
- **CRITICAL** — Blocks task, data loss, accessibility failure
|
|
46
|
+
- **HIGH** — Major friction, confusion, platform violation
|
|
47
|
+
- **MEDIUM** — Inconsistency, missing polish, minor friction
|
|
48
|
+
- **LOW** — Enhancement, delight opportunity
|
|
49
|
+
|
|
50
|
+
## Output
|
|
51
|
+
|
|
52
|
+
Audit report (use `templates/audit-report.md`) with prioritized fixes + re-audit checklist.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Visual Auditor
|
|
2
|
+
|
|
3
|
+
Inspect the completed UI for visual and behavioral quality.
|
|
4
|
+
|
|
5
|
+
## Inspection Checklist
|
|
6
|
+
|
|
7
|
+
### Hierarchy & Layout
|
|
8
|
+
- [ ] Primary action visually dominant (size, color, placement)
|
|
9
|
+
- [ ] Secondary actions visually quiet
|
|
10
|
+
- [ ] Information grouping follows proximity/similarity
|
|
11
|
+
- [ ] No competing focal points
|
|
12
|
+
- [ ] Reading order matches visual order (LTR/RTL)
|
|
13
|
+
|
|
14
|
+
### Alignment & Spacing
|
|
15
|
+
- [ ] 4pt/8pt baseline grid respected
|
|
16
|
+
- [ ] Optical alignment for type (not just mathematical)
|
|
17
|
+
- [ ] Consistent spacing tokens (no 13px, 17px, etc.)
|
|
18
|
+
- [ ] Equal padding in symmetric containers
|
|
19
|
+
- [ ] Safe area respected (notches, home indicator, system bars)
|
|
20
|
+
|
|
21
|
+
### Typography
|
|
22
|
+
- [ ] Token scale used (display/heading/subheading/body/caption)
|
|
23
|
+
- [ ] Line height ≥1.4 for body, ≥1.2 for headings
|
|
24
|
+
- [ ] Letter spacing per token (tight for display, normal for body)
|
|
25
|
+
- [ ] Dynamic type: no clipping at 200% (AX3)
|
|
26
|
+
- [ ] Font weight available for all sizes
|
|
27
|
+
|
|
28
|
+
### Color & Contrast
|
|
29
|
+
- [ ] Text: ≥4.5:1 (AA) / ≥7:1 (AAA)
|
|
30
|
+
- [ ] UI elements (borders, icons): ≥3:1
|
|
31
|
+
- [ ] Color not sole meaning carrier (icons, labels, patterns)
|
|
32
|
+
- [ ] Dark mode: surfaces elevated, not inverted
|
|
33
|
+
- [ ] Semantic tokens used (no raw hex)
|
|
34
|
+
|
|
35
|
+
### Controls & Components
|
|
36
|
+
- [ ] Touch targets ≥44×44pt / 48×48dp
|
|
37
|
+
- [ ] Consistent radii per token (sm/md/lg/xl/pill)
|
|
38
|
+
- [ ] Consistent control heights (40dp button, 56dp input, etc.)
|
|
39
|
+
- [ ] Icon sizes from token scale
|
|
40
|
+
- [ ] No "card soup" — containers only when semantically needed
|
|
41
|
+
|
|
42
|
+
### Visual Noise
|
|
43
|
+
- [ ] No unnecessary shadows, gradients, borders, dividers
|
|
44
|
+
- [ ] No decorative badges, dots, avatars without purpose
|
|
45
|
+
- [ ] Whitespace used for grouping, not filled
|
|
46
|
+
- [ ] Animation only for feedback/state/continuity
|
|
47
|
+
|
|
48
|
+
### Edge Cases
|
|
49
|
+
- [ ] Long text: truncation + tooltip / expand
|
|
50
|
+
- [ ] Empty states: illustrated, explanatory, actionable
|
|
51
|
+
- [ ] Error states: inline + toast + color + icon
|
|
52
|
+
- [ ] Loading: skeleton matches final layout
|
|
53
|
+
- [ ] Clipped/overflowing content (safe area, keyboard, dynamic type)
|
|
54
|
+
|
|
55
|
+
### Platform Conventions
|
|
56
|
+
- [ ] iOS: SF Symbols, large titles, swipe back, sheets, haptics
|
|
57
|
+
- [ ] Android: Material icons, bottom nav/rail, back gesture, ripple
|
|
58
|
+
- [ ] No iOS patterns on Android or vice versa
|
|
59
|
+
|
|
60
|
+
## Severity
|
|
61
|
+
|
|
62
|
+
| Level | Definition | Example |
|
|
63
|
+
|-------|------------|---------|
|
|
64
|
+
| **CRITICAL** | Blocks use, causes major confusion, accessibility failure | Unreadable text, invisible target, data loss |
|
|
65
|
+
| **HIGH** | Materially harms usability or polish | Misaligned grid, missing state, platform violation |
|
|
66
|
+
| **MEDIUM** | Noticeable inconsistency | 2px spacing drift, wrong radius token |
|
|
67
|
+
| **LOW** | Optional refinement | Optical kerning tweak, micro-polish |
|
|
68
|
+
|
|
69
|
+
## Output
|
|
70
|
+
|
|
71
|
+
Audit report (`templates/audit-report.md`) with annotated screenshots + token mapping deviations + fix priority.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# UI/UX Audit
|
|
2
|
+
|
|
3
|
+
## Screen
|
|
4
|
+
|
|
5
|
+
## Overall score
|
|
6
|
+
|
|
7
|
+
| Area | Score | Severity | Notes |
|
|
8
|
+
|---|---:|---|---|
|
|
9
|
+
| Hierarchy | /10 | | |
|
|
10
|
+
| Spacing | /10 | | |
|
|
11
|
+
| Typography | /10 | | |
|
|
12
|
+
| Interaction | /10 | | |
|
|
13
|
+
| Accessibility | /10 | | |
|
|
14
|
+
| Platform fit | /10 | | |
|
|
15
|
+
| States | /10 | | |
|
|
16
|
+
| Motion | /10 | | |
|
|
17
|
+
| Polish | /10 | | |
|
|
18
|
+
|
|
19
|
+
## Critical
|
|
20
|
+
|
|
21
|
+
## High
|
|
22
|
+
|
|
23
|
+
## Medium
|
|
24
|
+
|
|
25
|
+
## Low
|
|
26
|
+
|
|
27
|
+
## Recommended fixes
|
|
28
|
+
|
|
29
|
+
## Re-audit result
|