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.
Files changed (123) hide show
  1. package/AGENTS.md +47 -0
  2. package/CHANGELOG.md +25 -0
  3. package/README.md +78 -0
  4. package/bin/cli.mjs +375 -0
  5. package/knowledge/android/00-apple-to-android-adaption.md +1499 -0
  6. package/knowledge/android/accessibility.md +333 -0
  7. package/knowledge/android/components-controls.md +270 -0
  8. package/knowledge/android/material-design-3.md +174 -0
  9. package/knowledge/android/navigation-patterns.md +212 -0
  10. package/knowledge/apple/00-skill-reading-protocol.md +1296 -0
  11. package/knowledge/apple/Accessibility, Inclusive Design & Human Factors Intelligence.md +735 -0
  12. package/knowledge/apple/Advanced Interaction Patterns, Gestures, Feedback & State Transitions.md +1140 -0
  13. package/knowledge/apple/Advanced Navigation, Information Architecture & Wayfinding.md +551 -0
  14. package/knowledge/apple/Autonomus Ui-UX Improvement Loop.md +611 -0
  15. package/knowledge/apple/Color, Materials, Contrast, Themes & Visual Depth.md +1351 -0
  16. package/knowledge/apple/Content, Copy, Microinteractions & UX Communication.md +642 -0
  17. package/knowledge/apple/Data-Heavy Interfaces, Tables, Lists, Search, Filtering & Large-Scale Content.md +721 -0
  18. package/knowledge/apple/Design Systems & Component Architecture.md +412 -0
  19. package/knowledge/apple/Forms, Input, Data Entry & Validation Intelligence.md +705 -0
  20. package/knowledge/apple/Interaction, State & Edge-Case Engineering.md +491 -0
  21. package/knowledge/apple/Interaction-behaviour.md +1378 -0
  22. package/knowledge/apple/Layout Architecture, Responsive Design & Spatial Systems.md +1365 -0
  23. package/knowledge/apple/MASTER UI-UX ORCHESTRATOR.md +1210 -0
  24. package/knowledge/apple/Navigation Architecture, Routing, Deep Linking & State Restoration.md +1392 -0
  25. package/knowledge/apple/Navigation, Information Architecture & Spatial Hierarchy.md +1613 -0
  26. package/knowledge/apple/Notifications, Permissions, Privacy and Trust.md +1540 -0
  27. package/knowledge/apple/Patterns-templates-composition.md +647 -0
  28. package/knowledge/apple/Performance, Perceived Speed, Motion & Rendering Intelligence.md +855 -0
  29. package/knowledge/apple/Responsive, Adaptive & Cross-Platform UI Intelligence.md +669 -0
  30. package/knowledge/apple/Responsive, Adaptive, Accessible & Performant UI.md +545 -0
  31. package/knowledge/apple/Tablet Adaptation & Multi-Device UX.md +1447 -0
  32. package/knowledge/apple/UI Implementation & Refactoring.md +498 -0
  33. package/knowledge/apple/UI-UX Decision-Making, Prioritization & Trade-offs.md +533 -0
  34. package/knowledge/apple/UI-UX Project Lifecycle & Delivery.md +544 -0
  35. package/knowledge/apple/User Flows & Experience Architecture.md +335 -0
  36. package/knowledge/apple/Visual Design Systems, Theming, Tokens & Brand Intelligence.md +764 -0
  37. package/knowledge/apple/Visual QA, Testing & Validation.md +557 -0
  38. package/knowledge/apple/accessibility-inclusive-interaction.md +1361 -0
  39. package/knowledge/apple/accessibility.md +2162 -0
  40. package/knowledge/apple/color.md +1933 -0
  41. package/knowledge/apple/component-architecture.md +2208 -0
  42. package/knowledge/apple/components.md +2172 -0
  43. package/knowledge/apple/design-decision-framework.md +1883 -0
  44. package/knowledge/apple/design-review-engine.md +2108 -0
  45. package/knowledge/apple/design-tokens.md +1943 -0
  46. package/knowledge/apple/designing-for-ios.md +1680 -0
  47. package/knowledge/apple/gestures, touch behavior, feedback, motion, and micro-interactions.md +1538 -0
  48. package/knowledge/apple/hig-foundation.md +1806 -0
  49. package/knowledge/apple/iconography.md +1903 -0
  50. package/knowledge/apple/interaction-patterns.md +2513 -0
  51. package/knowledge/apple/interaction.md +2141 -0
  52. package/knowledge/apple/ios-alerts-confirmations-destructive-actions.md +1342 -0
  53. package/knowledge/apple/ios-components-and-controls.md +1634 -0
  54. package/knowledge/apple/ios-components-patterns.md +1343 -0
  55. package/knowledge/apple/ios-design-system-architecture.md +1520 -0
  56. package/knowledge/apple/ios-empty-error-offline-states.md +1370 -0
  57. package/knowledge/apple/ios-empty-loading-error-recovery.md +1674 -0
  58. package/knowledge/apple/ios-forms-and-input.md +1458 -0
  59. package/knowledge/apple/ios-forms-input-data-entry.md +1308 -0
  60. package/knowledge/apple/ios-gestures-and-touch.md +1272 -0
  61. package/knowledge/apple/ios-lists-collections-and-data-display.md +1735 -0
  62. package/knowledge/apple/ios-loading-progress-async-states.md +1378 -0
  63. package/knowledge/apple/ios-materials-and-surfaces.md +1543 -0
  64. package/knowledge/apple/ios-motion-animation-transitions.md +1178 -0
  65. package/knowledge/apple/ios-navigation-and-information-architecture.md +1674 -0
  66. package/knowledge/apple/ios-navigation-user-flows-design-architecture.md +1195 -0
  67. package/knowledge/apple/ios-search-and-discovery.md +1456 -0
  68. package/knowledge/apple/ios-search-filtering-discovery.md +1402 -0
  69. package/knowledge/apple/ios-sheets-modals-popovers.md +1205 -0
  70. package/knowledge/apple/ios-typography-icons-visual-hierarchy.md +1431 -0
  71. package/knowledge/apple/layout.md +2331 -0
  72. package/knowledge/apple/media-centric-content-ui-patterns.md +1470 -0
  73. package/knowledge/apple/motion, transitions, physics, and animation language.md +1535 -0
  74. package/knowledge/apple/motion-and-animation.md +1698 -0
  75. package/knowledge/apple/motion.md +2087 -0
  76. package/knowledge/apple/navigation.md +2281 -0
  77. package/knowledge/apple/responsive-adaptive.md +2159 -0
  78. package/knowledge/apple/screen-architecture.md +2067 -0
  79. package/knowledge/apple/typography, Content Hierarchy & Readability.md +1411 -0
  80. package/knowledge/apple/typography.md +1802 -0
  81. package/knowledge/apple/ui-ux inteligence audit.md +106 -0
  82. package/knowledge/apple/visual-design-and-premium-ui.md +1555 -0
  83. package/knowledge/apple/visual-hierarchy-engine.md +1647 -0
  84. package/knowledge/apple/visual-materials.md +2189 -0
  85. package/package.json +53 -0
  86. package/principles/design-principles.md +37 -0
  87. package/principles/platform-principles.md +25 -0
  88. package/principles/ux-principles.md +16 -0
  89. package/references/official-links.md +11 -0
  90. package/skills/accessibility-engineer/SKILL.md +125 -0
  91. package/skills/analytics-engineer/SKILL.md +283 -0
  92. package/skills/animation-engineer/SKILL.md +316 -0
  93. package/skills/component-designer/SKILL.md +75 -0
  94. package/skills/component-library-engineer/SKILL.md +140 -0
  95. package/skills/component-library-ops/SKILL.md +155 -0
  96. package/skills/design-system/SKILL.md +77 -0
  97. package/skills/design-token-engineer/SKILL.md +203 -0
  98. package/skills/design-token-pipeline/SKILL.md +277 -0
  99. package/skills/device-lab-engineer/SKILL.md +387 -0
  100. package/skills/forms-engineer/SKILL.md +79 -0
  101. package/skills/internationalization-engineer/SKILL.md +256 -0
  102. package/skills/motion-designer/SKILL.md +77 -0
  103. package/skills/native-data-fetching/SKILL.md +50 -0
  104. package/skills/navigation-architect/SKILL.md +65 -0
  105. package/skills/performance-engineer/SKILL.md +250 -0
  106. package/skills/platform-specialist/SKILL.md +95 -0
  107. package/skills/pre-release-gate/SKILL.md +75 -0
  108. package/skills/screen-designer/SKILL.md +117 -0
  109. package/skills/security-engineer/SKILL.md +375 -0
  110. package/skills/skills.json +134 -0
  111. package/skills/testing-auditor/SKILL.md +62 -0
  112. package/skills/ui-architect/SKILL.md +86 -0
  113. package/skills/ui-implementer/SKILL.md +188 -0
  114. package/skills/ux-architect/SKILL.md +49 -0
  115. package/skills/ux-auditor/SKILL.md +52 -0
  116. package/skills/visual-auditor/SKILL.md +71 -0
  117. package/templates/audit-report.md +29 -0
  118. package/templates/design-tokens.ts +33 -0
  119. package/templates/screen-spec.md +61 -0
  120. package/workflows/new-screen.md +17 -0
  121. package/workflows/pre-release.md +21 -0
  122. package/workflows/redesign.md +14 -0
  123. package/workflows/ui-audit.md +22 -0
@@ -0,0 +1,545 @@
1
+ ## File 59 — Responsive, Adaptive, Accessible & Performant UI
2
+
3
+ This module combines four concerns that must work together:
4
+
5
+ > **The interface must adapt to its environment, remain usable by different people, and perform well while preserving the intended experience.**
6
+
7
+ The agent should not treat responsive design, accessibility, and performance as late-stage fixes. They are **architectural constraints from the beginning**.
8
+
9
+ ---
10
+
11
+ ### 1. Responsive vs adaptive
12
+
13
+ The agent must distinguish them.
14
+
15
+ **Responsive** means the interface responds fluidly to available space.
16
+
17
+ ```text id="7c8x4m"
18
+ Small width
19
+ ↓
20
+ Layout adjusts
21
+ ↓
22
+ Larger width
23
+ ↓
24
+ Layout expands
25
+ ```
26
+
27
+ **Adaptive** means the experience may intentionally change structure at different environments.
28
+
29
+ ```text id="2u3q1f"
30
+ Phone
31
+ ↓
32
+ Compact navigation
33
+
34
+ Tablet
35
+ ↓
36
+ Expanded navigation
37
+
38
+ Desktop
39
+ ↓
40
+ Persistent navigation + multi-column layout
41
+ ```
42
+
43
+ Don't simply scale everything up.
44
+
45
+ ---
46
+
47
+ ### 2. Environment awareness
48
+
49
+ Before choosing a layout, consider:
50
+
51
+ ```text id="zv8r4u"
52
+ Screen size
53
+ Orientation
54
+ Pixel density
55
+ Safe areas
56
+ Insets
57
+ Input method
58
+ Platform
59
+ OS conventions
60
+ Accessibility settings
61
+ Font scaling
62
+ Performance capability
63
+ Network conditions
64
+ ```
65
+
66
+ For React Native/Expo, this includes differences between:
67
+
68
+ * iOS
69
+ * Android
70
+ * phones
71
+ * tablets
72
+ * foldables
73
+ * different screen densities
74
+ * system navigation areas
75
+ * status/navigation bars
76
+
77
+ ---
78
+
79
+ ### 3. Layout strategy
80
+
81
+ Prefer **constraints and relationships** over hardcoded coordinates.
82
+
83
+ Good:
84
+
85
+ ```text id="3p0c8m"
86
+ Container
87
+ ├── max width
88
+ ├── responsive padding
89
+ ├── flexible content
90
+ └── minimum usable dimensions
91
+ ```
92
+
93
+ Risky:
94
+
95
+ ```text id="7rj2wl"
96
+ left: 37
97
+ top: 142
98
+ width: 317
99
+ ```
100
+
101
+ The agent should ask:
102
+
103
+ > **What relationship determines this dimension?**
104
+
105
+ rather than:
106
+
107
+ > **What number makes it look right on my screen?**
108
+
109
+ ---
110
+
111
+ ### 4. Breakpoint reasoning
112
+
113
+ Breakpoints should be based on **content and interaction requirements**, not arbitrary device names.
114
+
115
+ Instead of:
116
+
117
+ ```text id="q0m5kj"
118
+ iPhone
119
+ Tablet
120
+ Desktop
121
+ ```
122
+
123
+ reason:
124
+
125
+ ```text id="gq8y1n"
126
+ Can content fit?
127
+ ↓
128
+ Can controls remain usable?
129
+ ↓
130
+ Does navigation remain understandable?
131
+ ↓
132
+ Does hierarchy remain intact?
133
+ ↓
134
+ If not → change layout
135
+ ```
136
+
137
+ ---
138
+
139
+ ### 5. Safe-area architecture
140
+
141
+ Mobile interfaces must account for system-controlled regions.
142
+
143
+ Consider:
144
+
145
+ * Status bar
146
+ * Notches
147
+ * Camera cutouts
148
+ * Home indicators
149
+ * Navigation bars
150
+ * Keyboard
151
+ * Bottom sheets
152
+ * Floating controls
153
+
154
+ The agent should prevent important controls from being obscured or placed dangerously close to system boundaries.
155
+
156
+ ---
157
+
158
+ ### 6. Typography adaptability
159
+
160
+ Typography should survive:
161
+
162
+ ```text id="0r7w8g"
163
+ Larger accessibility text
164
+ Longer content
165
+ Localization
166
+ Small screens
167
+ Large screens
168
+ Dynamic content
169
+ ```
170
+
171
+ Never assume:
172
+
173
+ ```text id="n7ak5f"
174
+ "This title will always fit."
175
+ ```
176
+
177
+ Design for overflow:
178
+
179
+ * wrapping
180
+ * truncation
181
+ * scrolling
182
+ * resizing
183
+ * alternative layouts
184
+
185
+ depending on semantic importance.
186
+
187
+ ---
188
+
189
+ ### 7. Accessibility architecture
190
+
191
+ Accessibility should be treated as part of component design.
192
+
193
+ Every meaningful interactive element should consider:
194
+
195
+ ```text id="y7o2g5"
196
+ Name
197
+ Role
198
+ State
199
+ Value
200
+ Action
201
+ Focus
202
+ Order
203
+ ```
204
+
205
+ The agent should inspect:
206
+
207
+ * Screen-reader labels
208
+ * Semantic roles
209
+ * Focus order
210
+ * Touch target size
211
+ * Color contrast
212
+ * Text scaling
213
+ * Reduced motion
214
+ * Keyboard/switch navigation where relevant
215
+ * Non-color communication
216
+ * Error announcements
217
+ * Dynamic content announcements
218
+
219
+ ---
220
+
221
+ ### 8. Don't rely on color alone
222
+
223
+ Bad:
224
+
225
+ ```text id="p8f3nz"
226
+ Red = error
227
+ Green = success
228
+ ```
229
+
230
+ Better:
231
+
232
+ ```text id="h4l6cp"
233
+ Color
234
+ +
235
+ Icon
236
+ +
237
+ Text
238
+ +
239
+ State
240
+ ```
241
+
242
+ The meaning should survive without color perception.
243
+
244
+ ---
245
+
246
+ ### 9. Touch and interaction accessibility
247
+
248
+ Interactive targets need sufficient usable area.
249
+
250
+ The visible icon may be small:
251
+
252
+ ```text id="q6q4bh"
253
+ ●
254
+ ```
255
+
256
+ while its interaction region can be larger:
257
+
258
+ ```text id="l7m1z4"
259
+ ┌───────────────┐
260
+ │ ● │
261
+ └───────────────┘
262
+ ```
263
+
264
+ The agent should optimize for **comfortable interaction**, not merely visual dimensions.
265
+
266
+ ---
267
+
268
+ ### 10. Motion accessibility
269
+
270
+ Animations should communicate:
271
+
272
+ * cause
273
+ * effect
274
+ * continuity
275
+ * hierarchy
276
+ * state changes
277
+
278
+ But the agent must consider reduced-motion preferences.
279
+
280
+ Provide alternatives where appropriate:
281
+
282
+ ```text id="8u6g7a"
283
+ Full motion
284
+ ↓
285
+ Reduced motion
286
+ ↓
287
+ Minimal transition
288
+ ```
289
+
290
+ Avoid animation that creates unnecessary cognitive or physical burden.
291
+
292
+ ---
293
+
294
+ ### 11. Performance-aware UI
295
+
296
+ Visual quality and performance must coexist.
297
+
298
+ The agent should consider:
299
+
300
+ * Render frequency
301
+ * Component hierarchy
302
+ * Large lists
303
+ * Images
304
+ * Animations
305
+ * Memory
306
+ * Network loading
307
+ * State updates
308
+ * Expensive calculations
309
+ * Off-screen content
310
+ * Bundle size
311
+ * Native vs JavaScript work
312
+
313
+ Especially in React Native:
314
+
315
+ > **A beautiful component that causes unnecessary rendering across a large list is still poor UI engineering.**
316
+
317
+ ---
318
+
319
+ ### 12. Large-list architecture
320
+
321
+ For lists containing substantial data:
322
+
323
+ ```text id="c4kqtu"
324
+ Small data
325
+ → normal rendering
326
+
327
+ Large data
328
+ → virtualization
329
+
330
+ Very large data
331
+ → virtualization
332
+ + pagination/incremental loading
333
+ + efficient item rendering
334
+ + stable keys
335
+ + minimized re-renders
336
+ ```
337
+
338
+ The agent should recognize when a simple mapped list is no longer appropriate.
339
+
340
+ ---
341
+
342
+ ### 13. Image performance
343
+
344
+ Images should be evaluated by:
345
+
346
+ ```text id="z3l8ka"
347
+ Dimensions
348
+ Format
349
+ Compression
350
+ Caching
351
+ Loading strategy
352
+ Placeholder
353
+ Memory usage
354
+ Display size
355
+ Network availability
356
+ ```
357
+
358
+ Don't load a 4000px image when the UI displays it at 200px.
359
+
360
+ ---
361
+
362
+ ### 14. Perceived performance
363
+
364
+ Performance isn't only raw execution time.
365
+
366
+ The agent should optimize the user's perception of progress:
367
+
368
+ ```text id="8k2zfp"
369
+ Instant response
370
+ ↓
371
+ Immediate feedback
372
+ ↓
373
+ Skeleton / placeholder
374
+ ↓
375
+ Progressive content
376
+ ↓
377
+ Completion
378
+ ```
379
+
380
+ Avoid unexplained blank screens.
381
+
382
+ ---
383
+
384
+ ### 15. Offline and degraded environments
385
+
386
+ A robust interface should consider:
387
+
388
+ ```text id="aj6u3p"
389
+ Online
390
+ ↓
391
+ Slow network
392
+ ↓
393
+ Intermittent network
394
+ ↓
395
+ Offline
396
+ ↓
397
+ Recovery
398
+ ```
399
+
400
+ The UI should clearly communicate what is:
401
+
402
+ * available
403
+ * unavailable
404
+ * cached
405
+ * pending
406
+ * synchronized
407
+ * failed
408
+
409
+ ---
410
+
411
+ ### 16. Adaptive content density
412
+
413
+ The agent should determine when to reduce or increase information density.
414
+
415
+ For example:
416
+
417
+ ```text id="4t5k2b"
418
+ Small screen
419
+ → prioritize
420
+
421
+ Large screen
422
+ → expose more context
423
+ ```
424
+
425
+ Do not simply shrink everything.
426
+
427
+ Sometimes the correct solution is to **change the information architecture**.
428
+
429
+ ---
430
+
431
+ ### 17. Platform-aware design
432
+
433
+ The agent should respect platform conventions while maintaining product identity.
434
+
435
+ Ask:
436
+
437
+ ```text id="y1k4fw"
438
+ Should this behavior be shared?
439
+ ↓
440
+ Is there a platform convention?
441
+ ↓
442
+ Would violating it confuse users?
443
+ ↓
444
+ Can the product preserve its identity
445
+ without breaking expectations?
446
+ ```
447
+
448
+ Avoid blindly copying platform UI, but don't ignore established interaction conventions either.
449
+
450
+ ---
451
+
452
+ ### 18. Accessibility + performance together
453
+
454
+ These should not become competing objectives.
455
+
456
+ For example:
457
+
458
+ ```text id="v5y4ml"
459
+ Large text
460
+ +
461
+ Responsive layout
462
+ +
463
+ Virtualized content
464
+ +
465
+ Efficient components
466
+ ```
467
+
468
+ is preferable to solving each independently.
469
+
470
+ ---
471
+
472
+ ### 19. Validation matrix
473
+
474
+ Every important screen should be tested across:
475
+
476
+ | Dimension | Examples |
477
+ | ----------- | ------------------------------ |
478
+ | Size | Small → Large |
479
+ | Orientation | Portrait → Landscape |
480
+ | Text | Normal → Large |
481
+ | Content | Short → Long |
482
+ | Data | Empty → Huge |
483
+ | Network | Online → Offline |
484
+ | Input | Touch → Keyboard/accessibility |
485
+ | Motion | Normal → Reduced |
486
+ | Platform | iOS → Android |
487
+ | Performance | High → constrained |
488
+
489
+ ---
490
+
491
+ ### 20. File 59 decision model
492
+
493
+ The agent should reason:
494
+
495
+ ```text id="m5w9x4"
496
+ CONTENT
497
+ ↓
498
+ USER NEEDS
499
+ ↓
500
+ DEVICE / ENVIRONMENT
501
+ ↓
502
+ ACCESSIBILITY
503
+ ↓
504
+ LAYOUT
505
+ ↓
506
+ INTERACTION
507
+ ↓
508
+ PERFORMANCE
509
+ ↓
510
+ VALIDATION
511
+ ```
512
+
513
+ Never:
514
+
515
+ ```text id="k3m8q1"
516
+ Design desktop UI
517
+ ↓
518
+ Shrink it for mobile
519
+ ↓
520
+ Add accessibility
521
+ ↓
522
+ Optimize performance
523
+ ```
524
+
525
+ That is a retrofit workflow.
526
+
527
+ ### File 59 operating principle
528
+
529
+ ```text id="0n3x8p"
530
+ DESIGN FOR REAL CONDITIONS
531
+ ↓
532
+ ADAPT TO SPACE
533
+ ↓
534
+ ADAPT TO PEOPLE
535
+ ↓
536
+ ADAPT TO INPUT
537
+ ↓
538
+ ADAPT TO PLATFORM
539
+ ↓
540
+ OPTIMIZE PERFORMANCE
541
+ ↓
542
+ VALIDATE ACROSS CONDITIONS
543
+ ```
544
+
545
+