1---
2name: mobile
3description: Build mobile applications with proper lifecycle handling, offline support, and platform conventions.
4metadata:
5 source: https://skillmd.com/skills/modbender/mobile
6 clawdbot:
7 emoji: 📱
8 os:
9 - linux
10 - darwin
11 - win32
12---
13
14## Lifecycle Awareness
15
16- App can be killed anytime in background—save state before backgrounding
17- Restore state on return—user expects to continue where they left off
18- Handle low memory warnings—release caches, non-essential resources
19- Background tasks have time limits—complete or request extension
20
21## Permissions
22
23- Ask in context, not at launch—explain why when requesting
24- Degrade gracefully if denied—app should still work with reduced features
25- Don't ask for unnecessary permissions—users notice and distrust
26- Re-request after demonstrating value—not immediately after denial
27
28## Offline First
29
30- Assume network is unreliable—design for offline, sync when possible
31- Cache aggressively—previous content better than loading spinner
32- Queue actions for retry—don't fail on network error
33- Conflict resolution strategy—last write wins or manual merge
34- Show sync status—user should know if data is current
35
36## Performance
37
38- Target 60fps—dropped frames feel janky
39- Main thread for UI only—heavy work on background threads
40- Memory matters more than desktop—constrained devices, aggressive OS killing
41- Battery awareness—reduce location polling, network requests when possible
42- Startup time under 2 seconds—first impression matters
43
44## Navigation Patterns
45
46- Follow platform conventions—iOS back gesture, Android back button
47- Navigation stack manageable—don't go 10 levels deep
48- Deep link to any screen—shareable, notification taps work
49- Preserve scroll position on return—don't jump to top
50
51## Notifications
52
53- Push for time-sensitive external events—new message, delivery update
54- Local for reminders, timers—user-initiated
55- Don't spam—users will disable; quality over quantity
56- Actionable when possible—reply, mark done from notification
57- Group related notifications—less intrusive
58
59## Deep Linking
60
61- Universal Links (iOS) / App Links (Android) for owned domains
62- Handle gracefully when app not installed—fallback to web
63- Parse parameters safely—malicious links exist
64- Test all entry points—not just main launch
65
66## Storage
67
68- Secure storage for tokens, credentials—Keychain, Keystore
69- User data survives reinstall where appropriate—cloud backup
70- Cache is cache—can be cleared; don't store critical data
71- Large files: consider on-demand download—not bundled in app
72
73## Input Handling
74
75- Keyboard avoidance—content shifts to stay visible
76- Dismiss keyboard appropriately—tap outside, scroll, submit
77- Input accessories for relevant actions—next field, done, toolbar
78- Paste, autofill support—reduce typing on small keyboards
79
80## Touch and Gestures
81
82- 44pt minimum touch target—consistent with platform guidelines
83- System gestures reserved—don't override swipe from edge
84- Gesture discoverability—hint or teach, don't assume knowledge
85- Haptic feedback for significant actions—confirmation, errors
86
87## Accessibility
88
89- VoiceOver (iOS) / TalkBack (Android) testing—navigate entire app
90- Dynamic type support—text scales with user preference
91- Sufficient contrast—check in accessibility inspector
92- Labels on all interactive elements—not just visible text
93
94## Testing
95
96- Real devices essential—simulators miss performance, sensors, edge cases
97- Multiple OS versions—support at least current minus 2
98- Different screen sizes—small phones to tablets
99- Network conditions—slow, intermittent, offline
100
101## App Store Survival
102
103- Read rejection reasons before submitting—common pitfalls documented
104- Privacy policy required—explain data collection
105- Login test account for reviewers—if auth required
106- No placeholder content—everything functional in review build
107- Update regularly—abandoned apps get deprioritized