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,1456 @@
1
+
2
+
3
+ # iOS Search & Discovery
4
+
5
+ > Agent intelligence module for designing intelligent, fast, contextual, accessible,
6
+ > and platform-aligned search and discovery experiences.
7
+
8
+ Version: 1.0
9
+ Platform: iOS / iPadOS / React Native / Expo
10
+ Role: Search and discovery intelligence
11
+
12
+ Parent:
13
+
14
+ * ios-design-system-architecture.md
15
+ * ios-lists-collections-and-data-display.md
16
+ * ios-forms-and-input.md
17
+ * ios-navigation-and-information-architecture.md
18
+ * ios-components-and-controls.md
19
+ * visual-hierarchy-engine.md
20
+ * accessibility-and-inclusive-design.md
21
+ * motion-and-animation.md
22
+
23
+ # 1. PURPOSE
24
+
25
+ Search is not merely an input field.
26
+
27
+ It is a system for helping users move from:
28
+
29
+ ```text
30
+ Intent
31
+ ↓
32
+ Query
33
+ ↓
34
+ Understanding
35
+ ↓
36
+ Results
37
+ ↓
38
+ Action
39
+ ```
40
+
41
+ A premium search experience minimizes the distance between what the user means
42
+ and the thing they want.
43
+
44
+ # 2. SEARCH PRINCIPLE
45
+
46
+ Search should answer:
47
+
48
+ ```text
49
+ "What can I find here?"
50
+ "How do I find it?"
51
+ "Did the system understand me?"
52
+ "What should I do next?"
53
+ ```
54
+
55
+ .
56
+
57
+ # 3. SEARCH VS DISCOVERY
58
+
59
+ Search is intentional retrieval.
60
+
61
+ Discovery is exploration.
62
+
63
+ ```text
64
+ Search:
65
+ "I know roughly what I want."
66
+
67
+ Discovery:
68
+ "I want to see what is available."
69
+ ```
70
+
71
+ A strong product can support both.
72
+
73
+ # 4. SEARCH ENTRY POINT
74
+
75
+ Search can be exposed through:
76
+
77
+ ```text
78
+ Navigation bar
79
+ Toolbar
80
+ Dedicated search screen
81
+ Search tab
82
+ Command interface
83
+ Global search
84
+ Contextual search
85
+ ```
86
+
87
+ Choose the location based on frequency and scope.
88
+
89
+ # 5. SEARCH VISIBILITY
90
+
91
+ Frequently used search should be easy to discover.
92
+
93
+ Rarely used search does not need to dominate the interface.
94
+
95
+ # 6. SEARCH SCOPE
96
+
97
+ Every search should have a defined scope.
98
+
99
+ Examples:
100
+
101
+ ```text
102
+ Current screen
103
+ Current section
104
+ Current collection
105
+ Entire application
106
+ ```
107
+
108
+ Users should not be surprised by what the search searches.
109
+
110
+ # 7. GLOBAL SEARCH
111
+
112
+ Global search is appropriate when users need to find objects across multiple
113
+ areas of the application.
114
+
115
+ Examples:
116
+
117
+ ```text
118
+ Files
119
+ Songs
120
+ Documents
121
+ Contacts
122
+ Notes
123
+ Settings
124
+ ```
125
+
126
+ .
127
+
128
+ # 8. CONTEXTUAL SEARCH
129
+
130
+ Contextual search is preferable when the user is already working inside a
131
+ specific collection.
132
+
133
+ Example:
134
+
135
+ ```text
136
+ Music → Search songs
137
+ ```
138
+
139
+ rather than searching the entire application unnecessarily.
140
+
141
+ # 9. SEARCH PLACEHOLDER
142
+
143
+ The placeholder should communicate the scope.
144
+
145
+ Good:
146
+
147
+ ```text
148
+ Search songs
149
+ Search files
150
+ Search settings
151
+ ```
152
+
153
+ Generic:
154
+
155
+ ```text
156
+ Search
157
+ ```
158
+
159
+ may be acceptable when the scope is already obvious.
160
+
161
+ # 10. SEARCH KEYBOARD
162
+
163
+ Configure the keyboard for search.
164
+
165
+ The return action should communicate:
166
+
167
+ ```text
168
+ Search
169
+ Go
170
+ ```
171
+
172
+ or another appropriate action.
173
+
174
+ # 11. SEARCH ACTIVATION
175
+
176
+ Entering search mode should preserve enough context for the user to understand
177
+ where they came from.
178
+
179
+ # 12. SEARCH TRANSITION
180
+
181
+ Search activation may use a subtle transition.
182
+
183
+ The transition should establish:
184
+
185
+ ```text
186
+ where search came from
187
+ where results will appear
188
+ ```
189
+
190
+ without unnecessary animation.
191
+
192
+ # 13. SEARCH FOCUS
193
+
194
+ When entering a dedicated search experience, automatically focusing the field
195
+ can be appropriate when searching is the primary task.
196
+
197
+ Avoid automatic focus when it unexpectedly opens the keyboard over important
198
+ content.
199
+
200
+ # 14. SEARCH QUERY
201
+
202
+ A query may be:
203
+
204
+ ```text
205
+ Exact
206
+ Partial
207
+ Natural language
208
+ Category
209
+ Identifier
210
+ ```
211
+
212
+ The search system should determine what query interpretation is appropriate.
213
+
214
+ # 15. QUERY NORMALIZATION
215
+
216
+ Normalize where useful:
217
+
218
+ ```text
219
+ case
220
+ spacing
221
+ punctuation
222
+ common formatting
223
+ ```
224
+
225
+ without destroying meaningful distinctions.
226
+
227
+ # 16. TYPO TOLERANCE
228
+
229
+ Search should tolerate reasonable typing mistakes when the dataset and use case
230
+ justify it.
231
+
232
+ # 17. FUZZY SEARCH
233
+
234
+ Fuzzy matching is useful when users may not know exact names.
235
+
236
+ Examples:
237
+
238
+ ```text
239
+ "jhon" → "john"
240
+ "playlis" → "playlist"
241
+ ```
242
+
243
+ Do not make fuzzy matching so aggressive that unrelated results dominate.
244
+
245
+ # 18. SEARCH RELEVANCE
246
+
247
+ Results should be ranked according to user intent.
248
+
249
+ Possible factors:
250
+
251
+ ```text
252
+ exact match
253
+ prefix match
254
+ token match
255
+ recency
256
+ frequency
257
+ popularity
258
+ context
259
+ user history
260
+ ```
261
+
262
+ Use only signals appropriate to the product.
263
+
264
+ # 19. EXACT MATCH
265
+
266
+ Exact matches should generally receive high priority.
267
+
268
+ # 20. PREFIX MATCH
269
+
270
+ Prefix matching is useful for rapid discovery.
271
+
272
+ Example:
273
+
274
+ ```text
275
+ "play" → "Playlist"
276
+ "Playlists"
277
+ "Player"
278
+ ```
279
+
280
+ .
281
+
282
+ # 21. TOKEN MATCH
283
+
284
+ Search terms may match multiple words.
285
+
286
+ Example:
287
+
288
+ ```text
289
+ "dark moon"
290
+ ```
291
+
292
+ may find:
293
+
294
+ ```text
295
+ Dark Moon
296
+ Moon in the Dark
297
+ Dark Side of the Moon
298
+ ```
299
+
300
+ depending on ranking.
301
+
302
+ # 22. SEARCH RANKING
303
+
304
+ A conceptual ranking model:
305
+
306
+ ```text
307
+ Exact title highest
308
+ Exact token very high
309
+ Prefix high
310
+ Partial medium
311
+ Metadata medium
312
+ Fuzzy lower
313
+ ```
314
+
315
+ Adjust according to the product.
316
+
317
+ # 23. CONTEXTUAL RANKING
318
+
319
+ Context can improve results.
320
+
321
+ Example:
322
+
323
+ ```text
324
+ User is inside Music
325
+ ↓
326
+ "love"
327
+ ↓
328
+ Prioritize songs/albums/artists
329
+ ```
330
+
331
+ rather than unrelated objects.
332
+
333
+ # 24. PERSONALIZATION
334
+
335
+ Personalized ranking can consider:
336
+
337
+ ```text
338
+ recently used
339
+ frequently accessed
340
+ favorites
341
+ current context
342
+ ```
343
+
344
+ but must not make basic retrieval unpredictable.
345
+
346
+ # 25. RECENT SEARCHES
347
+
348
+ Recent searches help users repeat common queries.
349
+
350
+ Show them when search history is genuinely useful.
351
+
352
+ # 26. RECENT SEARCH ORDER
353
+
354
+ Typically:
355
+
356
+ ```text
357
+ most recent
358
+ ↓
359
+ older
360
+ ```
361
+
362
+ .
363
+
364
+ # 27. CLEAR RECENT SEARCHES
365
+
366
+ Users should be able to remove recent search history.
367
+
368
+ If search history is sensitive, make this particularly discoverable.
369
+
370
+ # 28. SEARCH PRIVACY
371
+
372
+ Do not retain search queries unnecessarily.
373
+
374
+ Consider whether queries contain:
375
+
376
+ ```text
377
+ personal information
378
+ sensitive information
379
+ private documents
380
+ financial information
381
+ ```
382
+
383
+ .
384
+
385
+ # 29. SEARCH HISTORY CONTROL
386
+
387
+ Provide appropriate controls for:
388
+
389
+ ```text
390
+ clear history
391
+ disable history
392
+ delete individual query
393
+ ```
394
+
395
+ when privacy requirements justify them.
396
+
397
+ # 30. SEARCH SUGGESTIONS
398
+
399
+ Suggestions can reduce typing.
400
+
401
+ Examples:
402
+
403
+ ```text
404
+ Recent searches
405
+ Popular queries
406
+ Matching objects
407
+ Suggested actions
408
+ ```
409
+
410
+ .
411
+
412
+ # 31. SUGGESTIONS VS RESULTS
413
+
414
+ Suggestions appear before or during execution.
415
+
416
+ Results represent actual matching content.
417
+
418
+ Keep the distinction understandable.
419
+
420
+ # 32. LIVE SUGGESTIONS
421
+
422
+ As the user types:
423
+
424
+ ```text
425
+ query
426
+ ↓
427
+ suggestions
428
+ ```
429
+
430
+ can update dynamically.
431
+
432
+ Avoid excessive network requests.
433
+
434
+ # 33. DEBOUNCING
435
+
436
+ For network-backed suggestions:
437
+
438
+ ```text
439
+ typing
440
+ ↓
441
+ short debounce
442
+ ↓
443
+ request
444
+ ```
445
+
446
+ .
447
+
448
+ # 34. LOCAL SEARCH
449
+
450
+ For local datasets, search should feel immediate.
451
+
452
+ Avoid artificial loading indicators for operations that complete essentially
453
+ instantly.
454
+
455
+ # 35. REMOTE SEARCH
456
+
457
+ Remote search should clearly communicate loading when latency is noticeable.
458
+
459
+ # 36. SEARCH CANCELLATION
460
+
461
+ Users should be able to stop or exit search naturally.
462
+
463
+ Cancellation should not leave the UI in an ambiguous state.
464
+
465
+ # 37. SEARCH RESULTS
466
+
467
+ Results should communicate:
468
+
469
+ ```text
470
+ what matched
471
+ why it matched
472
+ what can be done
473
+ ```
474
+
475
+ when that information is useful.
476
+
477
+ # 38. RESULT HIERARCHY
478
+
479
+ Typical structure:
480
+
481
+ ```text
482
+ Primary result
483
+ Secondary metadata
484
+ Optional matching context
485
+ Action
486
+ ```
487
+
488
+ .
489
+
490
+ # 39. RESULT TYPES
491
+
492
+ Search may return multiple object types.
493
+
494
+ Example:
495
+
496
+ ```text
497
+ Songs
498
+ Albums
499
+ Artists
500
+ Playlists
501
+ ```
502
+
503
+ Group heterogeneous results when categories help recognition.
504
+
505
+ # 40. RESULT GROUPING
506
+
507
+ A global search may use:
508
+
509
+ ```text
510
+ Songs
511
+ Documents
512
+ People
513
+ Settings
514
+ ```
515
+
516
+ with section headers.
517
+
518
+ # 41. MIXED RESULTS
519
+
520
+ If result types are mixed, clearly distinguish their semantics.
521
+
522
+ Do not make users infer object types from tiny icons alone.
523
+
524
+ # 42. SEARCH SCOPE FILTERS
525
+
526
+ Useful scopes may include:
527
+
528
+ ```text
529
+ All
530
+ Files
531
+ Music
532
+ Documents
533
+ People
534
+ ```
535
+
536
+ Only expose scopes users are likely to need.
537
+
538
+ # 43. SCOPE SELECTOR
539
+
540
+ Scope controls should remain easy to understand.
541
+
542
+ Do not turn search into a complex configuration panel.
543
+
544
+ # 44. SEARCH FILTERS
545
+
546
+ Filters may include:
547
+
548
+ ```text
549
+ Type
550
+ Date
551
+ Location
552
+ Status
553
+ Category
554
+ ```
555
+
556
+ Use only filters that materially improve retrieval.
557
+
558
+ # 45. SEARCH + FILTER
559
+
560
+ Conceptual model:
561
+
562
+ ```text
563
+ Query
564
+ +
565
+ Scope
566
+ +
567
+ Filters
568
+ =
569
+ Result set
570
+ ```
571
+
572
+ .
573
+
574
+ # 46. FILTER PERSISTENCE
575
+
576
+ Decide whether filters persist.
577
+
578
+ Persistence is useful when users repeatedly perform the same specialized search,
579
+ but harmful when stale filters unexpectedly hide results.
580
+
581
+ # 47. ACTIVE FILTER VISIBILITY
582
+
583
+ Active filters should always be discoverable.
584
+
585
+ # 48. ZERO RESULTS
586
+
587
+ Zero results is a product state, not merely a technical result.
588
+
589
+ The interface should answer:
590
+
591
+ ```text
592
+ No matches found.
593
+ ```
594
+
595
+ and where useful:
596
+
597
+ ```text
598
+ Try another query.
599
+ Clear filters.
600
+ Search all content.
601
+ ```
602
+
603
+ .
604
+
605
+ # 49. ZERO-RESULT DIAGNOSIS
606
+
607
+ Determine whether the problem is:
608
+
609
+ ```text
610
+ No matching content
611
+ Too restrictive filters
612
+ Wrong scope
613
+ Typo
614
+ Network failure
615
+ Permission restriction
616
+ ```
617
+
618
+ Different causes deserve different recovery paths.
619
+
620
+ # 50. SEARCH RECOVERY
621
+
622
+ When zero results occur, provide the most useful recovery action.
623
+
624
+ Examples:
625
+
626
+ ```text
627
+ Clear filters
628
+ Remove quotation marks
629
+ Search all
630
+ Try a broader term
631
+ ```
632
+
633
+ Only expose actions that actually make sense.
634
+
635
+ # 51. SPELL CORRECTION
636
+
637
+ If confidence is high:
638
+
639
+ ```text
640
+ Did you mean "playlist"?
641
+ ```
642
+
643
+ can improve recovery.
644
+
645
+ # 52. AUTOMATIC CORRECTION
646
+
647
+ Automatically changing a query can be risky.
648
+
649
+ Prefer transparent correction when ambiguity is meaningful.
650
+
651
+ # 53. SEARCH RESULT COUNT
652
+
653
+ Counts can be useful when:
654
+
655
+ ```text
656
+ large dataset
657
+ filters
658
+ selection workflows
659
+ ```
660
+
661
+ make quantity meaningful.
662
+
663
+ Do not display counts merely because they are available.
664
+
665
+ # 54. EMPTY SEARCH
666
+
667
+ Before a query exists, search may show:
668
+
669
+ ```text
670
+ recent searches
671
+ suggestions
672
+ categories
673
+ popular content
674
+ ```
675
+
676
+ if useful.
677
+
678
+ # 55. SEARCH LANDING STATE
679
+
680
+ A dedicated search screen should not feel empty without purpose.
681
+
682
+ Use the available space to help users start searching.
683
+
684
+ # 56. DISCOVERY SURFACES
685
+
686
+ Discovery can include:
687
+
688
+ ```text
689
+ Recently added
690
+ Recommended
691
+ Popular
692
+ Favorites
693
+ Trending
694
+ Categories
695
+ ```
696
+
697
+ depending on the product.
698
+
699
+ # 57. DISCOVERY RELEVANCE
700
+
701
+ Every discovery element should answer:
702
+
703
+ ```text
704
+ Why am I seeing this?
705
+ ```
706
+
707
+ implicitly through context or explicitly where needed.
708
+
709
+ # 58. RECOMMENDATIONS
710
+
711
+ Recommendations should be useful rather than decorative.
712
+
713
+ Avoid overwhelming users with endless content.
714
+
715
+ # 59. PERSONALIZED DISCOVERY
716
+
717
+ Personalization may consider:
718
+
719
+ ```text
720
+ history
721
+ favorites
722
+ recent activity
723
+ preferences
724
+ context
725
+ ```
726
+
727
+ but users should still be able to discover beyond their previous behavior.
728
+
729
+ # 60. EXPLORATION
730
+
731
+ Discovery should provide meaningful paths:
732
+
733
+ ```text
734
+ Category
735
+ ↓
736
+ Collection
737
+ ↓
738
+ Item
739
+ ```
740
+
741
+ rather than dead-end promotional surfaces.
742
+
743
+ # 61. SEARCHABLE SETTINGS
744
+
745
+ For applications with complex settings, search can dramatically reduce
746
+ navigation effort.
747
+
748
+ # 62. SETTINGS SEARCH
749
+
750
+ Settings search results should communicate:
751
+
752
+ ```text
753
+ setting name
754
+ section
755
+ current state
756
+ ```
757
+
758
+ when useful.
759
+
760
+ # 63. COMMAND-STYLE SEARCH
761
+
762
+ Power-user applications may support command-like search:
763
+
764
+ ```text
765
+ "Create playlist"
766
+ "Sort by size"
767
+ "Enable dark mode"
768
+ ```
769
+
770
+ This is a different interaction from conventional object search.
771
+
772
+ # 64. COMMAND SEARCH
773
+
774
+ Command search should distinguish:
775
+
776
+ ```text
777
+ Find something
778
+ ```
779
+
780
+ from:
781
+
782
+ ```text
783
+ Do something
784
+ ```
785
+
786
+ .
787
+
788
+ # 65. SEARCH + ACTION
789
+
790
+ A sophisticated search interface can expose:
791
+
792
+ ```text
793
+ Search result
794
+ +
795
+ available action
796
+ ```
797
+
798
+ without requiring unnecessary navigation.
799
+
800
+ # 66. NATURAL LANGUAGE SEARCH
801
+
802
+ Natural language search can interpret:
803
+
804
+ ```text
805
+ "files modified yesterday"
806
+ "songs by NF"
807
+ "notes about machine learning"
808
+ ```
809
+
810
+ when the application's data model supports it.
811
+
812
+ # 67. NATURAL LANGUAGE FALLBACK
813
+
814
+ If natural language interpretation fails:
815
+
816
+ ```text
817
+ fall back to conventional matching
818
+ ```
819
+
820
+ rather than returning an unexplained failure.
821
+
822
+ # 68. SEMANTIC SEARCH
823
+
824
+ Semantic search can match concepts rather than exact words.
825
+
826
+ Example:
827
+
828
+ ```text
829
+ "winter music"
830
+ ```
831
+
832
+ may match content tagged or semantically associated with winter.
833
+
834
+ # 69. SEMANTIC SEARCH TRANSPARENCY
835
+
836
+ When semantic ranking materially changes results, users should still be able
837
+ to understand why results appeared.
838
+
839
+ # 70. SEARCH PERFORMANCE
840
+
841
+ Search should feel immediate whenever possible.
842
+
843
+ Target:
844
+
845
+ ```text
846
+ user input
847
+ ↓
848
+ visible feedback
849
+ ```
850
+
851
+ with minimal perceptible delay.
852
+
853
+ # 71. LOCAL INDEXING
854
+
855
+ For large offline datasets, maintain an efficient local search index where
856
+ appropriate.
857
+
858
+ # 72. DATABASE SEARCH
859
+
860
+ For large collections, query the database instead of loading every record
861
+ into memory.
862
+
863
+ # 73. SEARCH PAGINATION
864
+
865
+ Large result sets should be incrementally loaded.
866
+
867
+ # 74. SEARCH RESULT VIRTUALIZATION
868
+
869
+ Search result collections should use appropriate virtualization techniques
870
+ when datasets are large.
871
+
872
+ # 75. SEARCH CACHING
873
+
874
+ Cache useful recent queries/results when this improves responsiveness and does
875
+ not create stale or privacy problems.
876
+
877
+ # 76. SEARCH CACHE INVALIDATION
878
+
879
+ Cached results should not remain misleading after major underlying data changes.
880
+
881
+ # 77. OFFLINE SEARCH
882
+
883
+ Offline-capable applications should make local search useful even without a
884
+ network connection when the necessary data exists locally.
885
+
886
+ # 78. OFFLINE + REMOTE
887
+
888
+ When both local and remote search exist, distinguish:
889
+
890
+ ```text
891
+ Available offline
892
+ Requires connection
893
+ ```
894
+
895
+ when necessary.
896
+
897
+ # 79. SEARCH FAILURE
898
+
899
+ Network failure is not equivalent to zero results.
900
+
901
+ Never show:
902
+
903
+ ```text
904
+ No results
905
+ ```
906
+
907
+ when the actual problem is:
908
+
909
+ ```text
910
+ Unable to search
911
+ ```
912
+
913
+ # 80. SEARCH ERROR
914
+
915
+ Provide:
916
+
917
+ ```text
918
+ Explanation
919
+ Retry
920
+ Offline alternative
921
+ ```
922
+
923
+ where applicable.
924
+
925
+ # 81. SEARCH SECURITY
926
+
927
+ Search must respect authorization boundaries.
928
+
929
+ Never return objects simply because the search index contains them if the user
930
+ does not have permission to access them.
931
+
932
+ # 82. SEARCH PRIVACY
933
+
934
+ Do not expose private content through:
935
+
936
+ ```text
937
+ suggestions
938
+ recent searches
939
+ notifications
940
+ analytics
941
+ ```
942
+
943
+ without considering privacy.
944
+
945
+ # 83. SEARCH ANALYTICS
946
+
947
+ Useful aggregate metrics may include:
948
+
949
+ ```text
950
+ query frequency
951
+ zero-result rate
952
+ query reformulation
953
+ result selection
954
+ search abandonment
955
+ ```
956
+
957
+ Avoid collecting unnecessary query content.
958
+
959
+ # 84. SEARCH SUCCESS
960
+
961
+ A search is successful when the user reaches the intended content or action,
962
+ not merely when an API returns results.
963
+
964
+ # 85. RESULT QUALITY
965
+
966
+ Evaluate:
967
+
968
+ ```text
969
+ relevance
970
+ ranking
971
+ clarity
972
+ speed
973
+ actionability
974
+ ```
975
+
976
+ .
977
+
978
+ # 86. SEARCH ACCESSIBILITY
979
+
980
+ Search should expose:
981
+
982
+ ```text
983
+ label
984
+ scope
985
+ query
986
+ result count when relevant
987
+ loading state
988
+ error state
989
+ ```
990
+
991
+ to assistive technologies.
992
+
993
+ # 87. ACCESSIBLE SUGGESTIONS
994
+
995
+ Suggestions must have clear semantics.
996
+
997
+ Users should understand whether selecting a suggestion:
998
+
999
+ ```text
1000
+ executes search
1001
+ opens content
1002
+ changes scope
1003
+ ```
1004
+
1005
+ .
1006
+
1007
+ # 88. ACCESSIBLE RESULTS
1008
+
1009
+ Each result should expose its:
1010
+
1011
+ ```text
1012
+ name
1013
+ type
1014
+ important metadata
1015
+ available actions
1016
+ ```
1017
+
1018
+ .
1019
+
1020
+ # 89. DYNAMIC TYPE
1021
+
1022
+ Search interfaces must tolerate larger text sizes.
1023
+
1024
+ Do not assume result labels fit on one line.
1025
+
1026
+ # 90. TOUCH TARGETS
1027
+
1028
+ Search controls and result actions must provide sufficiently large interaction
1029
+ areas.
1030
+
1031
+ # 91. SEARCH MOTION
1032
+
1033
+ Motion can communicate:
1034
+
1035
+ ```text
1036
+ search activation
1037
+ result appearance
1038
+ filter changes
1039
+ scope changes
1040
+ ```
1041
+
1042
+ but should remain subordinate to retrieval speed.
1043
+
1044
+ # 92. SEARCH TRANSITIONS
1045
+
1046
+ Avoid elaborate transitions that delay access to results.
1047
+
1048
+ # 93. RESULT UPDATES
1049
+
1050
+ When results change rapidly while typing, prevent visually chaotic movement.
1051
+
1052
+ # 94. RESULT STABILITY
1053
+
1054
+ Preserve stable result identity where possible.
1055
+
1056
+ Avoid unnecessary reordering for tiny ranking changes while the user is reading.
1057
+
1058
+ # 95. SEARCH RESULT ACTIONS
1059
+
1060
+ Common actions:
1061
+
1062
+ ```text
1063
+ Open
1064
+ Play
1065
+ Preview
1066
+ Share
1067
+ Favorite
1068
+ Delete
1069
+ Edit
1070
+ ```
1071
+
1072
+ Only expose actions relevant to the object.
1073
+
1074
+ # 96. CONTEXT MENU
1075
+
1076
+ Secondary result actions can live in contextual menus rather than cluttering
1077
+ every result row.
1078
+
1079
+ # 97. SEARCH PREVIEW
1080
+
1081
+ Preview can reduce navigation cost.
1082
+
1083
+ Useful for:
1084
+
1085
+ ```text
1086
+ documents
1087
+ images
1088
+ music
1089
+ files
1090
+ notes
1091
+ ```
1092
+
1093
+ when a lightweight preview is possible.
1094
+
1095
+ # 98. SEARCH + RECENT
1096
+
1097
+ Recent searches and recent content are different concepts.
1098
+
1099
+ Do not mix them without clear labeling.
1100
+
1101
+ # 99. SEARCH SUGGESTION PRIORITY
1102
+
1103
+ A useful order can be:
1104
+
1105
+ ```text
1106
+ Exact matching content
1107
+ Recent relevant queries
1108
+ Common relevant suggestions
1109
+ Broader discovery
1110
+ ```
1111
+
1112
+ depending on the product.
1113
+
1114
+ # 100. SEARCH FIELD ACTIONS
1115
+
1116
+ Useful actions may include:
1117
+
1118
+ ```text
1119
+ Clear
1120
+ Cancel
1121
+ Voice input
1122
+ Filter
1123
+ Scope
1124
+ ```
1125
+
1126
+ Only include controls that materially help.
1127
+
1128
+ # 101. CANCEL
1129
+
1130
+ Cancel should return users to the previous context predictably.
1131
+
1132
+ Do not unexpectedly reset unrelated state.
1133
+
1134
+ # 102. SEARCH STATE PRESERVATION
1135
+
1136
+ When leaving search and returning:
1137
+
1138
+ ```text
1139
+ query
1140
+ filters
1141
+ scroll position
1142
+ ```
1143
+
1144
+ may be preserved when that matches user expectations.
1145
+
1146
+ # 103. SEARCH STATE RESET
1147
+
1148
+ Reset state when persistence creates confusion.
1149
+
1150
+ The correct behavior depends on the search context.
1151
+
1152
+ # 104. SEARCH DEEP LINKS
1153
+
1154
+ Search results may open directly into specific application destinations.
1155
+
1156
+ The destination should preserve enough context to understand the selected result.
1157
+
1158
+ # 105. SEARCH NAVIGATION
1159
+
1160
+ Conceptually:
1161
+
1162
+ ```text
1163
+ Search
1164
+ ↓
1165
+ Result
1166
+ ↓
1167
+ Detail
1168
+ ↓
1169
+ Action
1170
+ ```
1171
+
1172
+ The back path should remain predictable.
1173
+
1174
+ # 106. SEARCH RESULT HIGHLIGHT
1175
+
1176
+ Highlight matched terms when it improves scanning.
1177
+
1178
+ Do not highlight every token aggressively.
1179
+
1180
+ # 107. SEARCH RESULT CONTEXT
1181
+
1182
+ For documents and long text, show a useful matching excerpt when possible.
1183
+
1184
+ # 108. DOCUMENT SEARCH
1185
+
1186
+ Document search may use:
1187
+
1188
+ ```text
1189
+ title
1190
+ filename
1191
+ metadata
1192
+ full text
1193
+ ```
1194
+
1195
+ depending on indexing capabilities.
1196
+
1197
+ # 109. MEDIA SEARCH
1198
+
1199
+ Media search may use:
1200
+
1201
+ ```text
1202
+ title
1203
+ artist
1204
+ album
1205
+ genre
1206
+ metadata
1207
+ ```
1208
+
1209
+ depending on available data.
1210
+
1211
+ # 110. FILE SEARCH
1212
+
1213
+ File search may use:
1214
+
1215
+ ```text
1216
+ filename
1217
+ extension
1218
+ folder
1219
+ metadata
1220
+ content
1221
+ ```
1222
+
1223
+ depending on permissions and indexing.
1224
+
1225
+ # 111. SETTINGS SEARCH
1226
+
1227
+ Settings search should expose the destination section so users understand
1228
+ where the setting lives.
1229
+
1230
+ # 112. SEARCH FILTER SHEET
1231
+
1232
+ For complex filtering:
1233
+
1234
+ ```text
1235
+ Search
1236
+ ↓
1237
+ Filter
1238
+ ↓
1239
+ Sheet
1240
+ ↓
1241
+ Apply
1242
+ ```
1243
+
1244
+ can provide a focused configuration surface.
1245
+
1246
+ # 113. FILTER APPLICATION
1247
+
1248
+ For lightweight filters, immediate application may be preferable.
1249
+
1250
+ For complex filters, explicit application may reduce confusion.
1251
+
1252
+ # 114. FILTER RESET
1253
+
1254
+ Provide a clear way to return to the unfiltered result set.
1255
+
1256
+ # 115. SEARCH SORTING
1257
+
1258
+ Sorting should remain secondary to relevance in most search experiences.
1259
+
1260
+ Do not automatically replace relevance with alphabetical ordering.
1261
+
1262
+ # 116. SEARCH RELEVANCE VS SORT
1263
+
1264
+ Search answers:
1265
+
1266
+ ```text
1267
+ "What matches?"
1268
+ ```
1269
+
1270
+ Sort answers:
1271
+
1272
+ ```text
1273
+ "In what order should matches appear?"
1274
+ ```
1275
+
1276
+ Keep these concepts separate.
1277
+
1278
+ # 117. SEARCH EMPTY STATE
1279
+
1280
+ Before searching:
1281
+
1282
+ ```text
1283
+ Help users start.
1284
+ ```
1285
+
1286
+ After searching:
1287
+
1288
+ ```text
1289
+ Help users recover.
1290
+ ```
1291
+
1292
+ These are different UX problems.
1293
+
1294
+ # 118. SEARCH QUALITY LOOP
1295
+
1296
+ ```text
1297
+ Query
1298
+ ↓
1299
+ Results
1300
+ ↓
1301
+ User selects / reforms query
1302
+ ↓
1303
+ Observe failure
1304
+ ↓
1305
+ Improve ranking
1306
+ ```
1307
+
1308
+ Search should evolve from actual usage patterns.
1309
+
1310
+ # 119. AGENT SEARCH DECISION TREE
1311
+
1312
+ ```text
1313
+ What does the user want?
1314
+ ↓
1315
+ Find known object?
1316
+ ├── YES → Search
1317
+ └── NO
1318
+ ↓
1319
+ Explore possibilities?
1320
+ ├── YES → Discovery
1321
+ └── NO
1322
+ ↓
1323
+ Perform an action?
1324
+ ├── YES → Command / action search
1325
+ └── NO → Clarify interaction model
1326
+ ```
1327
+
1328
+ # 120. AGENT SEARCH DESIGN FLOW
1329
+
1330
+ ```text
1331
+ User intent
1332
+ ↓
1333
+ Search scope
1334
+ ↓
1335
+ Search entry point
1336
+ ↓
1337
+ Query model
1338
+ ↓
1339
+ Ranking
1340
+ ↓
1341
+ Suggestions
1342
+ ↓
1343
+ Results
1344
+ ↓
1345
+ Filters
1346
+ ↓
1347
+ Zero results
1348
+ ↓
1349
+ Errors
1350
+ ↓
1351
+ Actions
1352
+ ↓
1353
+ Navigation
1354
+ ↓
1355
+ Accessibility
1356
+ ↓
1357
+ Performance
1358
+ ↓
1359
+ Privacy
1360
+ ```
1361
+
1362
+ .
1363
+
1364
+ # 121. SEARCH REVIEW
1365
+
1366
+ Evaluate:
1367
+
1368
+ ```text
1369
+ Discoverability
1370
+ Scope clarity
1371
+ Input efficiency
1372
+ Ranking
1373
+ Result clarity
1374
+ Filtering
1375
+ Zero-result recovery
1376
+ Error handling
1377
+ Performance
1378
+ Accessibility
1379
+ Privacy
1380
+ ```
1381
+
1382
+ .
1383
+
1384
+ # 122. SEARCH REVIEW SCORE
1385
+
1386
+ ```text
1387
+ Discoverability 10
1388
+ Relevance 20
1389
+ Speed 15
1390
+ Result clarity 15
1391
+ Recovery 10
1392
+ Accessibility 10
1393
+ Privacy 5
1394
+ Navigation 5
1395
+ Filtering 5
1396
+ Consistency 5
1397
+ ──────────────────────────
1398
+ Total 100
1399
+ ```
1400
+
1401
+ Interpretation:
1402
+
1403
+ ```text
1404
+ 95–100 Exceptional
1405
+ 90–94 Excellent
1406
+ 80–89 Strong
1407
+ 70–79 Needs refinement
1408
+ 60–69 Weak
1409
+ <60 Redesign
1410
+ ```
1411
+
1412
+ # 123. FINAL SEARCH PRINCIPLE
1413
+
1414
+ Search should feel like:
1415
+
1416
+ ```text
1417
+ "I know what you mean."
1418
+ ```
1419
+
1420
+ not:
1421
+
1422
+ ```text
1423
+ "I received your string."
1424
+ ```
1425
+
1426
+ # 124. FINAL AGENT DIRECTIVE
1427
+
1428
+ Never implement search as only:
1429
+
1430
+ ```text
1431
+ Input
1432
+ ↓
1433
+ API call
1434
+ ↓
1435
+ Flat results
1436
+ ```
1437
+
1438
+ The agent must consider:
1439
+
1440
+ ```text
1441
+ intent
1442
+ scope
1443
+ ranking
1444
+ context
1445
+ suggestions
1446
+ history
1447
+ filters
1448
+ zero results
1449
+ errors
1450
+ privacy
1451
+ accessibility
1452
+ performance
1453
+ ```
1454
+
1455
+ A premium search system reduces the distance between **human intent and useful
1456
+ action**.