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,1806 @@
1
+
2
+ ````md
3
+ # Apple HIG Foundations
4
+
5
+ > Agent knowledge module for applying Apple's Human Interface Guidelines as
6
+ > design intelligence rather than visual imitation.
7
+
8
+ Version: 1.0
9
+ Platform: Apple / iOS-first
10
+ Role: Foundation knowledge
11
+ Authority: Apple Human Interface Guidelines
12
+ Use with: MobileUI-OS
13
+
14
+ ---
15
+
16
+ # 1. PURPOSE OF THIS MODULE
17
+
18
+ This module teaches an agent how to reason about Apple's Human Interface
19
+ Guidelines (HIG) when designing or reviewing a mobile interface.
20
+
21
+ The goal is NOT to make an application look like an Apple application.
22
+
23
+ The goal is to understand the design decisions that make Apple's interfaces:
24
+
25
+ - understandable
26
+ - familiar
27
+ - focused
28
+ - adaptive
29
+ - accessible
30
+ - responsive
31
+ - trustworthy
32
+ - precise
33
+ - polished
34
+ - pleasant to use
35
+
36
+ Apple's principles should therefore be treated as a decision-making framework,
37
+ not as a collection of visual rules.
38
+
39
+ When a product has its own identity, preserve that identity while applying
40
+ the underlying principles.
41
+
42
+ ---
43
+
44
+ # 2. SOURCE AUTHORITY
45
+
46
+ Primary reference:
47
+
48
+ Apple Human Interface Guidelines
49
+
50
+ https://developer.apple.com/design/human-interface-guidelines/
51
+
52
+ Relevant Apple areas include:
53
+
54
+ - Design principles
55
+ - Designing for iOS
56
+ - Foundations
57
+ - Patterns
58
+ - Components
59
+ - Inputs
60
+ - Accessibility
61
+ - Layout
62
+ - Typography
63
+ - Color
64
+ - Materials
65
+ - Motion
66
+ - Icons
67
+ - SF Symbols
68
+ - Dark Mode
69
+ - Inclusion
70
+ - Privacy
71
+ - Writing
72
+
73
+ When this document conflicts with current Apple guidance, current official
74
+ Apple guidance takes precedence.
75
+
76
+ Do not assume that an old Apple convention is still current.
77
+
78
+ ---
79
+
80
+ # 3. CORE DESIGN PHILOSOPHY
81
+
82
+ Apple's current design principles are:
83
+
84
+ 1. Purpose
85
+ 2. Agency
86
+ 3. Responsibility
87
+ 4. Familiarity
88
+ 5. Flexibility
89
+ 6. Simplicity
90
+ 7. Craft
91
+ 8. Delight
92
+
93
+ These principles are not independent checkboxes.
94
+
95
+ They frequently compete.
96
+
97
+ For example:
98
+
99
+ - simplicity can conflict with discoverability
100
+ - familiarity can conflict with innovation
101
+ - flexibility can conflict with simplicity
102
+ - delight can conflict with task efficiency
103
+ - customization can conflict with consistency
104
+
105
+ The agent must therefore reason about tradeoffs.
106
+
107
+ Never apply a principle mechanically.
108
+
109
+ ---
110
+
111
+ # 4. PRINCIPLE: PURPOSE
112
+
113
+ ## Meaning
114
+
115
+ Design starts with intention.
116
+
117
+ The interface should serve the actual reason the product exists.
118
+
119
+ The most important product capabilities should receive the most attention.
120
+
121
+ ## Agent rule
122
+
123
+ Before designing a screen, identify:
124
+
125
+ - What is the user trying to accomplish?
126
+ - Why does this screen exist?
127
+ - What is the most valuable action?
128
+ - What information is necessary?
129
+ - What information is secondary?
130
+ - What can be removed?
131
+
132
+ Do not begin by choosing colors, cards, gradients, icons, or animations.
133
+
134
+ Begin with purpose.
135
+
136
+ ## Design behavior
137
+
138
+ Primary product capabilities should receive:
139
+
140
+ - stronger hierarchy
141
+ - easier access
142
+ - clearer labeling
143
+ - appropriate screen space
144
+ - better feedback
145
+ - fewer unnecessary steps
146
+
147
+ Secondary functionality should not compete with the primary task.
148
+
149
+ ## DO
150
+
151
+ - prioritize the primary user task
152
+ - reduce distractions
153
+ - make important functionality easy to reach
154
+ - design around real user goals
155
+
156
+ ## DON'T
157
+
158
+ - expose every feature simultaneously
159
+ - fill empty space with unnecessary controls
160
+ - make decorative elements compete with content
161
+ - design screens around components instead of user goals
162
+
163
+ ## Agent questions
164
+
165
+ Ask internally:
166
+
167
+ > What is this screen for?
168
+
169
+ > What should the user accomplish here?
170
+
171
+ > If the user only has five seconds, what must they understand?
172
+
173
+ > Which element deserves the strongest hierarchy?
174
+
175
+ ---
176
+
177
+ # 5. PRINCIPLE: AGENCY
178
+
179
+ ## Meaning
180
+
181
+ People should feel in control of the software.
182
+
183
+ The interface should help users accomplish tasks without unnecessarily
184
+ restricting them.
185
+
186
+ Users should understand:
187
+
188
+ - what is happening
189
+ - what they can do
190
+ - what just happened
191
+ - how to recover from mistakes
192
+
193
+ ## Agent rule
194
+
195
+ Design interactions so that users can:
196
+
197
+ - explore
198
+ - cancel
199
+ - undo
200
+ - retry
201
+ - navigate backward
202
+ - recover from errors
203
+ - understand system state
204
+
205
+ Avoid trapping users inside unnecessary flows.
206
+
207
+ ## Design behavior
208
+
209
+ Prefer:
210
+
211
+ - reversible actions
212
+ - clear feedback
213
+ - predictable navigation
214
+ - visible system status
215
+ - contextual controls
216
+ - graceful cancellation
217
+
218
+ ## DO
219
+
220
+ - provide undo where appropriate
221
+ - preserve user input during recoverable errors
222
+ - make cancellation obvious
223
+ - provide feedback after meaningful actions
224
+ - allow users to leave unnecessary flows
225
+
226
+ ## DON'T
227
+
228
+ - create dead ends
229
+ - silently perform destructive operations
230
+ - hide important system activity
231
+ - force users through unnecessary onboarding
232
+ - make recovery difficult
233
+
234
+ ## Example
235
+
236
+ Bad:
237
+
238
+ User deletes an item.
239
+
240
+ Nothing happens visually.
241
+
242
+ Better:
243
+
244
+ User deletes an item.
245
+
246
+ The item disappears.
247
+
248
+ A brief confirmation appears.
249
+
250
+ An Undo action is available.
251
+
252
+ The user can recover immediately.
253
+
254
+ ---
255
+
256
+ # 6. PRINCIPLE: RESPONSIBILITY
257
+
258
+ ## Meaning
259
+
260
+ The product has an obligation to act in the user's best interest.
261
+
262
+ This includes:
263
+
264
+ - privacy
265
+ - safety
266
+ - transparency
267
+ - permissions
268
+ - data handling
269
+ - trustworthy communication
270
+
271
+ ## Agent rule
272
+
273
+ Never design permission requests, data collection, destructive actions,
274
+ or sensitive operations as if they are ordinary UI decoration.
275
+
276
+ Explain why access is needed when appropriate.
277
+
278
+ Request only necessary permissions.
279
+
280
+ Make consequences understandable.
281
+
282
+ ## DO
283
+
284
+ - explain meaningful permission requests
285
+ - communicate what data is being used
286
+ - protect destructive actions
287
+ - preserve user control
288
+ - make privacy-related decisions understandable
289
+
290
+ ## DON'T
291
+
292
+ - request permissions without context
293
+ - manipulate users into granting access
294
+ - hide important consequences
295
+ - collect unnecessary information
296
+ - use deceptive UI patterns
297
+
298
+ ---
299
+
300
+ # 7. PRINCIPLE: FAMILIARITY
301
+
302
+ ## Meaning
303
+
304
+ People bring knowledge from the physical world and other software.
305
+
306
+ Interfaces should build upon patterns users already understand.
307
+
308
+ Familiarity reduces learning cost.
309
+
310
+ ## Agent rule
311
+
312
+ Prefer established patterns when they adequately solve the problem.
313
+
314
+ Innovation should improve the experience, not force users to learn arbitrary
315
+ interaction models.
316
+
317
+ ## Familiar concepts include
318
+
319
+ - navigation bars
320
+ - tabs
321
+ - lists
322
+ - search
323
+ - sheets
324
+ - dialogs
325
+ - menus
326
+ - toggles
327
+ - sliders
328
+ - text fields
329
+ - standard gestures
330
+ - familiar icons
331
+ - conventional terminology
332
+
333
+ ## DO
334
+
335
+ - reuse established interaction patterns
336
+ - use familiar language
337
+ - maintain consistent component behavior
338
+ - preserve predictable navigation
339
+
340
+ ## DON'T
341
+
342
+ - invent new gestures without justification
343
+ - use icons with ambiguous meanings
344
+ - change the meaning of a familiar control
345
+ - redesign common interactions simply to look different
346
+
347
+ ---
348
+
349
+ # 8. CONSISTENCY
350
+
351
+ Consistency is an extension of familiarity.
352
+
353
+ Once a behavior has been established, preserve it.
354
+
355
+ If one list item supports swipe actions, users should not encounter an
356
+ apparently identical list item that behaves completely differently without
357
+ a strong reason.
358
+
359
+ Consistency should exist at several levels.
360
+
361
+ ## Visual consistency
362
+
363
+ - typography
364
+ - spacing
365
+ - color
366
+ - iconography
367
+ - radii
368
+ - control dimensions
369
+
370
+ ## Behavioral consistency
371
+
372
+ - tap behavior
373
+ - navigation
374
+ - gestures
375
+ - feedback
376
+ - destructive actions
377
+ - loading behavior
378
+
379
+ ## Semantic consistency
380
+
381
+ The same label or icon should mean the same thing throughout the product.
382
+
383
+ ## Agent rule
384
+
385
+ Before creating a new pattern, search the existing design system.
386
+
387
+ Reuse before inventing.
388
+
389
+ ---
390
+
391
+ # 9. PRINCIPLE: FLEXIBILITY
392
+
393
+ ## Meaning
394
+
395
+ People use software in different environments, devices, orientations,
396
+ accessibility configurations, and interaction modes.
397
+
398
+ A strong design adapts.
399
+
400
+ ## Agent rule
401
+
402
+ Do not assume:
403
+
404
+ - one screen size
405
+ - one orientation
406
+ - one input method
407
+ - one text size
408
+ - one visual appearance
409
+ - one physical ability
410
+ - one usage context
411
+
412
+ ## Consider
413
+
414
+ - small screens
415
+ - large screens
416
+ - portrait
417
+ - landscape
418
+ - Dark Mode
419
+ - Dynamic Type
420
+ - screen readers
421
+ - touch
422
+ - keyboard
423
+ - voice
424
+ - external input
425
+ - reduced motion
426
+ - different platform conventions
427
+
428
+ ## Context preservation
429
+
430
+ When the interface changes configuration, preserve the user's:
431
+
432
+ - location
433
+ - progress
434
+ - content
435
+ - selections
436
+ - task state
437
+
438
+ Adapt the interface without making it feel like a completely different
439
+ application.
440
+
441
+ ---
442
+
443
+ # 10. PLATFORM INTENT
444
+
445
+ A cross-platform application should not necessarily have identical
446
+ interfaces on every platform.
447
+
448
+ Shared:
449
+
450
+ - product identity
451
+ - content hierarchy
452
+ - semantics
453
+ - design tokens
454
+ - component intent
455
+
456
+ May differ:
457
+
458
+ - navigation
459
+ - dialogs
460
+ - sheets
461
+ - gestures
462
+ - system controls
463
+ - menus
464
+ - keyboard behavior
465
+ - accessibility interaction
466
+ - platform-specific affordances
467
+
468
+ ## Agent rule
469
+
470
+ Ask:
471
+
472
+ > What should remain consistent?
473
+
474
+ Then ask:
475
+
476
+ > What should feel native to this platform?
477
+
478
+ Do not confuse consistency with pixel-perfect duplication.
479
+
480
+ ---
481
+
482
+ # 11. PRINCIPLE: SIMPLICITY
483
+
484
+ ## Meaning
485
+
486
+ Simplicity means clarity and focus.
487
+
488
+ It does NOT mean:
489
+
490
+ - removing useful functionality
491
+ - making everything empty
492
+ - using minimal decoration regardless of context
493
+ - hiding controls
494
+
495
+ A simple interface can be feature-rich if the complexity is organized.
496
+
497
+ ## Agent rule
498
+
499
+ Every element must justify its presence.
500
+
501
+ For each element ask:
502
+
503
+ > Does this help the user understand, decide, navigate, or act?
504
+
505
+ If not, remove it or reconsider its role.
506
+
507
+ ## Simplicity techniques
508
+
509
+ Use:
510
+
511
+ - hierarchy
512
+ - progressive disclosure
513
+ - contextual actions
514
+ - concise wording
515
+ - grouping
516
+ - familiar controls
517
+ - clear navigation
518
+
519
+ Avoid:
520
+
521
+ - unnecessary decoration
522
+ - duplicated actions
523
+ - redundant labels
524
+ - excessive containers
525
+ - competing primary actions
526
+ - unnecessary modal interruptions
527
+
528
+ ---
529
+
530
+ # 12. SIMPLICITY IS NOT MINIMALISM
531
+
532
+ A common AI design failure is confusing simplicity with emptiness.
533
+
534
+ Bad interpretation:
535
+
536
+ > "Make everything minimal."
537
+
538
+ Correct interpretation:
539
+
540
+ > "Remove unnecessary complexity while preserving everything necessary
541
+ > to accomplish the task."
542
+
543
+ A professional application may contain many features.
544
+
545
+ The goal is to organize those features so the user encounters only the
546
+ complexity relevant to their current task.
547
+
548
+ ---
549
+
550
+ # 13. INFORMATION HIERARCHY
551
+
552
+ Hierarchy determines what users notice first, second, and third.
553
+
554
+ Hierarchy can be created through:
555
+
556
+ - size
557
+ - position
558
+ - weight
559
+ - contrast
560
+ - spacing
561
+ - grouping
562
+ - typography
563
+ - motion
564
+ - color
565
+ - interaction priority
566
+
567
+ ## Agent rule
568
+
569
+ Every important screen should have an identifiable hierarchy.
570
+
571
+ Typical structure:
572
+
573
+ ```text
574
+ Primary context
575
+ ↓
576
+ Primary content
577
+ ↓
578
+ Primary action
579
+ ↓
580
+ Secondary information
581
+ ↓
582
+ Secondary actions
583
+ ↓
584
+ Tertiary functionality
585
+ ````
586
+
587
+ The exact order depends on the product.
588
+
589
+ Do not force this structure blindly.
590
+
591
+ ---
592
+
593
+ # 14. PRIMARY VS SECONDARY ACTIONS
594
+
595
+ A screen should not make every action equally prominent.
596
+
597
+ ## Primary action
598
+
599
+ The action most closely related to the user's current goal.
600
+
601
+ ## Secondary actions
602
+
603
+ Useful but less important actions.
604
+
605
+ ## Tertiary actions
606
+
607
+ Rare, contextual, destructive, advanced, or configuration-related actions.
608
+
609
+ ## Agent rule
610
+
611
+ Visual prominence should generally follow functional importance.
612
+
613
+ Do not give five controls the visual weight of primary actions.
614
+
615
+ ---
616
+
617
+ # 15. PRINCIPLE: CRAFT
618
+
619
+ ## Meaning
620
+
621
+ Quality is communicated through details.
622
+
623
+ Craft includes:
624
+
625
+ * precise alignment
626
+ * typography
627
+ * spacing
628
+ * animation
629
+ * wording
630
+ * responsiveness
631
+ * sound
632
+ * accessibility
633
+ * reliability
634
+ * edge states
635
+ * performance
636
+
637
+ ## Agent rule
638
+
639
+ A screen is not finished when it technically works.
640
+
641
+ It is finished when:
642
+
643
+ * it works
644
+ * it communicates clearly
645
+ * it behaves consistently
646
+ * it handles edge cases
647
+ * it feels coherent
648
+ * it is accessible
649
+ * it is visually refined
650
+
651
+ ## Craft checklist
652
+
653
+ Inspect:
654
+
655
+ * one-pixel alignment problems
656
+ * inconsistent spacing
657
+ * inconsistent radii
658
+ * inconsistent icon sizes
659
+ * text wrapping
660
+ * clipped content
661
+ * awkward empty space
662
+ * excessive visual noise
663
+ * loading transitions
664
+ * error states
665
+ * destructive actions
666
+ * keyboard behavior
667
+ * gesture behavior
668
+
669
+ ---
670
+
671
+ # 16. ITERATION
672
+
673
+ Craft requires iteration.
674
+
675
+ The agent should not assume the first implementation is the final design.
676
+
677
+ Recommended loop:
678
+
679
+ ```text
680
+ Design
681
+ ↓
682
+ Prototype
683
+ ↓
684
+ Inspect
685
+ ↓
686
+ Identify problems
687
+ ↓
688
+ Refine
689
+ ↓
690
+ Test
691
+ ↓
692
+ Inspect again
693
+ ```
694
+
695
+ When possible, evaluate the interface in realistic conditions rather than
696
+ only examining isolated components.
697
+
698
+ ---
699
+
700
+ # 17. PRINCIPLE: DELIGHT
701
+
702
+ ## Meaning
703
+
704
+ Good products can create positive emotional responses.
705
+
706
+ Delight may come from:
707
+
708
+ * smooth interaction
709
+ * thoughtful feedback
710
+ * excellent typography
711
+ * meaningful animation
712
+ * personality
713
+ * sound
714
+ * visual refinement
715
+ * satisfying completion states
716
+
717
+ ## Agent rule
718
+
719
+ Delight should enhance the task.
720
+
721
+ It should never obstruct the task.
722
+
723
+ ## DO
724
+
725
+ * create satisfying feedback
726
+ * use meaningful micro-interactions
727
+ * express product personality
728
+ * create memorable moments at appropriate points
729
+
730
+ ## DON'T
731
+
732
+ * animate everything
733
+ * delay actions for visual effects
734
+ * use decoration to compensate for weak UX
735
+ * make important information harder to access
736
+
737
+ ---
738
+
739
+ # 18. DELIGHT VS DECORATION
740
+
741
+ Decoration:
742
+
743
+ > "This looks cool."
744
+
745
+ Delight:
746
+
747
+ > "That interaction feels exceptionally well considered."
748
+
749
+ Prefer the second.
750
+
751
+ A visually impressive interface with poor interaction is not premium UX.
752
+
753
+ ---
754
+
755
+ # 19. LAYOUT
756
+
757
+ Layout should establish:
758
+
759
+ * hierarchy
760
+ * rhythm
761
+ * grouping
762
+ * alignment
763
+ * spatial relationships
764
+
765
+ ## Agent rule
766
+
767
+ Do not place elements independently.
768
+
769
+ Treat the interface as a spatial system.
770
+
771
+ Elements that belong together should appear visually related.
772
+
773
+ Elements that represent different concepts should have enough separation.
774
+
775
+ ## Use
776
+
777
+ * consistent margins
778
+ * spacing rhythm
779
+ * alignment
780
+ * grouping
781
+ * predictable content regions
782
+
783
+ ## Avoid
784
+
785
+ * arbitrary spacing
786
+ * accidental misalignment
787
+ * inconsistent margins
788
+ * excessive empty space without purpose
789
+ * crowded controls
790
+
791
+ ---
792
+
793
+ # 20. SPACING
794
+
795
+ Spacing communicates relationships.
796
+
797
+ Smaller spacing generally suggests stronger relationship.
798
+
799
+ Larger spacing generally suggests separation.
800
+
801
+ Example:
802
+
803
+ ```text
804
+ Title
805
+ ↓ small spacing
806
+ Subtitle
807
+ ↓ larger spacing
808
+ Content section
809
+ ```
810
+
811
+ The exact values depend on the design system.
812
+
813
+ ## Agent rule
814
+
815
+ Do not choose spacing independently for every element.
816
+
817
+ Use semantic spacing tokens.
818
+
819
+ ---
820
+
821
+ # 21. TYPOGRAPHY
822
+
823
+ Typography is structural, not decorative.
824
+
825
+ Use typography to communicate:
826
+
827
+ * hierarchy
828
+ * importance
829
+ * grouping
830
+ * state
831
+ * readability
832
+
833
+ ## Agent rule
834
+
835
+ Define a type scale before designing complex screens.
836
+
837
+ Avoid arbitrary font sizes.
838
+
839
+ Consider:
840
+
841
+ * Dynamic Type
842
+ * text scaling
843
+ * long labels
844
+ * localization
845
+ * truncation
846
+ * accessibility
847
+ * contrast
848
+ * reading distance
849
+
850
+ Never assume that a fixed font size will work everywhere.
851
+
852
+ ---
853
+
854
+ # 22. COLOR
855
+
856
+ Color should communicate hierarchy, meaning, and identity.
857
+
858
+ Use semantic roles such as:
859
+
860
+ ```text
861
+ background.primary
862
+ background.secondary
863
+
864
+ surface.primary
865
+ surface.secondary
866
+
867
+ text.primary
868
+ text.secondary
869
+ text.tertiary
870
+
871
+ accent.primary
872
+
873
+ status.success
874
+ status.warning
875
+ status.error
876
+ status.info
877
+ ```
878
+
879
+ ## Agent rule
880
+
881
+ Do not use color as the only way to communicate meaning.
882
+
883
+ For example:
884
+
885
+ Bad:
886
+
887
+ ```text
888
+ Red = error
889
+ Green = success
890
+ ```
891
+
892
+ Better:
893
+
894
+ ```text
895
+ Icon + label + color + appropriate feedback
896
+ ```
897
+
898
+ ---
899
+
900
+ # 23. DARK MODE
901
+
902
+ Dark Mode is not simply:
903
+
904
+ ```text
905
+ white → black
906
+ ```
907
+
908
+ It requires reconsidering:
909
+
910
+ * contrast
911
+ * hierarchy
912
+ * surfaces
913
+ * text brightness
914
+ * imagery
915
+ * elevation
916
+ * translucency
917
+ * color intensity
918
+
919
+ ## Agent rule
920
+
921
+ Design light and dark appearances as intentional variants of the same
922
+ semantic system.
923
+
924
+ Do not invert colors mechanically.
925
+
926
+ ---
927
+
928
+ # 24. MATERIALS
929
+
930
+ Materials can establish depth and spatial relationships.
931
+
932
+ Examples include:
933
+
934
+ * translucent surfaces
935
+ * blur
936
+ * visual separation
937
+ * layered surfaces
938
+ * background treatment
939
+
940
+ ## Agent rule
941
+
942
+ Use materials to communicate structure or context.
943
+
944
+ Do not add blur/transparency merely because it looks futuristic.
945
+
946
+ Consider:
947
+
948
+ * readability
949
+ * contrast
950
+ * performance
951
+ * accessibility
952
+ * platform conventions
953
+ * visual hierarchy
954
+
955
+ ---
956
+
957
+ # 25. ICONOGRAPHY
958
+
959
+ Icons communicate meaning quickly.
960
+
961
+ Use:
962
+
963
+ * consistent visual weight
964
+ * consistent sizing
965
+ * familiar metaphors
966
+ * appropriate spacing
967
+ * semantic labels where required
968
+
969
+ ## Agent rule
970
+
971
+ Never select an icon only because it looks attractive.
972
+
973
+ Select it because its meaning is understandable.
974
+
975
+ Avoid ambiguous icon-only controls for actions where the meaning is not
976
+ obvious.
977
+
978
+ ---
979
+
980
+ # 26. CONTROLS
981
+
982
+ Controls should communicate:
983
+
984
+ * what they do
985
+ * whether they are available
986
+ * whether they are active
987
+ * whether they are disabled
988
+ * what state they are currently in
989
+
990
+ Common states:
991
+
992
+ ```text
993
+ default
994
+ pressed
995
+ focused
996
+ selected
997
+ disabled
998
+ loading
999
+ error
1000
+ success
1001
+ ```
1002
+
1003
+ ## Agent rule
1004
+
1005
+ Interactive controls must visually and semantically communicate their state.
1006
+
1007
+ ---
1008
+
1009
+ # 27. FEEDBACK
1010
+
1011
+ Feedback keeps users informed.
1012
+
1013
+ Useful feedback includes:
1014
+
1015
+ * visual state changes
1016
+ * progress indicators
1017
+ * confirmation
1018
+ * inline messages
1019
+ * banners
1020
+ * alerts
1021
+ * haptics
1022
+ * sound
1023
+ * animation
1024
+
1025
+ Use the least disruptive mechanism that communicates enough information.
1026
+
1027
+ ## Agent rule
1028
+
1029
+ Do not interrupt the user when passive feedback is sufficient.
1030
+
1031
+ Do not use passive feedback when the user must make an important decision.
1032
+
1033
+ ---
1034
+
1035
+ # 28. MOTION
1036
+
1037
+ Motion should communicate:
1038
+
1039
+ * state change
1040
+ * spatial relationship
1041
+ * cause and effect
1042
+ * hierarchy
1043
+ * continuity
1044
+ * interaction feedback
1045
+
1046
+ ## Agent rule
1047
+
1048
+ Before adding animation, identify its purpose.
1049
+
1050
+ Ask:
1051
+
1052
+ > What does this animation tell the user?
1053
+
1054
+ If the answer is:
1055
+
1056
+ > Nothing.
1057
+
1058
+ Do not add it.
1059
+
1060
+ ## Motion should generally be
1061
+
1062
+ * purposeful
1063
+ * responsive
1064
+ * interruptible where appropriate
1065
+ * consistent
1066
+ * proportional
1067
+ * context-aware
1068
+
1069
+ Always consider reduced-motion preferences.
1070
+
1071
+ ---
1072
+
1073
+ # 29. NAVIGATION
1074
+
1075
+ Navigation should help users understand:
1076
+
1077
+ * where they are
1078
+ * where they can go
1079
+ * how they arrived
1080
+ * how to return
1081
+ * what level of hierarchy they are currently viewing
1082
+
1083
+ ## Agent rule
1084
+
1085
+ Navigation should not compete with primary content.
1086
+
1087
+ Use established patterns when they fit the product.
1088
+
1089
+ Do not invent navigation purely for visual novelty.
1090
+
1091
+ ---
1092
+
1093
+ # 30. GESTURES
1094
+
1095
+ Gestures can make interfaces powerful but can also make functionality
1096
+ invisible.
1097
+
1098
+ ## Agent rule
1099
+
1100
+ A gesture should:
1101
+
1102
+ * have a discoverable or familiar meaning
1103
+ * provide feedback
1104
+ * have a reasonable alternative when necessary
1105
+ * not hide critical functionality exclusively
1106
+
1107
+ Examples:
1108
+
1109
+ * swipe to delete
1110
+ * swipe between media
1111
+ * pull to refresh
1112
+ * drag to reorder
1113
+ * long press for contextual actions
1114
+
1115
+ Do not make essential functionality accessible only through obscure gestures.
1116
+
1117
+ ---
1118
+
1119
+ # 31. SHEETS AND MODALITY
1120
+
1121
+ Use modal presentation when the user needs to temporarily focus on a
1122
+ specific task, decision, or contextual action.
1123
+
1124
+ Avoid unnecessary modal interruption.
1125
+
1126
+ ## Agent rule
1127
+
1128
+ Before opening a modal, ask:
1129
+
1130
+ > Does this task genuinely require the user's focused attention?
1131
+
1132
+ If not, prefer:
1133
+
1134
+ * inline interaction
1135
+ * contextual controls
1136
+ * navigation
1137
+ * non-modal feedback
1138
+
1139
+ ---
1140
+
1141
+ # 32. EMPTY STATES
1142
+
1143
+ An empty state should answer:
1144
+
1145
+ 1. What is empty?
1146
+ 2. Why is it empty?
1147
+ 3. What can the user do next?
1148
+
1149
+ Example structure:
1150
+
1151
+ ```text
1152
+ Illustration / icon
1153
+ ↓
1154
+ Short explanation
1155
+ ↓
1156
+ Primary next action
1157
+ ```
1158
+
1159
+ Avoid empty screens that simply say:
1160
+
1161
+ ```text
1162
+ Nothing here.
1163
+ ```
1164
+
1165
+ when the user could benefit from guidance.
1166
+
1167
+ ---
1168
+
1169
+ # 33. LOADING STATES
1170
+
1171
+ Loading states should communicate that the system is working.
1172
+
1173
+ Choose the appropriate mechanism:
1174
+
1175
+ * skeleton
1176
+ * spinner
1177
+ * progress indicator
1178
+ * placeholder
1179
+ * optimistic update
1180
+ * incremental content
1181
+
1182
+ ## Agent rule
1183
+
1184
+ Do not replace an entire interface with a spinner when the existing layout
1185
+ can remain stable.
1186
+
1187
+ Preserve context where possible.
1188
+
1189
+ ---
1190
+
1191
+ # 34. ERROR STATES
1192
+
1193
+ An error should communicate:
1194
+
1195
+ ```text
1196
+ What happened?
1197
+ ↓
1198
+ What does it affect?
1199
+ ↓
1200
+ What can the user do?
1201
+ ```
1202
+
1203
+ Prefer actionable errors.
1204
+
1205
+ Bad:
1206
+
1207
+ ```text
1208
+ Error 500
1209
+ ```
1210
+
1211
+ Better:
1212
+
1213
+ ```text
1214
+ Couldn't load your library.
1215
+
1216
+ Check your connection and try again.
1217
+ [Try Again]
1218
+ ```
1219
+
1220
+ ---
1221
+
1222
+ # 35. PERMISSION STATES
1223
+
1224
+ Permission requests should occur at the moment they become relevant when
1225
+ possible.
1226
+
1227
+ Before requesting access, explain why the feature needs it when appropriate.
1228
+
1229
+ After denial:
1230
+
1231
+ * explain the impact
1232
+ * provide an alternative where possible
1233
+ * explain how to enable access when necessary
1234
+
1235
+ Do not repeatedly harass the user with permission prompts.
1236
+
1237
+ ---
1238
+
1239
+ # 36. ACCESSIBILITY
1240
+
1241
+ Accessibility is part of design architecture.
1242
+
1243
+ Consider:
1244
+
1245
+ * screen readers
1246
+ * accessible names
1247
+ * roles
1248
+ * states
1249
+ * hints
1250
+ * focus order
1251
+ * Dynamic Type
1252
+ * contrast
1253
+ * touch targets
1254
+ * reduced motion
1255
+ * keyboard interaction
1256
+ * alternative input
1257
+ * color independence
1258
+
1259
+ ## Agent rule
1260
+
1261
+ Do not leave accessibility until the final step.
1262
+
1263
+ Design semantics together with the component.
1264
+
1265
+ ---
1266
+
1267
+ # 37. TOUCH TARGETS
1268
+
1269
+ Interactive controls must be comfortably usable.
1270
+
1271
+ For iOS touch interfaces, use Apple's current platform guidance for minimum
1272
+ interactive target dimensions rather than creating arbitrarily small controls.
1273
+
1274
+ Do not judge usability from the visible icon alone.
1275
+
1276
+ A visually small icon can still have a sufficiently large interactive region.
1277
+
1278
+ ---
1279
+
1280
+ # 38. WRITING
1281
+
1282
+ Interface language is part of UX.
1283
+
1284
+ Good UI writing is:
1285
+
1286
+ * concise
1287
+ * clear
1288
+ * specific
1289
+ * human
1290
+ * actionable
1291
+ * consistent
1292
+
1293
+ Avoid unnecessary technical language.
1294
+
1295
+ Prefer:
1296
+
1297
+ ```text
1298
+ Couldn't save changes.
1299
+ ```
1300
+
1301
+ over:
1302
+
1303
+ ```text
1304
+ Persistence operation failed.
1305
+ ```
1306
+
1307
+ unless the audience genuinely needs technical terminology.
1308
+
1309
+ ---
1310
+
1311
+ # 39. PRIVACY AND TRUST
1312
+
1313
+ Trust is part of the interface.
1314
+
1315
+ When collecting or using information:
1316
+
1317
+ * be transparent
1318
+ * minimize collection
1319
+ * explain meaningful access
1320
+ * avoid deceptive language
1321
+ * make consequences understandable
1322
+
1323
+ The user should not need to reverse-engineer what the application is doing.
1324
+
1325
+ ---
1326
+
1327
+ # 40. APPROACHABILITY
1328
+
1329
+ A new user should be able to understand the basic experience without
1330
+ studying the application.
1331
+
1332
+ Advanced functionality can be progressively revealed.
1333
+
1334
+ ## Agent rule
1335
+
1336
+ Design the first experience around:
1337
+
1338
+ ```text
1339
+ Understand
1340
+ ↓
1341
+ Act
1342
+ ↓
1343
+ Learn
1344
+ ↓
1345
+ Explore
1346
+ ```
1347
+
1348
+ rather than:
1349
+
1350
+ ```text
1351
+ Read manual
1352
+ ↓
1353
+ Configure everything
1354
+ ↓
1355
+ Finally use product
1356
+ ```
1357
+
1358
+ ---
1359
+
1360
+ # 41. PROGRESSIVE DISCLOSURE
1361
+
1362
+ Not every capability needs to be visible simultaneously.
1363
+
1364
+ Reveal advanced functionality when:
1365
+
1366
+ * relevant
1367
+ * requested
1368
+ * discovered
1369
+ * contextually appropriate
1370
+
1371
+ Examples:
1372
+
1373
+ * context menus
1374
+ * sheets
1375
+ * expandable sections
1376
+ * advanced settings
1377
+ * secondary toolbars
1378
+
1379
+ Do not hide primary functionality behind unnecessary layers.
1380
+
1381
+ ---
1382
+
1383
+ # 42. CONTEXT PRESERVATION
1384
+
1385
+ Users should feel that they remain in the same environment while navigating.
1386
+
1387
+ Preserve:
1388
+
1389
+ * selected item
1390
+ * scroll position where appropriate
1391
+ * search query
1392
+ * playback state
1393
+ * editing state
1394
+ * navigation context
1395
+ * user input
1396
+
1397
+ Transitions should help communicate spatial relationships.
1398
+
1399
+ ---
1400
+
1401
+ # 43. RESPONSIVENESS
1402
+
1403
+ A premium interface responds quickly.
1404
+
1405
+ Perceived quality is affected by:
1406
+
1407
+ * touch response
1408
+ * animation latency
1409
+ * loading behavior
1410
+ * navigation speed
1411
+ * image loading
1412
+ * scrolling
1413
+ * keyboard interaction
1414
+
1415
+ ## Agent rule
1416
+
1417
+ Do not compensate for slow implementation with excessive animation.
1418
+
1419
+ Fix the underlying performance problem where possible.
1420
+
1421
+ ---
1422
+
1423
+ # 44. PREMIUM UI IS NOT DECORATION
1424
+
1425
+ Do not equate premium quality with:
1426
+
1427
+ * gradients everywhere
1428
+ * glass everywhere
1429
+ * giant rounded cards
1430
+ * excessive shadows
1431
+ * glowing borders
1432
+ * oversized typography
1433
+ * constant animation
1434
+
1435
+ Premium quality is more accurately:
1436
+
1437
+ ```text
1438
+ clarity
1439
+ +
1440
+ precision
1441
+ +
1442
+ consistency
1443
+ +
1444
+ responsiveness
1445
+ +
1446
+ thoughtful interaction
1447
+ +
1448
+ excellent details
1449
+ ```
1450
+
1451
+ Visual style is only one part of the equation.
1452
+
1453
+ ---
1454
+
1455
+ # 45. ANTI-PATTERNS
1456
+
1457
+ The agent should actively detect these patterns.
1458
+
1459
+ ## Card Soup
1460
+
1461
+ Everything is placed inside a rounded card.
1462
+
1463
+ ## Decoration First
1464
+
1465
+ Visual effects are chosen before information hierarchy.
1466
+
1467
+ ## Control Explosion
1468
+
1469
+ Every possible action is exposed simultaneously.
1470
+
1471
+ ## Hidden Functionality
1472
+
1473
+ Important actions exist only behind obscure gestures.
1474
+
1475
+ ## Modal Overuse
1476
+
1477
+ Dialogs and sheets interrupt ordinary tasks unnecessarily.
1478
+
1479
+ ## Animation Everywhere
1480
+
1481
+ Motion exists without communicative purpose.
1482
+
1483
+ ## Icon Guessing
1484
+
1485
+ Icons are chosen based on appearance rather than meaning.
1486
+
1487
+ ## Fixed Layout
1488
+
1489
+ The interface assumes one screen size or text size.
1490
+
1491
+ ## Happy Path Only
1492
+
1493
+ The screen works only when everything succeeds.
1494
+
1495
+ ## Fake Minimalism
1496
+
1497
+ Functionality is removed or hidden simply to make the interface look clean.
1498
+
1499
+ ## Platform Ignorance
1500
+
1501
+ The same interaction is forced onto every platform despite different
1502
+ conventions.
1503
+
1504
+ ---
1505
+
1506
+ # 46. AGENT DECISION FRAMEWORK
1507
+
1508
+ When making a UI decision, evaluate in this order:
1509
+
1510
+ ```text
1511
+ 1. PURPOSE
1512
+ ↓
1513
+ 2. USER GOAL
1514
+ ↓
1515
+ 3. INFORMATION HIERARCHY
1516
+ ↓
1517
+ 4. FAMILIAR PATTERN
1518
+ ↓
1519
+ 5. PLATFORM CONVENTION
1520
+ ↓
1521
+ 6. SIMPLICITY
1522
+ ↓
1523
+ 7. ACCESSIBILITY
1524
+ ↓
1525
+ 8. FLEXIBILITY
1526
+ ↓
1527
+ 9. FEEDBACK
1528
+ ↓
1529
+ 10. CRAFT
1530
+ ↓
1531
+ 11. DELIGHT
1532
+ ```
1533
+
1534
+ Do not reverse this order.
1535
+
1536
+ Do not start with:
1537
+
1538
+ > "What would look cool?"
1539
+
1540
+ Start with:
1541
+
1542
+ > "What helps the user accomplish the goal?"
1543
+
1544
+ ---
1545
+
1546
+ # 47. DESIGN REVIEW QUESTIONS
1547
+
1548
+ Before approving a design, answer:
1549
+
1550
+ ## Purpose
1551
+
1552
+ * What is the primary user goal?
1553
+ * Is the screen optimized for that goal?
1554
+
1555
+ ## Agency
1556
+
1557
+ * Does the user understand what is happening?
1558
+ * Can they recover from mistakes?
1559
+
1560
+ ## Responsibility
1561
+
1562
+ * Are permissions and sensitive actions understandable?
1563
+ * Is user data treated appropriately?
1564
+
1565
+ ## Familiarity
1566
+
1567
+ * Does the interface use recognizable patterns?
1568
+ * Are controls predictable?
1569
+
1570
+ ## Flexibility
1571
+
1572
+ * Does the design adapt to different contexts?
1573
+ * Does it support accessibility?
1574
+
1575
+ ## Simplicity
1576
+
1577
+ * Can anything be removed?
1578
+ * Are primary actions obvious?
1579
+
1580
+ ## Craft
1581
+
1582
+ * Are spacing, typography, alignment, motion, and states polished?
1583
+
1584
+ ## Delight
1585
+
1586
+ * Does the interface have appropriate personality?
1587
+ * Does that personality improve rather than obstruct the task?
1588
+
1589
+ ---
1590
+
1591
+ # 48. IMPLEMENTATION TRANSLATION
1592
+
1593
+ When implementing these principles in React Native / Expo:
1594
+
1595
+ ## Design principle
1596
+
1597
+ Use:
1598
+
1599
+ ```text
1600
+ semantic tokens
1601
+ component primitives
1602
+ platform adapters
1603
+ accessible semantics
1604
+ state-driven UI
1605
+ ```
1606
+
1607
+ Avoid:
1608
+
1609
+ ```text
1610
+ random constants
1611
+ screen-specific styling duplication
1612
+ hard-coded platform assumptions
1613
+ visual-only states
1614
+ ```
1615
+
1616
+ ## Example
1617
+
1618
+ Prefer:
1619
+
1620
+ ```tsx
1621
+ <Button
1622
+ variant="primary"
1623
+ accessibilityLabel="Save changes"
1624
+ onPress={saveChanges}
1625
+ />
1626
+ ```
1627
+
1628
+ over:
1629
+
1630
+ ```tsx
1631
+ <TouchableOpacity
1632
+ style={{
1633
+ backgroundColor: "#6C5CE7",
1634
+ borderRadius: 18,
1635
+ padding: 17,
1636
+ marginTop: 13,
1637
+ }}
1638
+ >
1639
+ <Text>Save</Text>
1640
+ </TouchableOpacity>
1641
+ ```
1642
+
1643
+ The first communicates design intent.
1644
+
1645
+ The second only describes pixels.
1646
+
1647
+ ---
1648
+
1649
+ # 49. PLATFORM ADAPTER PRINCIPLE
1650
+
1651
+ The design system should describe intent.
1652
+
1653
+ Example:
1654
+
1655
+ ```text
1656
+ Intent:
1657
+ "Present contextual actions for this item."
1658
+ ```
1659
+
1660
+ The platform implementation may become:
1661
+
1662
+ ```text
1663
+ iOS:
1664
+ context menu / sheet / swipe actions
1665
+
1666
+ Android:
1667
+ context menu / bottom sheet / contextual actions
1668
+ ```
1669
+
1670
+ The shared application logic should not force identical presentation when
1671
+ native platform behavior is more appropriate.
1672
+
1673
+ ---
1674
+
1675
+ # 50. AGENT OUTPUT STANDARD
1676
+
1677
+ When asked to design a new screen, the agent should be able to produce:
1678
+
1679
+ ```text
1680
+ SCREEN PURPOSE
1681
+
1682
+ PRIMARY USER GOAL
1683
+
1684
+ PRIMARY ACTION
1685
+
1686
+ INFORMATION HIERARCHY
1687
+
1688
+ NAVIGATION MODEL
1689
+
1690
+ LAYOUT STRUCTURE
1691
+
1692
+ COMPONENTS
1693
+
1694
+ INTERACTION MODEL
1695
+
1696
+ STATES
1697
+
1698
+ ACCESSIBILITY
1699
+
1700
+ MOTION
1701
+
1702
+ PLATFORM DIFFERENCES
1703
+
1704
+ DESIGN TOKENS
1705
+
1706
+ EDGE CASES
1707
+
1708
+ IMPLEMENTATION NOTES
1709
+
1710
+ AUDIT CHECKLIST
1711
+ ```
1712
+
1713
+ ---
1714
+
1715
+ # 51. FINAL RULE
1716
+
1717
+ The HIG is not a visual style guide.
1718
+
1719
+ It is a decision framework.
1720
+
1721
+ Do not ask:
1722
+
1723
+ > "How do I make this look like iOS?"
1724
+
1725
+ Ask:
1726
+
1727
+ > "What design decision would make this experience clearer, more familiar,
1728
+ > more flexible, more accessible, more trustworthy, more refined, and more
1729
+ > enjoyable?"
1730
+
1731
+ Then apply the answer using the product's own identity.
1732
+
1733
+ ---
1734
+
1735
+ # 52. QUICK REFERENCE
1736
+
1737
+ ```text
1738
+ PURPOSE
1739
+ Make something meaningful.
1740
+
1741
+ AGENCY
1742
+ Let people accomplish things their way.
1743
+
1744
+ RESPONSIBILITY
1745
+ Act in people's best interest.
1746
+
1747
+ FAMILIARITY
1748
+ Build on what people know.
1749
+
1750
+ FLEXIBILITY
1751
+ Adapt to diverse contexts and needs.
1752
+
1753
+ SIMPLICITY
1754
+ Be clear and direct.
1755
+
1756
+ CRAFT
1757
+ Care about every detail.
1758
+
1759
+ DELIGHT
1760
+ Make it human.
1761
+ ```
1762
+
1763
+ These principles form the foundation for all subsequent Apple-derived
1764
+ MobileUI-OS knowledge modules.
1765
+
1766
+ ---
1767
+
1768
+ # 53. NEXT MODULES
1769
+
1770
+ Recommended order:
1771
+
1772
+ 1. `knowledge/apple/designing-for-ios.md`
1773
+ 2. `knowledge/apple/layout.md`
1774
+ 3. `knowledge/apple/typography.md`
1775
+ 4. `knowledge/apple/color.md`
1776
+ 5. `knowledge/apple/dark-mode.md`
1777
+ 6. `knowledge/apple/materials.md`
1778
+ 7. `knowledge/apple/navigation.md`
1779
+ 8. `knowledge/apple/components.md`
1780
+ 9. `knowledge/apple/inputs.md`
1781
+ 10. `knowledge/apple/accessibility.md`
1782
+ 11. `knowledge/apple/motion.md`
1783
+ 12. `knowledge/apple/sf-symbols.md`
1784
+ 13. `knowledge/apple/patterns.md`
1785
+
1786
+ After the Apple foundation is complete, build the equivalent Material,
1787
+ React Native, and Expo knowledge layers.
1788
+
1789
+ ---
1790
+
1791
+ # 54. SOURCE
1792
+
1793
+ Apple Developer Documentation — Human Interface Guidelines
1794
+
1795
+ [https://developer.apple.com/design/human-interface-guidelines/](https://developer.apple.com/design/human-interface-guidelines/)
1796
+
1797
+ Apple Developer Documentation — Design Principles
1798
+
1799
+ [https://developer.apple.com/design/human-interface-guidelines/design-principles](https://developer.apple.com/design/human-interface-guidelines/design-principles)
1800
+
1801
+ Apple Developer Documentation — Designing for iOS
1802
+
1803
+ [https://developer.apple.com/design/human-interface-guidelines/designing-for-ios](https://developer.apple.com/design/human-interface-guidelines/designing-for-ios)
1804
+
1805
+ ```
1806
+