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,611 @@
1
+ ## File 62 — Autonomous UI/UX Improvement Loop
2
+
3
+ This is the point where the skill library starts becoming **agentic**.
4
+
5
+ Files 55–61 gave the agent specialized capabilities. File 62 teaches it to **chain those capabilities together, inspect its own work, make improvements, and repeat until the result reaches an acceptable quality threshold.**
6
+
7
+ > **The agent should not wait for the human to identify every problem. It should actively search for problems, prioritize them, improve the implementation, and verify the result.**
8
+
9
+ ---
10
+
11
+ # 1. The autonomous loop
12
+
13
+ The fundamental loop is:
14
+
15
+ ```text
16
+ OBSERVE
17
+ ↓
18
+ UNDERSTAND
19
+ ↓
20
+ AUDIT
21
+ ↓
22
+ DIAGNOSE
23
+ ↓
24
+ PRIORITIZE
25
+ ↓
26
+ PLAN
27
+ ↓
28
+ IMPLEMENT
29
+ ↓
30
+ RUN
31
+ ↓
32
+ TEST
33
+ ↓
34
+ VISUALLY INSPECT
35
+ ↓
36
+ COMPARE
37
+ ↓
38
+ CRITIQUE
39
+ ↓
40
+ REFINE
41
+ ↓
42
+ VERIFY
43
+ ↓
44
+ DONE
45
+ ```
46
+
47
+ If quality is insufficient:
48
+
49
+ ```text
50
+ VERIFY
51
+ ↓
52
+ FAIL
53
+ ↓
54
+ DIAGNOSE AGAIN
55
+ ↓
56
+ REFINE
57
+ ```
58
+
59
+ This creates a controlled improvement loop rather than a one-shot generation process.
60
+
61
+ ---
62
+
63
+ # 2. Start with reconnaissance
64
+
65
+ Before modifying anything, the agent should understand the current system.
66
+
67
+ Inspect:
68
+
69
+ ```text
70
+ Project structure
71
+ Screens
72
+ Routes
73
+ Components
74
+ Design system
75
+ Theme
76
+ State management
77
+ Data flow
78
+ Dependencies
79
+ Platform configuration
80
+ Existing functionality
81
+ Known issues
82
+ ```
83
+
84
+ The agent should build a working mental model before changing code.
85
+
86
+ ---
87
+
88
+ # 3. Establish the baseline
89
+
90
+ Before improvement, record the current condition.
91
+
92
+ ```text
93
+ BASELINE
94
+ ├── Visual quality
95
+ ├── UX quality
96
+ ├── Functional state
97
+ ├── Accessibility
98
+ ├── Performance
99
+ ├── Responsiveness
100
+ ├── Consistency
101
+ └── Known regressions
102
+ ```
103
+
104
+ This prevents:
105
+
106
+ > "I improved it."
107
+
108
+ from becoming an unsupported assumption.
109
+
110
+ ---
111
+
112
+ # 4. Identify opportunities
113
+
114
+ Use File 55's audit system.
115
+
116
+ Search for:
117
+
118
+ ```text
119
+ UX friction
120
+ Visual inconsistencies
121
+ Broken states
122
+ Missing states
123
+ Navigation problems
124
+ Accessibility issues
125
+ Responsive failures
126
+ Performance problems
127
+ Duplicate components
128
+ Technical debt
129
+ Design-system violations
130
+ ```
131
+
132
+ Don't fix everything immediately.
133
+
134
+ ---
135
+
136
+ # 5. Prioritize intelligently
137
+
138
+ The agent should rank findings by:
139
+
140
+ ```text
141
+ Impact
142
+ ×
143
+ Frequency
144
+ ×
145
+ Severity
146
+ ×
147
+ Confidence
148
+ ```
149
+
150
+ Then consider:
151
+
152
+ ```text
153
+ Effort
154
+ Risk
155
+ Dependencies
156
+ ```
157
+
158
+ A useful priority model:
159
+
160
+ ```text
161
+ P0 → Critical blocker
162
+ P1 → Major user/product problem
163
+ P2 → Important improvement
164
+ P3 → Minor improvement
165
+ P4 → Cosmetic / optional
166
+ ```
167
+
168
+ The agent should fix **high-impact problems first**.
169
+
170
+ ---
171
+
172
+ # 6. Form a hypothesis
173
+
174
+ Before making a change:
175
+
176
+ ```text
177
+ Problem
178
+ ↓
179
+ Likely cause
180
+ ↓
181
+ Proposed change
182
+ ↓
183
+ Expected improvement
184
+ ```
185
+
186
+ Example:
187
+
188
+ ```text
189
+ Problem:
190
+ Users miss the primary action.
191
+
192
+ Cause:
193
+ Action has insufficient visual hierarchy.
194
+
195
+ Change:
196
+ Strengthen primary action hierarchy and reduce competing emphasis.
197
+
198
+ Expected result:
199
+ Primary action becomes immediately identifiable.
200
+ ```
201
+
202
+ This prevents random tweaking.
203
+
204
+ ---
205
+
206
+ # 7. Create an implementation plan
207
+
208
+ The agent should determine:
209
+
210
+ ```text
211
+ Files affected
212
+ Components affected
213
+ Tokens affected
214
+ Flows affected
215
+ Dependencies
216
+ Potential regressions
217
+ Testing requirements
218
+ ```
219
+
220
+ Prefer the **smallest safe change that solves the underlying problem**.
221
+
222
+ ---
223
+
224
+ # 8. Implement incrementally
225
+
226
+ Don't make dozens of unrelated changes simultaneously.
227
+
228
+ Use:
229
+
230
+ ```text
231
+ Change
232
+ ↓
233
+ Build
234
+ ↓
235
+ Run
236
+ ↓
237
+ Inspect
238
+ ↓
239
+ Continue
240
+ ```
241
+
242
+ For larger tasks:
243
+
244
+ ```text
245
+ Phase 1 → Foundation
246
+ Phase 2 → Components
247
+ Phase 3 → Screens
248
+ Phase 4 → Flows
249
+ Phase 5 → Polish
250
+ ```
251
+
252
+ This makes failures easier to diagnose.
253
+
254
+ ---
255
+
256
+ # 9. Self-testing
257
+
258
+ After implementation, the agent should actively test its changes.
259
+
260
+ Test:
261
+
262
+ ```text
263
+ Primary path
264
+ Alternative paths
265
+ Error states
266
+ Empty states
267
+ Loading
268
+ Permissions
269
+ Back navigation
270
+ Repeated actions
271
+ Edge cases
272
+ Accessibility
273
+ Responsive behavior
274
+ ```
275
+
276
+ Don't assume existing tests cover the newly changed behavior.
277
+
278
+ ---
279
+
280
+ # 10. Self-critique
281
+
282
+ The agent should deliberately switch perspective.
283
+
284
+ Instead of asking:
285
+
286
+ > "Did I implement the requested change?"
287
+
288
+ ask:
289
+
290
+ > **"If I were the user, what would still feel wrong?"**
291
+
292
+ Then inspect:
293
+
294
+ ```text
295
+ Visual hierarchy
296
+ Spacing
297
+ Typography
298
+ Navigation
299
+ Feedback
300
+ Interaction
301
+ Consistency
302
+ Content
303
+ Accessibility
304
+ Performance
305
+ ```
306
+
307
+ This is critical because implementation success and UX success are different things.
308
+
309
+ ---
310
+
311
+ # 11. Visual self-review
312
+
313
+ After rendering the result:
314
+
315
+ ```text
316
+ Reference
317
+ ↓
318
+ Current implementation
319
+ ↓
320
+ Compare
321
+ ↓
322
+ Find deviations
323
+ ↓
324
+ Classify
325
+ ↓
326
+ Fix
327
+ ```
328
+
329
+ The agent should avoid endless subjective tweaking.
330
+
331
+ Every change should have a reason.
332
+
333
+ ---
334
+
335
+ # 12. Regression protection
336
+
337
+ Every improvement has a potential cost.
338
+
339
+ Before accepting a change:
340
+
341
+ ```text
342
+ What else uses this component?
343
+ What screens depend on it?
344
+ Could this alter navigation?
345
+ Could this change state behavior?
346
+ Could accessibility regress?
347
+ Could performance regress?
348
+ ```
349
+
350
+ Shared-component changes require broader validation.
351
+
352
+ ---
353
+
354
+ # 13. Quality threshold
355
+
356
+ The loop needs an exit condition.
357
+
358
+ For example:
359
+
360
+ ```text
361
+ Functional ✓
362
+ UX ✓
363
+ Visual ✓
364
+ Accessibility ✓
365
+ Responsive ✓
366
+ Performance ✓
367
+ Consistency ✓
368
+ Regression ✓
369
+ ```
370
+
371
+ If the feature meets the defined threshold:
372
+
373
+ ```text
374
+ → COMPLETE
375
+ ```
376
+
377
+ Otherwise:
378
+
379
+ ```text
380
+ → ITERATE
381
+ ```
382
+
383
+ Without an exit condition, autonomous agents can endlessly modify good code.
384
+
385
+ ---
386
+
387
+ # 14. Avoid destructive autonomy
388
+
389
+ Autonomy does **not** mean unrestricted changes.
390
+
391
+ The agent should use progressively stronger actions:
392
+
393
+ ```text
394
+ Low risk
395
+ ↓
396
+ Local UI adjustment
397
+ ↓
398
+ Component adjustment
399
+ ↓
400
+ Shared system adjustment
401
+ ↓
402
+ Architecture change
403
+ ↓
404
+ Dependency change
405
+ ↓
406
+ Data / behavior change
407
+ ```
408
+
409
+ The greater the blast radius, the greater the verification requirement.
410
+
411
+ ---
412
+
413
+ # 15. Know when to stop
414
+
415
+ The agent should stop when:
416
+
417
+ * requirements are satisfied
418
+ * important defects are resolved
419
+ * quality threshold is met
420
+ * further changes produce diminishing returns
421
+ * changes would be subjective rather than evidence-based
422
+ * requested scope has been reached
423
+
424
+ A good agent knows:
425
+
426
+ > **When to improve and when to leave a working system alone.**
427
+
428
+ ---
429
+
430
+ # 16. Human escalation
431
+
432
+ Autonomy should include controlled escalation.
433
+
434
+ Ask the human when:
435
+
436
+ ```text
437
+ Requirements conflict
438
+ OR
439
+ Multiple valid architectures exist
440
+ OR
441
+ A destructive change is required
442
+ OR
443
+ Business intent is unclear
444
+ OR
445
+ The change has major product implications
446
+ ```
447
+
448
+ Don't ask for permission for every small decision.
449
+
450
+ The agent should handle routine decisions autonomously.
451
+
452
+ ---
453
+
454
+ # 17. Improvement journal
455
+
456
+ For complex projects, maintain a lightweight record:
457
+
458
+ ```text
459
+ Issue
460
+ Cause
461
+ Decision
462
+ Change
463
+ Result
464
+ Remaining concerns
465
+ ```
466
+
467
+ This prevents the agent from repeatedly rediscovering the same problem.
468
+
469
+ ---
470
+
471
+ # 18. Continuous improvement
472
+
473
+ The loop should operate at multiple levels.
474
+
475
+ ### Component
476
+
477
+ ```text
478
+ Inspect → Improve → Verify
479
+ ```
480
+
481
+ ### Screen
482
+
483
+ ```text
484
+ Inspect → Improve → Verify
485
+ ```
486
+
487
+ ### Flow
488
+
489
+ ```text
490
+ Inspect → Improve → Verify
491
+ ```
492
+
493
+ ### Application
494
+
495
+ ```text
496
+ Inspect → Improve → Verify
497
+ ```
498
+
499
+ The same reasoning system scales upward.
500
+
501
+ ---
502
+
503
+ # 19. Autonomous workflow
504
+
505
+ The complete operational model:
506
+
507
+ ```text
508
+ ┌──────────────────────────┐
509
+ │ OBSERVE APP │
510
+ └────────────┬─────────────┘
511
+ ↓
512
+ ┌──────────────────────────┐
513
+ │ BUILD BASELINE │
514
+ └────────────┬─────────────┘
515
+ ↓
516
+ ┌──────────────────────────┐
517
+ │ AUDIT SYSTEM │
518
+ └────────────┬─────────────┘
519
+ ↓
520
+ ┌──────────────────────────┐
521
+ │ FIND + PRIORITIZE │
522
+ └────────────┬─────────────┘
523
+ ↓
524
+ ┌──────────────────────────┐
525
+ │ FORM HYPOTHESIS │
526
+ └────────────┬─────────────┘
527
+ ↓
528
+ ┌──────────────────────────┐
529
+ │ PLAN THE CHANGE │
530
+ └────────────┬─────────────┘
531
+ ↓
532
+ ┌──────────────────────────┐
533
+ │ IMPLEMENT │
534
+ └────────────┬─────────────┘
535
+ ↓
536
+ ┌──────────────────────────┐
537
+ │ BUILD + TEST │
538
+ └────────────┬─────────────┘
539
+ ↓
540
+ ┌──────────────────────────┐
541
+ │ VISUAL INSPECTION │
542
+ └────────────┬─────────────┘
543
+ ↓
544
+ ┌────┴────┐
545
+ │ Quality │
546
+ │ Pass? │
547
+ └────┬────┘
548
+ YES│ NO
549
+ │ │
550
+ │ └────→ DIAGNOSE
551
+ ↓
552
+ VERIFY
553
+ ↓
554
+ DONE
555
+ ```
556
+
557
+ ---
558
+
559
+ # 20. Core autonomous rules
560
+
561
+ The agent should follow these rules:
562
+
563
+ ```text
564
+ 1. Inspect before modifying.
565
+ 2. Understand before abstracting.
566
+ 3. Diagnose before fixing.
567
+ 4. Prioritize before implementing.
568
+ 5. Make the smallest safe change.
569
+ 6. Preserve existing functionality.
570
+ 7. Test after meaningful changes.
571
+ 8. Visually inspect the result.
572
+ 9. Check for regressions.
573
+ 10. Never assume success without verification.
574
+ 11. Don't optimize without evidence.
575
+ 12. Don't create abstractions without a reason.
576
+ 13. Escalate genuinely ambiguous decisions.
577
+ 14. Stop when the quality threshold is met.
578
+ ```
579
+
580
+ ---
581
+
582
+ ## File 62 operating principle
583
+
584
+ ```text
585
+ OBSERVE
586
+ ↓
587
+ DIAGNOSE
588
+ ↓
589
+ PRIORITIZE
590
+ ↓
591
+ PLAN
592
+ ↓
593
+ IMPLEMENT
594
+ ↓
595
+ TEST
596
+ ↓
597
+ INSPECT
598
+ ↓
599
+ CRITIQUE
600
+ ↓
601
+ REFINE
602
+ ↓
603
+ VERIFY
604
+ ↓
605
+ REPEAT IF NECESSARY
606
+ ```
607
+
608
+ The critical shift is:
609
+
610
+ > **The agent is no longer merely executing instructions. It is responsible for evaluating the quality of its own work.**
611
+