
Mobile Design System
FreeDesign mobile apps with a touch-first approach.
Free ยท Opens the source repo
What Mobile Design System does
The Mobile Design System skill provides a comprehensive framework for creating mobile applications with a focus on touch interaction and platform-specific conventions. It emphasizes a mobile-first design philosophy, encouraging developers to think critically about the constraints and characteristics unique to mobile devices. This skill is particularly beneficial for those building applications for iOS and Android using frameworks like React Native or Flutter, as it integrates essential principles of mobile UX design, performance optimization, and platform adherence.
Included in the skill are vital reference files that cover topics such as mobile design thinking, touch psychology, performance patterns, and platform-specific guidelines. Each file is designed to encourage thoughtful design decisions rather than rote memorization of best practices. For instance, the touch psychology file delves into Fitts' Law and the importance of touch target sizes, while the performance file outlines techniques to achieve smooth animations and efficient memory use in mobile apps.
The skill also includes a runtime script, mobile_audit.py, which allows developers to perform a mobile UX and touch audit on their projects. This script can help identify potential issues in user experience and performance, ensuring that applications meet the high standards expected by users. Additionally, the skill outlines critical questions to ask during the design process, ensuring that developers consider platform choices and user interactions from the outset.
This skill is aimed at developers and designers who are serious about creating high-quality mobile applications that respect user experience and platform conventions. By leveraging the resources provided, users can enhance their mobile design practices and deliver applications that are both functional and user-friendly.
When to use it
Use this skill when starting a new mobile app project or when improving an existing app's design and performance.
When not to use it
This skill may not be suitable for projects that do not prioritize mobile-first design or for developers looking for quick, one-size-fits-all solutions.
What you can build with it
Starting a New Mobile App
When beginning a new mobile app project, use this skill to establish a strong foundation in mobile design principles.
Improving Existing Apps
If you have an existing app that needs a refresh, this skill can guide you in enhancing its UX and performance.
Cross-Platform Development
For projects targeting both iOS and Android, this skill provides insights on how to handle platform-specific design differences.
How to install Mobile Design System
View source1. Install with the skills CLI
npx skills add davila7/claude-code-templates/mobile-design --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by davila7Mobile Design System
Philosophy: Touch-first. Battery-conscious. Platform-respectful. Offline-capable. Core Principle: Mobile is NOT a small desktop. THINK mobile constraints, ASK platform choice.
๐ง Runtime Scripts
Execute these for validation (don't read, just run):
| Script | Purpose | Usage |
|---|---|---|
scripts/mobile_audit.py | Mobile UX & Touch Audit | python scripts/mobile_audit.py <project_path> |
๐ด MANDATORY: Read Reference Files Before Working!
โ DO NOT start development until you read the relevant files:
Universal (Always Read)
| File | Content | Status |
|---|---|---|
| mobile-design-thinking.md | โ ๏ธ ANTI-MEMORIZATION: Forces thinking, prevents AI defaults | โฌ CRITICAL FIRST |
| touch-psychology.md | Fitts' Law, gestures, haptics, thumb zone | โฌ CRITICAL |
| mobile-performance.md | RN/Flutter performance, 60fps, memory | โฌ CRITICAL |
| mobile-backend.md | Push notifications, offline sync, mobile API | โฌ CRITICAL |
| mobile-testing.md | Testing pyramid, E2E, platform-specific | โฌ CRITICAL |
| mobile-debugging.md | Native vs JS debugging, Flipper, Logcat | โฌ CRITICAL |
| mobile-navigation.md | Tab/Stack/Drawer, deep linking | โฌ Read |
| mobile-typography.md | System fonts, Dynamic Type, a11y | โฌ Read |
| mobile-color-system.md | OLED, dark mode, battery-aware | โฌ Read |
| decision-trees.md | Framework/state/storage selection | โฌ Read |
๐ง mobile-design-thinking.md is PRIORITY! This file ensures AI thinks instead of using memorized patterns.
Platform-Specific (Read Based on Target)
| Platform | File | Content | When to Read |
|---|---|---|---|
| iOS | platform-ios.md | Human Interface Guidelines, SF Pro, SwiftUI patterns | Building for iPhone/iPad |
| Android | platform-android.md | Material Design 3, Roboto, Compose patterns | Building for Android |
| Cross-Platform | Both above | Platform divergence points | React Native / Flutter |
๐ด If building for iOS โ Read platform-ios.md FIRST! ๐ด If building for Android โ Read platform-android.md FIRST! ๐ด If cross-platform โ Read BOTH and apply conditional platform logic!
โ ๏ธ CRITICAL: ASK BEFORE ASSUMING (MANDATORY)
STOP! If the user's request is open-ended, DO NOT default to your favorites.
You MUST Ask If Not Specified:
| Aspect | Ask | Why |
|---|---|---|
| Platform | "iOS, Android, or both?" | Affects EVERY design decision |
| Framework | "React Native, Flutter, or native?" | Determines patterns and tools |
| Navigation | "Tab bar, drawer, or stack-based?" | Core UX decision |
| State | "What state management? (Zustand/Redux/Riverpod/BLoC?)" | Architecture foundation |
| Offline | "Does this need to work offline?" | Affects data strategy |
| Target devices | "Phone only, or tablet support?" | Layout complexity |
โ AI MOBILE ANTI-PATTERNS (YASAK LฤฐSTESฤฐ)
๐ซ These are AI default tendencies that MUST be avoided!
Performance Sins
| โ NEVER DO | Why It's Wrong | โ ALWAYS DO |
|---|---|---|
| ScrollView for long lists | Renders ALL items, memory explodes | Use FlatList / FlashList / ListView.builder |
| Inline renderItem function | New function every render, all items re-render | useCallback + React.memo |
| Missing keyExtractor | Index-based keys cause bugs on reorder | Unique, stable ID from data |
| Skip getItemLayout | Async layout = janky scroll | Provide when items have fixed height |
| setState() everywhere | Unnecessary widget rebuilds | Targeted state, const constructors |
| Native driver: false | Animations blocked by JS thread | useNativeDriver: true always |
| console.log in production | Blocks JS thread severely | Remove before release build |
| Skip React.memo/const | Every item re-renders on any change | Memoize list items ALWAYS |
Touch/UX Sins
| โ NEVER DO | Why It's Wrong | โ ALWAYS DO |
|---|---|---|
| Touch target < 44px | Impossible to tap accurately, frustrating | Minimum 44pt (iOS) / 48dp (Android) |
| Spacing < 8px between targets | Accidental taps on neighbors | Minimum 8-12px gap |
| Gesture-only interactions | Motor impaired users excluded | Always provide button alternative |
| No loading state | User thinks app crashed | ALWAYS show loading feedback |
| No error state | User stuck, no recovery path | Show error with retry option |
| No offline handling | Crash/block when network lost | Graceful degradation, cached data |
| Ignore platform conventions | Users confused, muscle memory broken | iOS feels iOS, Android feels Android |
Security Sins
| โ NEVER DO | Why It's Wrong | โ ALWAYS DO |
|---|---|---|
| Token in AsyncStorage | Easily accessible, stolen on rooted device | SecureStore / Keychain / EncryptedSharedPreferences |
| Hardcode API keys | Reverse engineered from APK/IPA | Environment variables, secure storage |
| Skip SSL pinning | MITM attacks possible | Pin certificates in production |
| Log sensitive data | Logs can be extracted | Never log tokens, passwords, PII |
Architecture Sins
| โ NEVER DO | Why It's Wrong | โ ALWAYS DO |
|---|---|---|
| Business logic in UI | Untestable, unmaintainable | Service layer separation |
| Global state for everything | Unnecessary re-renders, complexity | Local state default, lift when needed |
| Deep linking as afterthought | Notifications, shares broken | Plan deep links from day one |
| Skip dispose/cleanup | Memory leaks, zombie listeners | Clean up subscriptions, timers |
๐ฑ Platform Decision Matrix
When to Unify vs Diverge
UNIFY (same on both) DIVERGE (platform-specific)
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโ
Business Logic โ
Always -
Data Layer โ
Always -
Core Features โ
Always -
Navigation - โ
iOS: edge swipe, Android: back button
Gestures - โ
Platform-native feel
Icons - โ
SF Symbols vs Material Icons
Date Pickers - โ
Native pickers feel right
Modals/Sheets - โ
iOS: bottom sheet vs Android: dialog
Typography - โ
SF Pro vs Roboto (or custom)
Error Dialogs - โ
Platform conventions for alerts
Quick Reference: Platform Defaults
| Element | iOS | Android |
|---|---|---|
| Primary Font | SF Pro / SF Compact | Roboto |
| Min Touch Target | 44pt ร 44pt | 48dp ร 48dp |
| Back Navigation | Edge swipe left | System back button/gesture |
| Bottom Tab Icons | SF Symbols | Material Symbols |
| Action Sheet | UIActionSheet from bottom | Bottom Sheet / Dialog |
| Progress | Spinner | Linear progress (Material) |
| Pull to Refresh | Native UIRefreshControl | SwipeRefreshLayout |
๐ง Mobile UX Psychology (Quick Reference)
Fitts' Law for Touch
Desktop: Cursor is precise (1px)
Mobile: Finger is imprecise (~7mm contact area)
โ Touch targets MUST be 44-48px minimum
โ Important actions in THUMB ZONE (bottom of screen)
โ Destructive actions AWAY from easy reach
Thumb Zone (One-Handed Usage)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ HARD TO REACH โ โ Navigation, menu, back
โ (stretch) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ OK TO REACH โ โ Secondary actions
โ (natural) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ EASY TO REACH โ โ PRIMARY CTAs, tab bar
โ (thumb's natural arc) โ โ Main content interaction
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
[ HOME ]
Mobile-Specific Cognitive Load
| Desktop | Mobile Difference |
|---|---|
| Multiple windows | ONE task at a time |
| Keyboard shortcuts | Touch gestures |
| Hover states | NO hover (tap or nothing) |
| Large viewport | Limited space, scroll vertical |
| Stable attention | Interrupted constantly |
For deep dive: touch-psychology.md
โก Performance Principles (Quick Reference)
React Native Critical Rules
// โ
CORRECT: Memoized renderItem + React.memo wrapper
const ListItem = React.memo(({ item }: { item: Item }) => (
<View style={styles.item}>
<Text>{item.title}</Text>
</View>
));
const renderItem = useCallback(
({ item }: { item: Item }) => <ListItem item={item} />,
[]
);
// โ
CORRECT: FlatList with all optimizations
<FlatList
data={items}
renderItem={renderItem}
keyExtractor={(item) => item.id} // Stable ID, NOT index
getItemLayout={(data, index) => ({
length: ITEM_HEIGHT,
offset: ITEM_HEIGHT * index,
index,
})}
removeClippedSubviews={true}
maxToRenderPerBatch={10}
windowSize={5}
/>
Flutter Critical Rules
// โ
CORRECT: const constructors prevent rebuilds
class MyWidget extends StatelessWidget {
const MyWidget({super.key}); // CONST!
@override
Widget build(BuildContext context) {
return const Column( // CONST!
children: [
Text('Static content'),
MyConstantWidget(),
],
);
}
}
// โ
CORRECT: Targeted state with ValueListenableBuilder
ValueListenableBuilder<int>(
valueListenable: counter,
builder: (context, value, child) => Text('$value'),
child: const ExpensiveWidget(), // Won't rebuild!
)
Animation Performance
GPU-accelerated (FAST): CPU-bound (SLOW):
โโโ transform โโโ width, height
โโโ opacity โโโ top, left, right, bottom
โโโ (use these ONLY) โโโ margin, padding
โโโ (AVOID animating these)
For complete guide: mobile-performance.md
๐ CHECKPOINT (MANDATORY Before Any Mobile Work)
Before writing ANY mobile code, you MUST complete this checkpoint:
๐ง CHECKPOINT:
Platform: [ iOS / Android / Both ]
Framework: [ React Native / Flutter / SwiftUI / Kotlin ]
Files Read: [ List the skill files you've read ]
3 Principles I Will Apply:
1. _______________
2. _______________
3. _______________
Anti-Patterns I Will Avoid:
1. _______________
2. _______________
Example:
๐ง CHECKPOINT:
Platform: iOS + Android (Cross-platform)
Framework: React Native + Expo
Files Read: touch-psychology.md, mobile-performance.md, platform-ios.md, platform-android.md
3 Principles I Will Apply:
1. FlatList with React.memo + useCallback for all lists
2. 48px touch targets, thumb zone for primary CTAs
3. Platform-specific navigation (edge swipe iOS, back button Android)
Anti-Patterns I Will Avoid:
1. ScrollView for lists โ FlatList
2. Inline renderItem โ Memoized
3. AsyncStorage for tokens โ SecureStore
๐ด Can't fill the checkpoint? โ GO BACK AND READ THE SKILL FILES.
๐ง Framework Decision Tree
WHAT ARE YOU BUILDING?
โ
โโโ Need OTA updates + rapid iteration + web team
โ โโโ โ
React Native + Expo
โ
โโโ Need pixel-perfect custom UI + performance critical
โ โโโ โ
Flutter
โ
โโโ Deep native features + single platform focus
โ โโโ iOS only โ SwiftUI
โ โโโ Android only โ Kotlin + Jetpack Compose
โ
โโโ Existing RN codebase + new features
โ โโโ โ
React Native (bare workflow)
โ
โโโ Enterprise + existing Flutter codebase
โโโ โ
Flutter
For complete decision trees: decision-trees.md
๐ Pre-Development Checklist
Before Starting ANY Mobile Project
- Platform confirmed? (iOS / Android / Both)
- Framework chosen? (RN / Flutter / Native)
- Navigation pattern decided? (Tabs / Stack / Drawer)
- State management selected? (Zustand / Redux / Riverpod / BLoC)
- Offline requirements known?
- Deep linking planned from day one?
- Target devices defined? (Phone / Tablet / Both)
Before Every Screen
- Touch targets โฅ 44-48px?
- Primary CTA in thumb zone?
- Loading state exists?
- Error state with retry exists?
- Offline handling considered?
- Platform conventions followed?
Before Release
- console.log removed?
- SecureStore for sensitive data?
- SSL pinning enabled?
- Lists optimized (memo, keyExtractor)?
- Memory cleanup on unmount?
- Tested on low-end devices?
- Accessibility labels on all interactive elements?
๐ Reference Files
For deeper guidance on specific areas:
| File | When to Use |
|---|---|
| mobile-design-thinking.md | FIRST! Anti-memorization, forces context-based thinking |
| touch-psychology.md | Understanding touch interaction, Fitts' Law, gesture design |
| mobile-performance.md | Optimizing RN/Flutter, 60fps, memory/battery |
| platform-ios.md | iOS-specific design, HIG compliance |
| platform-android.md | Android-specific design, Material Design 3 |
| mobile-navigation.md | Navigation patterns, deep linking |
| mobile-typography.md | Type scale, system fonts, accessibility |
| mobile-color-system.md | OLED optimization, dark mode, battery |
| decision-trees.md | Framework, state, storage decisions |
Remember: Mobile users are impatient, interrupted, and using imprecise fingers on small screens. Design for the WORST conditions: bad network, one hand, bright sun, low battery. If it works there, it works everywhere.
Frequently asked questions about Mobile Design System
Similar skills
Penpot UI/UX Design
Create professional UI/UX designs in Penpot with ease.
UX Theming
Streamline your VS Code theming process with best practices.
Wireframe
Create low-fidelity UI wireframes in SVG format.
Waitlist Page
Create a clean, focused pre-launch landing page.
Hallmark
Design skill for creating unique, structured UIs.
UI Styling
Create beautiful, accessible user interfaces effortlessly.
