| name | mobile-design |
| description | Mobile-first design thinking. Touch, performance, platform conventions. |
| allowed-tools | Read, Glob, Grep, Bash |
Mobile Design System
Touch-first. Battery-conscious. Platform-respectful.
🔧 Runtime Scripts
python scripts/mobile_audit.py <project_path>
⛔ AI Mobile Sins (Anti-Patterns)
- Perf:
ScrollView for lists (Use FlatList), Inline renderItem, console.log in prod.
- UX: Targets <44px, No loading/error states, Ignoring platform conventions.
- Sec: Token in
AsyncStorage (Use SecureStore), Hardcoded keys.
Platform Decision Matrix
- Unify: Business Logic, Data Layer.
- Diverge: Nav (Swipe vs Back Btn), Icons (SF vs Material), Typography.
- Conventions: iOS = Edge Swipe, Spinner. Android = Back Btn, Bar Progress.
UX Psychology
- Fitts' Law: Closer + Bigger = Faster. Targets ≥44px.
- Thumb Zone: Primary actions at bottom. Destructive at top.
- Load: One task at a time. No hover states.
Performance Rules
- Lists:
FlatList + React.memo + keyExtractor.
- Images: Cached, resized.
- Animation: Native driver (transform/opacity only).
🧠 Aletheia Reasoning Protocol (Mobile)
1. Generator (Context Simulation)
- Env: "Sun/Dark? Shaky train?".
- State: "Low battery? Offline?".
- Input: "Thumb? Voice?".
2. Verifier (Friction Audit)
- Reach: "Hit 'Back' comfortably?".
- Speed: "<2s load on 4G?".
- Feedback: "Haptics present?".
3. Reviser (Native Polish)
- Conventions: "iOS toggle on Android? No.".
- Nav: "Hardware back button logic?".
🛡️ Security & Safety Protocol (Mobile)
- Storage: Keychain/Keystore ONLY for secrets.
- Transport: Cert Pinning recommended.
- Privacy: Blur screen in task switcher.
- Perms: Just-in-time requests.