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,557 @@
1
+ ## File 61 — Visual QA, Testing & Validation
2
+
3
+ File 60 taught the agent **how to build and refactor the interface**.
4
+
5
+ File 61 teaches it how to answer the much harder question:
6
+
7
+ > **“How do we know the implementation is actually good?”**
8
+
9
+ The agent must never treat successful compilation as successful UI.
10
+
11
+ The validation loop becomes:
12
+
13
+ ```text
14
+ DESIGN
15
+ ↓
16
+ IMPLEMENT
17
+ ↓
18
+ RUN
19
+ ↓
20
+ OBSERVE
21
+ ↓
22
+ COMPARE
23
+ ↓
24
+ TEST
25
+ ↓
26
+ IDENTIFY DEVIATIONS
27
+ ↓
28
+ FIX
29
+ ↓
30
+ RE-VERIFY
31
+ ```
32
+
33
+ ---
34
+
35
+ ### 1. Validation layers
36
+
37
+ Every implementation should be validated across multiple dimensions:
38
+
39
+ ```text
40
+ Visual
41
+ UX
42
+ Interaction
43
+ Functional
44
+ Accessibility
45
+ Responsive
46
+ Performance
47
+ Consistency
48
+ Reliability
49
+ ```
50
+
51
+ A screen can be visually perfect and still fail functionally.
52
+
53
+ ---
54
+
55
+ ### 2. Visual QA
56
+
57
+ Compare the implementation against the intended design.
58
+
59
+ Inspect:
60
+
61
+ * Layout
62
+ * Alignment
63
+ * Spacing
64
+ * Typography
65
+ * Colors
66
+ * Icons
67
+ * Images
68
+ * Borders
69
+ * Radius
70
+ * Shadows
71
+ * Component dimensions
72
+ * Hierarchy
73
+ * Density
74
+ * Safe areas
75
+
76
+ The agent should identify **specific deviations**, not vague impressions.
77
+
78
+ Bad:
79
+
80
+ > “It doesn't look quite right.”
81
+
82
+ Better:
83
+
84
+ > “The secondary action sits 12px closer to the primary action than the established spacing token, reducing visual separation between action groups.”
85
+
86
+ ---
87
+
88
+ ### 3. Visual hierarchy validation
89
+
90
+ Ask:
91
+
92
+ ```text
93
+ What should users notice first?
94
+ ↓
95
+ Do they?
96
+ ↓
97
+ What should they notice second?
98
+ ↓
99
+ Does the visual hierarchy support that?
100
+ ```
101
+
102
+ Check:
103
+
104
+ * Primary action prominence
105
+ * Heading hierarchy
106
+ * Section grouping
107
+ * Content density
108
+ * Contrast
109
+ * Whitespace
110
+ * Focal points
111
+
112
+ ---
113
+
114
+ ### 4. Design-system compliance
115
+
116
+ Every screen should be compared against File 56's system.
117
+
118
+ Look for:
119
+
120
+ ```text
121
+ Wrong token
122
+ Wrong component
123
+ Wrong spacing
124
+ Wrong typography
125
+ Wrong radius
126
+ Wrong color
127
+ Wrong icon
128
+ Wrong interaction pattern
129
+ Duplicate pattern
130
+ ```
131
+
132
+ The agent should prefer correcting the implementation **to the system** rather than creating another exception.
133
+
134
+ ---
135
+
136
+ ### 5. Functional validation
137
+
138
+ Verify that the UI actually performs its intended job.
139
+
140
+ Test:
141
+
142
+ ```text
143
+ Navigation
144
+ Inputs
145
+ Buttons
146
+ Forms
147
+ Search
148
+ Filters
149
+ Sorting
150
+ CRUD operations
151
+ Persistence
152
+ Authentication
153
+ Permissions
154
+ Network operations
155
+ Media actions
156
+ Deep links
157
+ Back behavior
158
+ ```
159
+
160
+ A button that looks correct but doesn't perform its action is a failure.
161
+
162
+ ---
163
+
164
+ ### 6. Interaction validation
165
+
166
+ Test actual user behavior:
167
+
168
+ ```text
169
+ Tap
170
+ Double tap
171
+ Long press
172
+ Swipe
173
+ Scroll
174
+ Drag
175
+ Focus
176
+ Keyboard
177
+ Submit
178
+ Cancel
179
+ Back
180
+ Retry
181
+ Dismiss
182
+ ```
183
+
184
+ Also test accidental behavior:
185
+
186
+ ```text
187
+ Rapid taps
188
+ Repeated submissions
189
+ Unexpected navigation
190
+ Interrupted operations
191
+ ```
192
+
193
+ ---
194
+
195
+ ### 7. State validation
196
+
197
+ Every important state should be intentionally tested.
198
+
199
+ ```text id="y2v8pq"
200
+ Initial
201
+ Loading
202
+ Success
203
+ Empty
204
+ Error
205
+ Disabled
206
+ Selected
207
+ Processing
208
+ Offline
209
+ Permission denied
210
+ Cancelled
211
+ Interrupted
212
+ Recovered
213
+ ```
214
+
215
+ The agent should verify that transitions between states are understandable.
216
+
217
+ ---
218
+
219
+ ### 8. Flow validation
220
+
221
+ Don't test screens independently.
222
+
223
+ Test complete journeys:
224
+
225
+ ```text id="j6x9ab"
226
+ Entry
227
+ ↓
228
+ Action
229
+ ↓
230
+ Input
231
+ ↓
232
+ Processing
233
+ ↓
234
+ Result
235
+ ↓
236
+ Next action
237
+ ```
238
+
239
+ Verify that:
240
+
241
+ * context is preserved
242
+ * navigation is correct
243
+ * state survives transitions
244
+ * back works
245
+ * errors recover
246
+ * completion is obvious
247
+
248
+ This connects directly to File 57.
249
+
250
+ ---
251
+
252
+ ### 9. Responsive validation
253
+
254
+ Test meaningful environmental variations:
255
+
256
+ ```text id="z4s7cm"
257
+ Small screen
258
+ Medium screen
259
+ Large screen
260
+
261
+ Portrait
262
+ Landscape
263
+
264
+ Short content
265
+ Long content
266
+
267
+ Small dataset
268
+ Large dataset
269
+ ```
270
+
271
+ Check for:
272
+
273
+ * overflow
274
+ * clipping
275
+ * broken alignment
276
+ * unusable controls
277
+ * collapsed hierarchy
278
+ * excessive whitespace
279
+ * overlapping elements
280
+
281
+ ---
282
+
283
+ ### 10. Accessibility validation
284
+
285
+ Check:
286
+
287
+ ```text id="e2m5px"
288
+ Labels
289
+ Roles
290
+ Focus order
291
+ Touch targets
292
+ Contrast
293
+ Text scaling
294
+ Screen readers
295
+ Keyboard/accessibility navigation
296
+ Reduced motion
297
+ Error communication
298
+ Non-color indicators
299
+ ```
300
+
301
+ Accessibility testing should happen **during validation**, not only before release.
302
+
303
+ ---
304
+
305
+ ### 11. Performance validation
306
+
307
+ Look for:
308
+
309
+ * slow screen transitions
310
+ * dropped frames
311
+ * sluggish gestures
312
+ * delayed input
313
+ * excessive loading
314
+ * unnecessary rendering
315
+ * memory-heavy images
316
+ * large list problems
317
+ * animation bottlenecks
318
+
319
+ The agent should distinguish:
320
+
321
+ ```text
322
+ Perceived performance
323
+ vs.
324
+ Actual performance
325
+ ```
326
+
327
+ and investigate both.
328
+
329
+ ---
330
+
331
+ ### 12. Regression testing
332
+
333
+ After fixing one issue:
334
+
335
+ ```text id="4j8k2m"
336
+ Fix
337
+ ↓
338
+ Re-test affected feature
339
+ ↓
340
+ Re-test related components
341
+ ↓
342
+ Check neighboring screens
343
+ ↓
344
+ Check shared components
345
+ ```
346
+
347
+ A shared component change can affect dozens of screens.
348
+
349
+ ---
350
+
351
+ ### 13. Evidence-based QA
352
+
353
+ The agent should collect evidence wherever possible:
354
+
355
+ ```text id="g6v1zx"
356
+ Expected
357
+ Actual
358
+ Difference
359
+ Impact
360
+ Severity
361
+ Root cause
362
+ Fix
363
+ Verification
364
+ ```
365
+
366
+ This produces reproducible QA rather than subjective opinions.
367
+
368
+ ---
369
+
370
+ ### 14. Severity classification
371
+
372
+ Use a consistent priority system.
373
+
374
+ **Critical**
375
+
376
+ * Feature unusable
377
+ * Data loss
378
+ * App crash
379
+ * Security/trust failure
380
+
381
+ **High**
382
+
383
+ * Major workflow blocked
384
+ * Significant accessibility failure
385
+ * Important navigation broken
386
+
387
+ **Medium**
388
+
389
+ * Noticeable UX problem
390
+ * Inconsistent component
391
+ * Significant visual deviation
392
+
393
+ **Low**
394
+
395
+ * Minor spacing
396
+ * Small alignment issue
397
+ * Cosmetic inconsistency
398
+
399
+ This prevents teams from spending an hour fixing a 2px issue while a broken workflow remains.
400
+
401
+ ---
402
+
403
+ ### 15. Visual comparison workflow
404
+
405
+ For screenshot-based validation:
406
+
407
+ ```text id="c8v4rm"
408
+ Reference
409
+ ↓
410
+ Implementation screenshot
411
+ ↓
412
+ Compare
413
+ ↓
414
+ Identify regions of difference
415
+ ↓
416
+ Classify difference
417
+ ↓
418
+ Determine root cause
419
+ ↓
420
+ Fix
421
+ ↓
422
+ Capture again
423
+ ```
424
+
425
+ The agent should compare **structure and intent**, not blindly chase pixel-perfect similarity.
426
+
427
+ ---
428
+
429
+ ### 16. QA report structure
430
+
431
+ For every meaningful finding:
432
+
433
+ ```text id="t8p2kw"
434
+ ISSUE
435
+ Where it occurs
436
+
437
+ OBSERVATION
438
+ What is actually happening
439
+
440
+ EXPECTED
441
+ What should happen
442
+
443
+ IMPACT
444
+ Why it matters
445
+
446
+ SEVERITY
447
+ Critical / High / Medium / Low
448
+
449
+ ROOT CAUSE
450
+ Why it happened
451
+
452
+ RECOMMENDATION
453
+ What should change
454
+
455
+ VERIFICATION
456
+ How to confirm the fix
457
+ ```
458
+
459
+ This creates a useful bridge between AI analysis and engineering work.
460
+
461
+ ---
462
+
463
+ ### 17. Validation gates
464
+
465
+ Before declaring a feature complete:
466
+
467
+ ```text id="s7q1nd"
468
+ Gate 1 → Functional
469
+ ↓
470
+ Gate 2 → Interaction
471
+ ↓
472
+ Gate 3 → State handling
473
+ ↓
474
+ Gate 4 → Visual
475
+ ↓
476
+ Gate 5 → Accessibility
477
+ ↓
478
+ Gate 6 → Responsive
479
+ ↓
480
+ Gate 7 → Performance
481
+ ↓
482
+ Gate 8 → Regression
483
+ ↓
484
+ DONE
485
+ ```
486
+
487
+ A failure at an important gate should send the feature back into the improvement cycle.
488
+
489
+ ---
490
+
491
+ ### 18. Definition of done
492
+
493
+ A UI feature is **not done** because:
494
+
495
+ ```text
496
+ ✓ Code compiles
497
+ ```
498
+
499
+ It is done when:
500
+
501
+ ```text
502
+ ✓ Works
503
+ ✓ Looks correct
504
+ ✓ Behaves correctly
505
+ ✓ Handles important states
506
+ ✓ Handles failure
507
+ ✓ Is accessible
508
+ ✓ Adapts appropriately
509
+ ✓ Performs acceptably
510
+ ✓ Matches the design system
511
+ ✓ Doesn't break existing functionality
512
+ ✓ Has been verified
513
+ ```
514
+
515
+ ---
516
+
517
+ ## File 61 operating principle
518
+
519
+ ```text
520
+ IMPLEMENTATION
521
+ ↓
522
+ OBSERVE
523
+ ↓
524
+ COMPARE AGAINST INTENT
525
+ ↓
526
+ TEST REAL INTERACTIONS
527
+ ↓
528
+ CHECK STATES + EDGE CASES
529
+ ↓
530
+ CHECK ACCESSIBILITY
531
+ ↓
532
+ CHECK RESPONSIVENESS
533
+ ↓
534
+ CHECK PERFORMANCE
535
+ ↓
536
+ CHECK REGRESSIONS
537
+ ↓
538
+ FIX
539
+ ↓
540
+ VERIFY AGAIN
541
+ ```
542
+
543
+ The fundamental mindset is:
544
+
545
+ > **Never trust the implementation merely because it renders. Observe it, challenge it, test it, compare it, and verify it.**
546
+
547
+ Our architecture is now:
548
+
549
+ **55 — Diagnose**
550
+ **56 — Systemize**
551
+ **57 — Architect flows**
552
+ **58 — Engineer behavior**
553
+ **59 — Adapt & optimize**
554
+ **60 — Implement & refactor**
555
+ **61 — Verify & validate**
556
+
557
+ Next is **62 — Autonomous UI/UX Improvement Loop** — the first module that starts turning all of these capabilities into a genuinely **agentic workflow**.