Mobile Design Thinking
This file prevents AI from using memorized patterns and forces genuine thinking. Mechanisms to prevent standard AI training defaults in mobile development. The mobile equivalent of frontend's layout decomposition approach.
Mobile Design Thinking
This file prevents AI from using memorized patterns and forces genuine thinking. Mechanisms to prevent standard AI training defaults in mobile development. The mobile equivalent of frontend's layout decomposition approach.
๐ง DEEP MOBILE THINKING PROTOCOL
This Process is Mandatory Before Every Mobile Project
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ DEEP MOBILE THINKING โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ 1๏ธโฃ CONTEXT SCAN โ
โ โโโ What are my assumptions for this project? โ
โ โโโ QUESTION these assumptions โ
โ โ
โ 2๏ธโฃ ANTI-DEFAULT ANALYSIS โ
โ โโโ Am I applying a memorized pattern? โ
โ โโโ Is this pattern REALLY the best for THIS project? โ
โ โ
โ 3๏ธโฃ PLATFORM DECOMPOSITION โ
โ โโโ Did I think about iOS and Android separately? โ
โ โโโ What are the platform-specific patterns? โ
โ โ
โ 4๏ธโฃ TOUCH INTERACTION BREAKDOWN โ
โ โโโ Did I analyze each interaction individually? โ
โ โโโ Did I apply Fitts' Law, Thumb Zone? โ
โ โ
โ 5๏ธโฃ PERFORMANCE IMPACT ANALYSIS โ
โ โโโ Did I consider performance impact of each component? โ
โ โโโ Is the default solution performant? โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ซ AI MOBILE DEFAULTS (FORBIDDEN LIST)
Using These Patterns Automatically is FORBIDDEN!
The following patterns are "defaults" that AIs learned from training data. Before using any of these, QUESTION them and CONSIDER ALTERNATIVES!
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ซ AI MOBILE SAFE HARBOR โ
โ (Default Patterns - Never Use Without Questioning) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ NAVIGATION DEFAULTS: โ
โ โโโ Tab bar for every project (Would drawer be better?) โ
โ โโโ Fixed 5 tabs (Are 3 enough? For 6+, drawer?) โ
โ โโโ "Home" tab on left (What does user behavior say?) โ
โ โโโ Hamburger menu (Is it outdated now?) โ
โ โ
โ STATE MANAGEMENT DEFAULTS: โ
โ โโโ Redux everywhere (Is Zustand/Jotai sufficient?) โ
โ โโโ Global state for everything (Isn't local state enough?) โ
โ โโโ Context Provider hell (Is atom-based better?) โ
โ โโโ BLoC for every Flutter project (Is Riverpod more modern?) โ
โ โ
โ LIST IMPLEMENTATION DEFAULTS: โ
โ โโโ FlatList as default (Is FlashList more performant?) โ
โ โโโ windowSize=21 (Is it really needed?) โ
โ โโโ removeClippedSubviews (Always?) โ
โ โโโ ListView.builder (Is ListView.separated better?) โ
โ โ
โ UI PATTERN DEFAULTS: โ
โ โโโ FAB bottom-right (Is bottom-left more accessible?) โ
โ โโโ Pull-to-refresh on every list (Is it needed everywhere?) โ
โ โโโ Swipe-to-delete from left (Is right better?) โ
โ โโโ Bottom sheet for every modal (Is full screen better?) โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ COMPONENT DECOMPOSITION (MANDATORY)
Decomposition Analysis for Every Screen
Before designing any screen, perform this analysis:
SCREEN: [Screen Name]
โโโ PRIMARY ACTION: [What is the main action?]
โ โโโ Is it in thumb zone? [Yes/No โ Why?]
โ
โโโ TOUCH TARGETS: [All tappable elements]
โ โโโ [Element 1]: [Size]pt โ Sufficient?
โ โโโ [Element 2]: [Size]pt โ Sufficient?
โ โโโ Spacing: [Gap]pt โ Accidental tap risk?
โ
โโโ SCROLLABLE CONTENT:
โ โโโ Is it a list? โ FlatList/FlashList [Why this choice?]
โ โโโ Item count: ~[N] โ Performance consideration?
โ โโโ Fixed height? โ Is getItemLayout needed?
โ
โโโ STATE REQUIREMENTS:
โ โโโ Is local state sufficient?
โ โโโ Do I need to lift state?
โ โโโ Is global required? [Why?]
โ
โโโ PLATFORM DIFFERENCES:
โ โโโ iOS: [Anything different needed?]
โ โโโ Android: [Anything different needed?]
โ
โโโ OFFLINE CONSIDERATION:
โ โโโ Should this screen work offline?
โ โโโ Cache strategy: [Yes/No/Which one?]
โ
โโโ PERFORMANCE IMPACT:
โโโ Any heavy components?
โโโ Is memoization needed?
โโโ Animation performance?๐ฏ PATTERN QUESTIONING MATRIX
Ask these questions for every default pattern:
Navigation Pattern Questioning
| Assumption | Question | Alternative |
|---|---|---|
| "I'll use tab bar" | How many destinations? | 3 โ minimal tabs, 6+ โ drawer |
| "5 tabs" | Are all equally important? | "More" tab? Drawer hybrid? |
| "Bottom nav" | iPad/tablet support? | Navigation rail alternative |
| "Stack navigation" | Did I consider deep links? | URL structure = navigation structure |
State Pattern Questioning
| Assumption | Question | Alternative |
|---|---|---|
| "I'll use Redux" | How complex is the app? | Simple: Zustand, Server: TanStack |
| "Global state" | Is this state really global? | Local lift, Context selector |
| "Context Provider" | Will re-render be an issue? | Zustand, Jotai (atom-based) |
| "BLoC pattern" | Is the boilerplate worth it? | Riverpod (less code) |
List Pattern Questioning
| Assumption | Question | Alternative |
|---|---|---|
| "FlatList" | Is performance critical? | FlashList (faster) |
| "Standard renderItem" | Is it memoized? | useCallback + React.memo |
| "Index key" | Does data order change? | Use item.id |
| "ListView" | Are there separators? | ListView.separated |
UI Pattern Questioning
| Assumption | Question | Alternative |
|---|---|---|
| "FAB bottom-right" | User handedness? | Accessibility settings |
| "Pull-to-refresh" | Does this list need refresh? | Only when necessary |
| "Modal bottom sheet" | How much content? | Full screen modal might be better |
| "Swipe actions" | Discoverability? | Visible button alternative |
๐งช ANTI-MEMORIZATION TEST
Ask Yourself Before Every Solution
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ANTI-MEMORIZATION CHECKLIST โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โก Did I pick this solution "because I always do it this way"? โ
โ โ If YES: STOP. Consider alternatives. โ
โ โ
โ โก Is this a pattern I've seen frequently in training data? โ
โ โ If YES: Is it REALLY suitable for THIS project? โ
โ โ
โ โก Did I write this solution automatically without thinking? โ
โ โ If YES: Step back, do decomposition. โ
โ โ
โ โก Did I consider an alternative approach? โ
โ โ If NO: Think of at least 2 alternatives, then decide. โ
โ โ
โ โก Did I think platform-specifically? โ
โ โ If NO: Analyze iOS and Android separately. โ
โ โ
โ โก Did I consider performance impact of this solution? โ
โ โ If NO: What is the memory, CPU, battery impact? โ
โ โ
โ โก Is this solution suitable for THIS project's CONTEXT? โ
โ โ If NO: Customize based on context. โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ CONTEXT-BASED DECISION PROTOCOL
Think Differently Based on Project Type
DETERMINE PROJECT TYPE:
โ
โโโ E-Commerce App
โ โโโ Navigation: Tab (Home, Search, Cart, Account)
โ โโโ Lists: Product grids (memoized, image optimized)
โ โโโ Performance: Image caching CRITICAL
โ โโโ Offline: Cart persistence, product cache
โ โโโ Special: Checkout flow, payment security
โ
โโโ Social/Content App
โ โโโ Navigation: Tab (Feed, Search, Create, Notify, Profile)
โ โโโ Lists: Infinite scroll, complex items
โ โโโ Performance: Feed rendering CRITICAL
โ โโโ Offline: Feed cache, draft posts
โ โโโ Special: Real-time updates, media handling
โ
โโโ Productivity/SaaS App
โ โโโ Navigation: Drawer or adaptive (mobile tab, tablet rail)
โ โโโ Lists: Data tables, forms
โ โโโ Performance: Data sync
โ โโโ Offline: Full offline editing
โ โโโ Special: Conflict resolution, background sync
โ
โโโ Utility App
โ โโโ Navigation: Minimal (stack-only possible)
โ โโโ Lists: Probably minimal
โ โโโ Performance: Fast startup
โ โโโ Offline: Core feature offline
โ โโโ Special: Widget, shortcuts
โ
โโโ Media/Streaming App
โโโ Navigation: Tab (Home, Search, Library, Profile)
โโโ Lists: Horizontal carousels, vertical feeds
โโโ Performance: Preloading, buffering
โโโ Offline: Download management
โโโ Special: Background playback, casting๐ INTERACTION BREAKDOWN
Analysis for Every Gesture
Before adding any gesture:
GESTURE: [Gesture Type]
โโโ DISCOVERABILITY:
โ โโโ How will users discover this gesture?
โ โโโ Is there a visual hint?
โ โโโ Will it be shown in onboarding?
โ โโโ Is there a button alternative? (MANDATORY)
โ
โโโ PLATFORM CONVENTION:
โ โโโ What does this gesture mean on iOS?
โ โโโ What does this gesture mean on Android?
โ โโโ Am I deviating from platform convention?
โ
โโโ ACCESSIBILITY:
โ โโโ Can motor-impaired users perform this gesture?
โ โโโ Is there a VoiceOver/TalkBack alternative?
โ โโโ Does it work with switch control?
โ
โโโ CONFLICT CHECK:
โ โโโ Does it conflict with system gestures?
โ โ โโโ iOS: Edge swipe back
โ โ โโโ Android: Back gesture
โ โ โโโ Home indicator swipe
โ โโโ Is it consistent with other app gestures?
โ
โโโ FEEDBACK:
โโโ Is haptic feedback defined?
โโโ Is visual feedback sufficient?
โโโ Is audio feedback needed?๐ญ SPIRIT OVER CHECKLIST (Mobile Edition)
Passing the Checklist is Not Enough!
| โ Self-Deception | โ Honest Assessment |
|---|---|
| "Touch target is 44px" (but on edge, unreachable) | "Can user reach it one-handed?" |
| "I used FlatList" (but didn't memoize) | "Is scroll smooth?" |
| "Platform-specific nav" (but only icons differ) | "Does iOS feel like iOS, Android like Android?" |
| "Offline support exists" (but error message is generic) | "What can user actually do offline?" |
| "Loading state exists" (but just a spinner) | "Does user know how long to wait?" |
๐ด Passing the checklist is NOT the goal. Creating great mobile UX IS the goal.
๐ MOBILE DESIGN COMMITMENT
Fill This at the Start of Every Mobile Project
๐ฑ MOBILE DESIGN COMMITMENT
Project: _______________
Platform: iOS / Android / Both
1. Default pattern I will NOT use in this project:
โโโ _______________
2. Context-specific focus for this project:
โโโ _______________
3. Platform-specific differences I will implement:
โโโ iOS: _______________
โโโ Android: _______________
4. Area I will specifically optimize for performance:
โโโ _______________
5. Unique challenge of this project:
โโโ _______________
๐ง If I can't fill this commitment โ I don't understand the project well enough.
โ Go back, understand context better, ask the user.๐จ MANDATORY: Before Every Mobile Work
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PRE-WORK VALIDATION โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ โก Did I complete Component Decomposition? โ
โ โก Did I fill the Pattern Questioning Matrix? โ
โ โก Did I pass the Anti-Memorization Test? โ
โ โก Did I make context-based decisions? โ
โ โก Did I analyze Interaction Breakdown? โ
โ โก Did I fill the Mobile Design Commitment? โ
โ โ
โ โ ๏ธ Do not write code without completing these! โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโRemember: If you chose a solution "because that's how it's always done," you chose WITHOUT THINKING. Every project is unique. Every context is different. Every user behavior is specific. THINK, then code.
Author: davila7, Claude Code templates (davila7). License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The Claude Code library holds 13,843 entries. Members can search all of them by meaning and read every one in full.