@jakkrichm/create-nexus-devflow 2.0.19 → 2.0.21

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 (253) hide show
  1. package/dist/lib/update.js +19 -8
  2. package/dist/lib/update.js.map +1 -1
  3. package/package.json +1 -1
  4. package/template/.agents/skills/00-discover/SKILL.md +28 -116
  5. package/template/.agents/skills/40-execute/SKILL.md +1 -1
  6. package/template/.agents/skills/50-verify/SKILL.md +28 -161
  7. package/template/.agents/skills/60-report/SKILL.md +19 -92
  8. package/template/.agents/skills/70-release/SKILL.md +36 -11
  9. package/template/.agents/skills/check/SKILL.md +19 -7
  10. package/template/.agents/skills/complete/SKILL.md +21 -10
  11. package/template/.claude/skills/00-discover/SKILL.md +28 -116
  12. package/template/.claude/skills/40-execute/SKILL.md +1 -1
  13. package/template/.claude/skills/50-verify/SKILL.md +28 -161
  14. package/template/.claude/skills/60-report/SKILL.md +19 -92
  15. package/template/.claude/skills/70-release/SKILL.md +36 -11
  16. package/template/.claude/skills/check/SKILL.md +19 -7
  17. package/template/.claude/skills/complete/SKILL.md +21 -10
  18. package/template/AGENTS.md +1 -1
  19. package/template/devflow/context/coding-standards.md +40 -29
  20. package/template/.agents/skills/agent/SKILL.md +0 -165
  21. package/template/.agents/skills/api-and-interface-design/SKILL.md +0 -294
  22. package/template/.agents/skills/app-builder/SKILL.md +0 -75
  23. package/template/.agents/skills/app-builder/agent-coordination.md +0 -71
  24. package/template/.agents/skills/app-builder/feature-building.md +0 -53
  25. package/template/.agents/skills/app-builder/project-detection.md +0 -34
  26. package/template/.agents/skills/app-builder/scaffolding.md +0 -118
  27. package/template/.agents/skills/app-builder/tech-stack.md +0 -40
  28. package/template/.agents/skills/app-builder/templates/SKILL.md +0 -39
  29. package/template/.agents/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
  30. package/template/.agents/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
  31. package/template/.agents/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
  32. package/template/.agents/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
  33. package/template/.agents/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
  34. package/template/.agents/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
  35. package/template/.agents/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
  36. package/template/.agents/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
  37. package/template/.agents/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
  38. package/template/.agents/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
  39. package/template/.agents/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
  40. package/template/.agents/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
  41. package/template/.agents/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
  42. package/template/.agents/skills/architecture/SKILL.md +0 -55
  43. package/template/.agents/skills/architecture/context-discovery.md +0 -43
  44. package/template/.agents/skills/architecture/examples.md +0 -94
  45. package/template/.agents/skills/architecture/pattern-selection.md +0 -68
  46. package/template/.agents/skills/architecture/patterns-reference.md +0 -50
  47. package/template/.agents/skills/architecture/trade-off-analysis.md +0 -77
  48. package/template/.agents/skills/bash-linux/SKILL.md +0 -199
  49. package/template/.agents/skills/behavioral-modes/SKILL.md +0 -242
  50. package/template/.agents/skills/brainstorm/SKILL.md +0 -168
  51. package/template/.agents/skills/changelog/SKILL.md +0 -109
  52. package/template/.agents/skills/codebase-design/DEEPENING.md +0 -24
  53. package/template/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -28
  54. package/template/.agents/skills/codebase-design/SKILL.md +0 -58
  55. package/template/.agents/skills/commit/SKILL.md +0 -59
  56. package/template/.agents/skills/competitor-analysis/SKILL.md +0 -66
  57. package/template/.agents/skills/context-engineering/SKILL.md +0 -290
  58. package/template/.agents/skills/database-design/SKILL.md +0 -52
  59. package/template/.agents/skills/database-design/database-selection.md +0 -43
  60. package/template/.agents/skills/database-design/indexing.md +0 -39
  61. package/template/.agents/skills/database-design/migrations.md +0 -48
  62. package/template/.agents/skills/database-design/optimization.md +0 -36
  63. package/template/.agents/skills/database-design/orm-selection.md +0 -30
  64. package/template/.agents/skills/database-design/schema-design.md +0 -56
  65. package/template/.agents/skills/database-design/scripts/schema_validator.py +0 -172
  66. package/template/.agents/skills/deploy/SKILL.md +0 -63
  67. package/template/.agents/skills/documentation-and-adrs/SKILL.md +0 -278
  68. package/template/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
  69. package/template/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  70. package/template/.agents/skills/domain-modeling/SKILL.md +0 -74
  71. package/template/.agents/skills/followup/SKILL.md +0 -83
  72. package/template/.agents/skills/frontend-ui-engineering/SKILL.md +0 -326
  73. package/template/.agents/skills/frontend-ui-engineering/accessibility-checklist.md +0 -159
  74. package/template/.agents/skills/goal/SKILL.md +0 -148
  75. package/template/.agents/skills/handoff/SKILL.md +0 -46
  76. package/template/.agents/skills/help/SKILL.md +0 -253
  77. package/template/.agents/skills/i18n-localization/SKILL.md +0 -154
  78. package/template/.agents/skills/i18n-localization/scripts/i18n_checker.py +0 -241
  79. package/template/.agents/skills/insight/SKILL.md +0 -42
  80. package/template/.agents/skills/issue-triage/SKILL.md +0 -115
  81. package/template/.agents/skills/lint-and-validate/SKILL.md +0 -45
  82. package/template/.agents/skills/lint-and-validate/scripts/lint_runner.py +0 -184
  83. package/template/.agents/skills/lint-and-validate/scripts/type_coverage.py +0 -173
  84. package/template/.agents/skills/mcp-builder/SKILL.md +0 -176
  85. package/template/.agents/skills/merge/SKILL.md +0 -76
  86. package/template/.agents/skills/mobile-design/SKILL.md +0 -394
  87. package/template/.agents/skills/mobile-design/decision-trees.md +0 -516
  88. package/template/.agents/skills/mobile-design/mobile-backend.md +0 -491
  89. package/template/.agents/skills/mobile-design/mobile-color-system.md +0 -420
  90. package/template/.agents/skills/mobile-design/mobile-debugging.md +0 -122
  91. package/template/.agents/skills/mobile-design/mobile-design-thinking.md +0 -357
  92. package/template/.agents/skills/mobile-design/mobile-navigation.md +0 -458
  93. package/template/.agents/skills/mobile-design/mobile-performance.md +0 -767
  94. package/template/.agents/skills/mobile-design/mobile-testing.md +0 -356
  95. package/template/.agents/skills/mobile-design/mobile-typography.md +0 -433
  96. package/template/.agents/skills/mobile-design/platform-android.md +0 -666
  97. package/template/.agents/skills/mobile-design/platform-ios.md +0 -561
  98. package/template/.agents/skills/mobile-design/scripts/mobile_audit.py +0 -670
  99. package/template/.agents/skills/mobile-design/touch-psychology.md +0 -537
  100. package/template/.agents/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
  101. package/template/.agents/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
  102. package/template/.agents/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
  103. package/template/.agents/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
  104. package/template/.agents/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
  105. package/template/.agents/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
  106. package/template/.agents/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
  107. package/template/.agents/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
  108. package/template/.agents/skills/nextjs-react-expert/SKILL.md +0 -286
  109. package/template/.agents/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
  110. package/template/.agents/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
  111. package/template/.agents/skills/nodejs-best-practices/SKILL.md +0 -333
  112. package/template/.agents/skills/package-json-generator/SKILL.md +0 -60
  113. package/template/.agents/skills/package-json-generator/scripts/generate.js +0 -120
  114. package/template/.agents/skills/package-json-generator/scripts/run.sh +0 -19
  115. package/template/.agents/skills/parallel-agents/SKILL.md +0 -144
  116. package/template/.agents/skills/performance-optimization/SKILL.md +0 -299
  117. package/template/.agents/skills/performance-optimization/performance-checklist.md +0 -113
  118. package/template/.agents/skills/powershell-windows/SKILL.md +0 -167
  119. package/template/.agents/skills/pr/SKILL.md +0 -93
  120. package/template/.agents/skills/prd/SKILL.md +0 -127
  121. package/template/.agents/skills/preview/SKILL.md +0 -42
  122. package/template/.agents/skills/python-patterns/SKILL.md +0 -441
  123. package/template/.agents/skills/research/SKILL.md +0 -143
  124. package/template/.agents/skills/review/SKILL.md +0 -71
  125. package/template/.agents/skills/roadmap-strategy/SKILL.md +0 -94
  126. package/template/.agents/skills/security-review/SKILL.md +0 -63
  127. package/template/.agents/skills/seo-fundamentals/SKILL.md +0 -129
  128. package/template/.agents/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
  129. package/template/.agents/skills/server-management/SKILL.md +0 -161
  130. package/template/.agents/skills/simplify/SKILL.md +0 -70
  131. package/template/.agents/skills/skill-development/SKILL.md +0 -86
  132. package/template/.agents/skills/spec/SKILL.md +0 -39
  133. package/template/.agents/skills/spec-driven-development/SKILL.md +0 -207
  134. package/template/.agents/skills/tailwind-patterns/SKILL.md +0 -269
  135. package/template/.agents/skills/type-design/SKILL.md +0 -84
  136. package/template/.agents/skills/ui-ux-pro-max/SKILL.md +0 -75
  137. package/template/.claude/skills/agent/SKILL.md +0 -165
  138. package/template/.claude/skills/api-and-interface-design/SKILL.md +0 -294
  139. package/template/.claude/skills/app-builder/SKILL.md +0 -75
  140. package/template/.claude/skills/app-builder/agent-coordination.md +0 -71
  141. package/template/.claude/skills/app-builder/feature-building.md +0 -53
  142. package/template/.claude/skills/app-builder/project-detection.md +0 -34
  143. package/template/.claude/skills/app-builder/scaffolding.md +0 -118
  144. package/template/.claude/skills/app-builder/tech-stack.md +0 -40
  145. package/template/.claude/skills/app-builder/templates/SKILL.md +0 -39
  146. package/template/.claude/skills/app-builder/templates/astro-static/TEMPLATE.md +0 -76
  147. package/template/.claude/skills/app-builder/templates/chrome-extension/TEMPLATE.md +0 -92
  148. package/template/.claude/skills/app-builder/templates/cli-tool/TEMPLATE.md +0 -88
  149. package/template/.claude/skills/app-builder/templates/electron-desktop/TEMPLATE.md +0 -88
  150. package/template/.claude/skills/app-builder/templates/express-api/TEMPLATE.md +0 -83
  151. package/template/.claude/skills/app-builder/templates/flutter-app/TEMPLATE.md +0 -90
  152. package/template/.claude/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +0 -90
  153. package/template/.claude/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +0 -122
  154. package/template/.claude/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +0 -122
  155. package/template/.claude/skills/app-builder/templates/nextjs-static/TEMPLATE.md +0 -169
  156. package/template/.claude/skills/app-builder/templates/nuxt-app/TEMPLATE.md +0 -134
  157. package/template/.claude/skills/app-builder/templates/python-fastapi/TEMPLATE.md +0 -83
  158. package/template/.claude/skills/app-builder/templates/react-native-app/TEMPLATE.md +0 -119
  159. package/template/.claude/skills/architecture/SKILL.md +0 -55
  160. package/template/.claude/skills/architecture/context-discovery.md +0 -43
  161. package/template/.claude/skills/architecture/examples.md +0 -94
  162. package/template/.claude/skills/architecture/pattern-selection.md +0 -68
  163. package/template/.claude/skills/architecture/patterns-reference.md +0 -50
  164. package/template/.claude/skills/architecture/trade-off-analysis.md +0 -77
  165. package/template/.claude/skills/bash-linux/SKILL.md +0 -199
  166. package/template/.claude/skills/behavioral-modes/SKILL.md +0 -242
  167. package/template/.claude/skills/brainstorm/SKILL.md +0 -168
  168. package/template/.claude/skills/changelog/SKILL.md +0 -109
  169. package/template/.claude/skills/codebase-design/DEEPENING.md +0 -24
  170. package/template/.claude/skills/codebase-design/DESIGN-IT-TWICE.md +0 -28
  171. package/template/.claude/skills/codebase-design/SKILL.md +0 -58
  172. package/template/.claude/skills/commit/SKILL.md +0 -59
  173. package/template/.claude/skills/competitor-analysis/SKILL.md +0 -66
  174. package/template/.claude/skills/context-engineering/SKILL.md +0 -290
  175. package/template/.claude/skills/database-design/SKILL.md +0 -52
  176. package/template/.claude/skills/database-design/database-selection.md +0 -43
  177. package/template/.claude/skills/database-design/indexing.md +0 -39
  178. package/template/.claude/skills/database-design/migrations.md +0 -48
  179. package/template/.claude/skills/database-design/optimization.md +0 -36
  180. package/template/.claude/skills/database-design/orm-selection.md +0 -30
  181. package/template/.claude/skills/database-design/schema-design.md +0 -56
  182. package/template/.claude/skills/database-design/scripts/schema_validator.py +0 -172
  183. package/template/.claude/skills/deploy/SKILL.md +0 -63
  184. package/template/.claude/skills/documentation-and-adrs/SKILL.md +0 -278
  185. package/template/.claude/skills/domain-modeling/ADR-FORMAT.md +0 -47
  186. package/template/.claude/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
  187. package/template/.claude/skills/domain-modeling/SKILL.md +0 -74
  188. package/template/.claude/skills/followup/SKILL.md +0 -83
  189. package/template/.claude/skills/frontend-ui-engineering/SKILL.md +0 -326
  190. package/template/.claude/skills/frontend-ui-engineering/accessibility-checklist.md +0 -159
  191. package/template/.claude/skills/goal/SKILL.md +0 -148
  192. package/template/.claude/skills/handoff/SKILL.md +0 -46
  193. package/template/.claude/skills/help/SKILL.md +0 -253
  194. package/template/.claude/skills/i18n-localization/SKILL.md +0 -154
  195. package/template/.claude/skills/i18n-localization/scripts/i18n_checker.py +0 -241
  196. package/template/.claude/skills/insight/SKILL.md +0 -42
  197. package/template/.claude/skills/issue-triage/SKILL.md +0 -115
  198. package/template/.claude/skills/lint-and-validate/SKILL.md +0 -45
  199. package/template/.claude/skills/lint-and-validate/scripts/lint_runner.py +0 -184
  200. package/template/.claude/skills/lint-and-validate/scripts/type_coverage.py +0 -173
  201. package/template/.claude/skills/mcp-builder/SKILL.md +0 -176
  202. package/template/.claude/skills/merge/SKILL.md +0 -76
  203. package/template/.claude/skills/mobile-design/SKILL.md +0 -394
  204. package/template/.claude/skills/mobile-design/decision-trees.md +0 -516
  205. package/template/.claude/skills/mobile-design/mobile-backend.md +0 -491
  206. package/template/.claude/skills/mobile-design/mobile-color-system.md +0 -420
  207. package/template/.claude/skills/mobile-design/mobile-debugging.md +0 -122
  208. package/template/.claude/skills/mobile-design/mobile-design-thinking.md +0 -357
  209. package/template/.claude/skills/mobile-design/mobile-navigation.md +0 -458
  210. package/template/.claude/skills/mobile-design/mobile-performance.md +0 -767
  211. package/template/.claude/skills/mobile-design/mobile-testing.md +0 -356
  212. package/template/.claude/skills/mobile-design/mobile-typography.md +0 -433
  213. package/template/.claude/skills/mobile-design/platform-android.md +0 -666
  214. package/template/.claude/skills/mobile-design/platform-ios.md +0 -561
  215. package/template/.claude/skills/mobile-design/scripts/mobile_audit.py +0 -670
  216. package/template/.claude/skills/mobile-design/touch-psychology.md +0 -537
  217. package/template/.claude/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
  218. package/template/.claude/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
  219. package/template/.claude/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
  220. package/template/.claude/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
  221. package/template/.claude/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
  222. package/template/.claude/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
  223. package/template/.claude/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
  224. package/template/.claude/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
  225. package/template/.claude/skills/nextjs-react-expert/SKILL.md +0 -286
  226. package/template/.claude/skills/nextjs-react-expert/scripts/convert_rules.py +0 -222
  227. package/template/.claude/skills/nextjs-react-expert/scripts/react_performance_checker.py +0 -252
  228. package/template/.claude/skills/nodejs-best-practices/SKILL.md +0 -333
  229. package/template/.claude/skills/package-json-generator/SKILL.md +0 -60
  230. package/template/.claude/skills/package-json-generator/scripts/generate.js +0 -120
  231. package/template/.claude/skills/package-json-generator/scripts/run.sh +0 -19
  232. package/template/.claude/skills/parallel-agents/SKILL.md +0 -144
  233. package/template/.claude/skills/performance-optimization/SKILL.md +0 -299
  234. package/template/.claude/skills/performance-optimization/performance-checklist.md +0 -113
  235. package/template/.claude/skills/powershell-windows/SKILL.md +0 -167
  236. package/template/.claude/skills/pr/SKILL.md +0 -93
  237. package/template/.claude/skills/prd/SKILL.md +0 -127
  238. package/template/.claude/skills/preview/SKILL.md +0 -42
  239. package/template/.claude/skills/python-patterns/SKILL.md +0 -441
  240. package/template/.claude/skills/research/SKILL.md +0 -143
  241. package/template/.claude/skills/review/SKILL.md +0 -71
  242. package/template/.claude/skills/roadmap-strategy/SKILL.md +0 -94
  243. package/template/.claude/skills/security-review/SKILL.md +0 -63
  244. package/template/.claude/skills/seo-fundamentals/SKILL.md +0 -129
  245. package/template/.claude/skills/seo-fundamentals/scripts/seo_checker.py +0 -219
  246. package/template/.claude/skills/server-management/SKILL.md +0 -161
  247. package/template/.claude/skills/simplify/SKILL.md +0 -70
  248. package/template/.claude/skills/skill-development/SKILL.md +0 -86
  249. package/template/.claude/skills/spec/SKILL.md +0 -39
  250. package/template/.claude/skills/spec-driven-development/SKILL.md +0 -207
  251. package/template/.claude/skills/tailwind-patterns/SKILL.md +0 -269
  252. package/template/.claude/skills/type-design/SKILL.md +0 -84
  253. package/template/.claude/skills/ui-ux-pro-max/SKILL.md +0 -75
@@ -1,537 +0,0 @@
1
- # Touch Psychology Reference
2
-
3
- > Deep dive into mobile touch interaction, Fitts' Law for touch, thumb zone anatomy, gesture psychology, and haptic feedback.
4
- > **This is the mobile equivalent of ux-psychology.md - CRITICAL for all mobile work.**
5
-
6
- ---
7
-
8
- ## 1. Fitts' Law for Touch
9
-
10
- ### The Fundamental Difference
11
-
12
- ```
13
- DESKTOP (Mouse/Trackpad):
14
- ├── Cursor size: 1 pixel (precision)
15
- ├── Visual feedback: Hover states
16
- ├── Error cost: Low (easy to retry)
17
- └── Target acquisition: Fast, precise
18
-
19
- MOBILE (Finger):
20
- ├── Contact area: ~7mm diameter (imprecise)
21
- ├── Visual feedback: No hover, only tap
22
- ├── Error cost: High (frustrating retries)
23
- ├── Occlusion: Finger covers the target
24
- └── Target acquisition: Slower, needs larger targets
25
- ```
26
-
27
- ### Fitts' Law Formula Adapted
28
-
29
- ```
30
- Touch acquisition time = a + b × log₂(1 + D/W)
31
-
32
- Where:
33
- ├── D = Distance to target
34
- ├── W = Width of target
35
- └── For touch: W must be MUCH larger than desktop
36
- ```
37
-
38
- ### Minimum Touch Target Sizes
39
-
40
- | Platform | Minimum | Recommended | Use For |
41
- |----------|---------|-------------|---------|
42
- | **iOS (HIG)** | 44pt × 44pt | 48pt+ | All tappable elements |
43
- | **Android (Material)** | 48dp × 48dp | 56dp+ | All tappable elements |
44
- | **WCAG 2.2** | 44px × 44px | - | Accessibility compliance |
45
- | **Critical Actions** | - | 56-64px | Primary CTAs, destructive actions |
46
-
47
- ### Visual Size vs Hit Area
48
-
49
- ```
50
- ┌─────────────────────────────────────┐
51
- │ │
52
- │ ┌─────────────────────────┐ │
53
- │ │ │ │
54
- │ │ [ BUTTON ] │ ← Visual: 36px
55
- │ │ │ │
56
- │ └─────────────────────────┘ │
57
- │ │ ← Hit area: 48px (padding extends)
58
- └─────────────────────────────────────┘
59
-
60
- ✅ CORRECT: Visual can be smaller if hit area is minimum 44-48px
61
- ❌ WRONG: Making hit area same as small visual element
62
- ```
63
-
64
- ### Application Rules
65
-
66
- | Element | Visual Size | Hit Area |
67
- |---------|-------------|----------|
68
- | Icon buttons | 24-32px | 44-48px (padding) |
69
- | Text links | Any | 44px height minimum |
70
- | List items | Full width | 48-56px height |
71
- | Checkboxes/Radio | 20-24px | 44-48px tap area |
72
- | Close/X buttons | 24px | 44px minimum |
73
- | Tab bar items | Icon 24-28px | Full tab width, 49px height (iOS) |
74
-
75
- ---
76
-
77
- ## 2. Thumb Zone Anatomy
78
-
79
- ### One-Handed Phone Usage
80
-
81
- ```
82
- Research shows: 49% of users hold phone one-handed.
83
-
84
- ┌─────────────────────────────────────┐
85
- │ │
86
- │ ┌─────────────────────────────┐ │
87
- │ │ HARD TO REACH │ │ ← Status bar, top nav
88
- │ │ (requires stretch) │ │ Put: Back, menu, settings
89
- │ │ │ │
90
- │ ├─────────────────────────────┤ │
91
- │ │ │ │
92
- │ │ OK TO REACH │ │ ← Content area
93
- │ │ (comfortable) │ │ Put: Secondary actions, content
94
- │ │ │ │
95
- │ ├─────────────────────────────┤ │
96
- │ │ │ │
97
- │ │ EASY TO REACH │ │ ← Tab bar, FAB zone
98
- │ │ (thumb's arc) │ │ Put: PRIMARY CTAs!
99
- │ │ │ │
100
- │ └─────────────────────────────┘ │
101
- │ │
102
- │ [ HOME ] │
103
- └─────────────────────────────────────┘
104
- ```
105
-
106
- ### Thumb Arc (Right-Handed User)
107
-
108
- ```
109
- Right hand holding phone:
110
-
111
- ┌───────────────────────────────┐
112
- │ STRETCH STRETCH OK │
113
- │ │
114
- │ STRETCH OK EASY │
115
- │ │
116
- │ OK EASY EASY │
117
- │ │
118
- │ EASY EASY EASY │
119
- └───────────────────────────────┘
120
-
121
- Left hand is mirrored.
122
- → Design for BOTH hands or assume right-dominant
123
- ```
124
-
125
- ### Placement Guidelines
126
-
127
- | Element Type | Ideal Position | Reason |
128
- |--------------|----------------|--------|
129
- | **Primary CTA** | Bottom center/right | Easy thumb reach |
130
- | **Tab bar** | Bottom | Natural thumb position |
131
- | **FAB** | Bottom right | Easy for right hand |
132
- | **Navigation** | Top (stretch) | Less frequent use |
133
- | **Destructive actions** | Top left | Hard to reach = harder to accidentally tap |
134
- | **Dismiss/Cancel** | Top left | Convention + safety |
135
- | **Confirm/Done** | Top right or bottom | Convention |
136
-
137
- ### Large Phone Considerations (>6")
138
-
139
- ```
140
- On large phones, top 40% becomes "dead zone" for one-handed use.
141
-
142
- Solutions:
143
- ├── Reachability features (iOS)
144
- ├── Pull-down interfaces (drawer pulls content down)
145
- ├── Bottom sheet navigation
146
- ├── Floating action buttons
147
- └── Gesture-based alternatives to top actions
148
- ```
149
-
150
- ---
151
-
152
- ## 3. Touch vs Click Psychology
153
-
154
- ### Expectation Differences
155
-
156
- | Aspect | Click (Desktop) | Touch (Mobile) |
157
- |--------|-----------------|----------------|
158
- | **Feedback timing** | Can wait 100ms | Expect instant (<50ms) |
159
- | **Visual feedback** | Hover → Click | Immediate tap response |
160
- | **Error tolerance** | Easy retry | Frustrating, feels broken |
161
- | **Precision** | High | Low |
162
- | **Context menu** | Right-click | Long press |
163
- | **Cancel action** | ESC key | Swipe away, outside tap |
164
-
165
- ### Touch Feedback Requirements
166
-
167
- ```
168
- Tap → Immediate visual change (< 50ms)
169
- ├── Highlight state (background color change)
170
- ├── Scale down slightly (0.95-0.98)
171
- ├── Ripple effect (Android Material)
172
- ├── Haptic feedback for confirmation
173
- └── Never nothing!
174
-
175
- Loading → Show within 100ms
176
- ├── If action takes > 100ms
177
- ├── Show spinner/progress
178
- ├── Disable button (prevent double tap)
179
- └── Optimistic UI when possible
180
- ```
181
-
182
- ### The "Fat Finger" Problem
183
-
184
- ```
185
- Problem: Finger occludes target during tap
186
- ├── User can't see exactly where they're tapping
187
- ├── Visual feedback appears UNDER finger
188
- └── Increases error rate
189
-
190
- Solutions:
191
- ├── Show feedback ABOVE touch point (tooltips)
192
- ├── Use cursor-like offset for precision tasks
193
- ├── Magnification loupe for text selection
194
- └── Large enough targets that precision doesn't matter
195
- ```
196
-
197
- ---
198
-
199
- ## 4. Gesture Psychology
200
-
201
- ### Gesture Discoverability Problem
202
-
203
- ```
204
- Problem: Gestures are INVISIBLE.
205
- ├── User must discover/remember them
206
- ├── No hover/visual hint
207
- ├── Different mental model than tap
208
- └── Many users never discover gestures
209
-
210
- Solution: Always provide visible alternative
211
- ├── Swipe to delete → Also show delete button or menu
212
- ├── Pull to refresh → Also show refresh button
213
- ├── Pinch to zoom → Also show zoom controls
214
- └── Gestures as shortcuts, not only way
215
- ```
216
-
217
- ### Common Gesture Conventions
218
-
219
- | Gesture | Universal Meaning | Usage |
220
- |---------|-------------------|-------|
221
- | **Tap** | Select, activate | Primary action |
222
- | **Double tap** | Zoom in, like/favorite | Quick action |
223
- | **Long press** | Context menu, selection mode | Secondary options |
224
- | **Swipe horizontal** | Navigation, delete, actions | List actions |
225
- | **Swipe down** | Refresh, dismiss | Pull to refresh |
226
- | **Pinch** | Zoom in/out | Maps, images |
227
- | **Two-finger scroll** | Scroll within scroll | Nested scrolls |
228
-
229
- ### Gesture Affordance Design
230
-
231
- ```
232
- Swipe actions need visual hints:
233
-
234
- ┌─────────────────────────────────────────┐
235
- │ ┌───┐ │
236
- │ │ ≡ │ Item with hidden actions... → │ ← Edge hint (partial color)
237
- │ └───┘ │
238
- └─────────────────────────────────────────┘
239
-
240
- ✅ Good: Slight color peek at edge suggesting swipe
241
- ✅ Good: Drag handle icon ( ≡ ) suggesting reorder
242
- ✅ Good: Onboarding tooltip explaining gesture
243
- ❌ Bad: Hidden gestures with no visual affordance
244
- ```
245
-
246
- ### Platform Gesture Differences
247
-
248
- | Gesture | iOS | Android |
249
- |---------|-----|---------|
250
- | **Back** | Edge swipe from left | System back button/gesture |
251
- | **Share** | Action sheet | Share sheet |
252
- | **Context menu** | Long press / Force touch | Long press |
253
- | **Dismiss modal** | Swipe down | Back button or swipe |
254
- | **Delete in list** | Swipe left, tap delete | Swipe left, immediate or undo |
255
-
256
- ---
257
-
258
- ## 5. Haptic Feedback Patterns
259
-
260
- ### Why Haptics Matter
261
-
262
- ```
263
- Haptics provide:
264
- ├── Confirmation without looking
265
- ├── Richer, more premium feel
266
- ├── Accessibility (blind users)
267
- ├── Reduced error rate
268
- └── Emotional satisfaction
269
-
270
- Without haptics:
271
- ├── Feels "cheap" or web-like
272
- ├── User unsure if action registered
273
- └── Missed opportunity for delight
274
- ```
275
-
276
- ### iOS Haptic Types
277
-
278
- | Type | Intensity | Use Case |
279
- |------|-----------|----------|
280
- | `selection` | Light | Picker scroll, toggle, selection |
281
- | `light` | Light | Minor actions, hover equivalent |
282
- | `medium` | Medium | Standard tap confirmation |
283
- | `heavy` | Strong | Important completed, drop |
284
- | `success` | Pattern | Task completed successfully |
285
- | `warning` | Pattern | Warning, attention needed |
286
- | `error` | Pattern | Error occurred |
287
-
288
- ### Android Haptic Types
289
-
290
- | Type | Use Case |
291
- |------|----------|
292
- | `CLICK` | Standard tap feedback |
293
- | `HEAVY_CLICK` | Important actions |
294
- | `DOUBLE_CLICK` | Confirm actions |
295
- | `TICK` | Scroll/scrub feedback |
296
- | `LONG_PRESS` | Long press activation |
297
- | `REJECT` | Error/invalid action |
298
-
299
- ### Haptic Usage Guidelines
300
-
301
- ```
302
- ✅ DO use haptics for:
303
- ├── Button taps
304
- ├── Toggle switches
305
- ├── Picker/slider values
306
- ├── Pull to refresh trigger
307
- ├── Successful action completion
308
- ├── Errors and warnings
309
- ├── Swipe action thresholds
310
- └── Important state changes
311
-
312
- ❌ DON'T use haptics for:
313
- ├── Every scroll position
314
- ├── Every list item
315
- ├── Background events
316
- ├── Passive displays
317
- └── Too frequently (haptic fatigue)
318
- ```
319
-
320
- ### Haptic Intensity Mapping
321
-
322
- | Action Importance | Haptic Level | Example |
323
- |-------------------|--------------|---------|
324
- | Minor/Browsing | Light / None | Scrolling, hovering |
325
- | Standard Action | Medium / Selection | Tap, toggle |
326
- | Significant Action | Heavy / Success | Complete, confirm |
327
- | Critical/Destructive | Heavy / Warning | Delete, payment |
328
- | Error | Error pattern | Failed action |
329
-
330
- ---
331
-
332
- ## 6. Mobile Cognitive Load
333
-
334
- ### How Mobile Differs from Desktop
335
-
336
- | Factor | Desktop | Mobile | Implication |
337
- |--------|---------|--------|-------------|
338
- | **Attention** | Focused sessions | Interrupted constantly | Design for micro-sessions |
339
- | **Context** | Controlled environment | Anywhere, any condition | Handle bad lighting, noise |
340
- | **Multitasking** | Multiple windows | One app visible | Complete task in-app |
341
- | **Input speed** | Fast (keyboard) | Slow (touch typing) | Minimize input, smart defaults |
342
- | **Error recovery** | Easy (undo, back) | Harder (no keyboard shortcuts) | Prevent errors, easy recovery |
343
-
344
- ### Reducing Mobile Cognitive Load
345
-
346
- ```
347
- 1. ONE PRIMARY ACTION per screen
348
- └── Clear what to do next
349
-
350
- 2. PROGRESSIVE DISCLOSURE
351
- └── Show only what's needed now
352
-
353
- 3. SMART DEFAULTS
354
- └── Pre-fill what you can
355
-
356
- 4. CHUNKING
357
- └── Break long forms into steps
358
-
359
- 5. RECOGNITION over RECALL
360
- └── Show options, don't make user remember
361
-
362
- 6. CONTEXT PERSISTENCE
363
- └── Save state on interrupt/background
364
- ```
365
-
366
- ### Miller's Law for Mobile
367
-
368
- ```
369
- Desktop: 7±2 items in working memory
370
- Mobile: Reduce to 5±1 (more distractions)
371
-
372
- Navigation: Max 5 tab bar items
373
- Options: Max 5 per menu level
374
- Steps: Max 5 visible steps in progress
375
- ```
376
-
377
- ### Hick's Law for Mobile
378
-
379
- ```
380
- More choices = slower decisions
381
-
382
- Mobile impact: Even worse than desktop
383
- ├── Smaller screen = less overview
384
- ├── Scrolling required = items forgotten
385
- ├── Interruptions = lost context
386
- └── Decision fatigue faster
387
-
388
- Solution: Progressive disclosure
389
- ├── Start with 3-5 options
390
- ├── "More" for additional
391
- ├── Smart ordering (most used first)
392
- └── Previous selections remembered
393
- ```
394
-
395
- ---
396
-
397
- ## 7. Touch Accessibility
398
-
399
- ### Motor Impairment Considerations
400
-
401
- ```
402
- Users with motor impairments may:
403
- ├── Have tremors (need larger targets)
404
- ├── Use assistive devices (different input method)
405
- ├── Have limited reach (one-handed necessity)
406
- ├── Need more time (avoid timeouts)
407
- └── Make accidental touches (need confirmation)
408
-
409
- Design responses:
410
- ├── Generous touch targets (48dp+)
411
- ├── Adjustable timing for gestures
412
- ├── Undo for destructive actions
413
- ├── Switch control support
414
- └── Voice control support
415
- ```
416
-
417
- ### Touch Target Spacing (A11y)
418
-
419
- ```
420
- WCAG 2.2 Success Criterion 2.5.8:
421
-
422
- Touch targets MUST have:
423
- ├── Width: ≥ 44px
424
- ├── Height: ≥ 44px
425
- ├── Spacing: ≥ 8px from adjacent targets
426
-
427
- OR the target is:
428
- ├── Inline (within text)
429
- ├── User-controlled (user can resize)
430
- ├── Essential (no alternative design)
431
- ```
432
-
433
- ### Accessible Touch Patterns
434
-
435
- | Pattern | Accessible Implementation |
436
- |---------|---------------------------|
437
- | Swipe actions | Provide menu alternative |
438
- | Drag and drop | Provide select + move option |
439
- | Pinch zoom | Provide zoom buttons |
440
- | Force touch | Provide long press alternative |
441
- | Shake gesture | Provide button alternative |
442
-
443
- ---
444
-
445
- ## 8. Emotion in Touch
446
-
447
- ### The Premium Feel
448
-
449
- ```
450
- What makes touch feel "premium":
451
- ├── Instant response (< 50ms)
452
- ├── Appropriate haptic feedback
453
- ├── Smooth 60fps animations
454
- ├── Correct resistance/physics
455
- ├── Sound feedback (when appropriate)
456
- └── Attention to spring physics
457
- ```
458
-
459
- ### Emotional Touch Feedback
460
-
461
- | Emotion | Touch Response |
462
- |---------|----------------|
463
- | Success | Haptic success + confetti/check |
464
- | Error | Haptic error + shake animation |
465
- | Warning | Haptic warning + attention color |
466
- | Delight | Unexpected smooth animation |
467
- | Power | Heavy haptic on significant action |
468
-
469
- ### Trust Building Through Touch
470
-
471
- ```
472
- Trust signals in touch interactions:
473
- ├── Consistent behavior (same action = same response)
474
- ├── Reliable feedback (never fails silently)
475
- ├── Secure feel for sensitive actions
476
- ├── Professional animations (not janky)
477
- └── No accidental actions (confirmation for destructive)
478
- ```
479
-
480
- ---
481
-
482
- ## 9. Touch Psychology Checklist
483
-
484
- ### Before Every Screen
485
-
486
- - [ ] **All touch targets ≥ 44-48px?**
487
- - [ ] **Primary CTA in thumb zone?**
488
- - [ ] **Destructive actions require confirmation?**
489
- - [ ] **Gesture alternatives exist (visible buttons)?**
490
- - [ ] **Haptic feedback on important actions?**
491
- - [ ] **Immediate visual feedback on tap?**
492
- - [ ] **Loading states for actions > 100ms?**
493
-
494
- ### Before Release
495
-
496
- - [ ] **Tested on smallest supported device?**
497
- - [ ] **Tested one-handed on large phone?**
498
- - [ ] **All gestures have visible alternatives?**
499
- - [ ] **Haptics work correctly (test on device)?**
500
- - [ ] **Touch targets tested with accessibility settings?**
501
- - [ ] **No tiny close buttons or icons?**
502
-
503
- ---
504
-
505
- ## 10. Quick Reference Card
506
-
507
- ### Touch Target Sizes
508
-
509
- ```
510
- iOS Android WCAG
511
- Minimum: 44pt 48dp 44px
512
- Recommended: 48pt+ 56dp+ -
513
- Spacing: 8pt+ 8dp+ 8px+
514
- ```
515
-
516
- ### Thumb Zone Actions
517
-
518
- ```
519
- TOP: Navigation, settings, back (infrequent)
520
- MIDDLE: Content, secondary actions
521
- BOTTOM: Primary CTA, tab bar, FAB (frequent)
522
- ```
523
-
524
- ### Haptic Selection
525
-
526
- ```
527
- Light: Selection, toggle, minor
528
- Medium: Tap, standard action
529
- Heavy: Confirm, complete, drop
530
- Success: Task done
531
- Error: Failed action
532
- Warning: Attention needed
533
- ```
534
-
535
- ---
536
-
537
- > **Remember:** Every touch is a conversation between user and device. Make it feel natural, responsive, and respectful of human fingers—not precise cursor points.