Przejdź do treści
Biblioteka skilli
Projektowanie i UX · Przegląd i audyt

mobile-design

/mobile-design

Podpowiada zasady UX mobilnego: rozmiar dotyku, listy, tryb offline, nawigację i konwencje platform dla React Native, Expo, Fluttera i SwiftUI.

Repozytorium
cardume ↗
Licencja
MIT
Ostatnia zmiana repozytorium
04.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
15
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 04.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/mobile_audit.py

Co robi i kiedy

Podpowiada zasady UX mobilnego: rozmiar dotyku, listy, tryb offline, nawigację i konwencje platform dla React Native, Expo, Fluttera i SwiftUI.

Oryginalny opis (EN)

Mobile UX for iOS and Android: touch targets, lists, offline, navigation, platform conventions. Use when building or reviewing React Native, Expo, Flutter, SwiftUI or Kotlin screens.

Jak działa

  1. Audit Script
  2. Reference Files: Read What the Task Needs
  3. Ask Before Assuming
  4. 📱 Platform Decision Matrix
  5. 🧠 Mobile UX Psychology (Quick Reference)
  6. ⚡ Performance Principles (Quick Reference)
  7. Checkpoint (before mobile work)
  8. 🔧 Framework Decision Tree
  9. 📋 Pre-Development Checklist
  10. 📚 Reference Files
Sekcje z nagłówków SKILL.md, w oryginale · 385 linii, 1 996 słów
Podgląd SKILL.md
---
name: mobile-design
description: "Mobile UX for iOS and Android: touch targets, lists, offline, navigation, platform conventions. Use when building or reviewing React Native, Expo, Flutter, SwiftUI or Kotlin screens."
allowed-tools: Read Glob Grep Bash
compatibility: "Claude Code with the Cardume plugins (uses cardume-* commands, subagents or plugin paths); the guidance itself is portable."
---

# Mobile Design System

> **Philosophy:** Touch-first. Battery-conscious. Platform-respectful. Offline-capable.
> **Core Principle:** Mobile is not a small desktop. Think in mobile constraints; ask about platform choice.

---

## Audit Script

Run this for validation (no need to read the source):

| Command | Purpose | Usage |
|---------|---------|-------|
| `cardume-mobile-audit` | Mobile UX & touch audit | `cardume-mobile-audit <project_path>` |

---

## Reference Files: Read What the Task Needs

Before writing code, read the reference files relevant to the task. Start with `mobile-design-thinking.md` for any new screen or app — it counters memorized defaults by forcing context-based decisions.

### Core

| File | Content | When to Read |
|------|---------|--------------|
| [mobile-design-thinking.md](mobile-design-thinking.md) | Anti-memorization: context-based thinking instead of AI defaults | First, for new screens/apps |
| [touch-psychology.md](touch-psychology.md) | Fitts' Law, gestures, haptics, thumb zone | Any interactive UI |
| [mobile-performance.md](mobile-performance.md) | RN/Flutter performance, 60fps, memory | Lists, animations, perf work |
| [mobile-backend.md](mobile-backend.md) | Push notifications, offline sync, mobile API | Data layer, sync, notifications |
| [mobile-testing.md](mobile-testing.md) | Testing pyramid, E2E, platform-specific | Writing or planning tests |
| [mobile-debugging.md](mobile-debugging.md) | Native vs JS debugging, React Native DevTools, Logcat | Investigating bugs/crashes |
| [mobile-navigation.md](mobile-navigation.md) | Tab/Stack/Drawer, deep linking | Navigation structure |
| [mobile-typography.md](mobile-typography.md) | System fonts, Dynamic Type, a11y | Type decisions |
| [mobile-color-system.md](mobile-color-system.md) | OLED, dark mode, battery-aware | Color/theme decisions |
| [decision-trees.md](decision-trees.md) | Framework/state/storage selection | Architecture choices |

### Platform-specific (read based on target)

| Platform | File | Content | When to Read |
|----------|------|---------|--------------|
| **iOS** | [platform-ios.md](platform-ios.md) | Human Interface Guidelines, SF Pro, SwiftUI patterns | Building for iPhone/iPad |
| **Android** | [platform-android.md](platform-android.md) | Material Design 3, Roboto, Compose patterns | Building for Android |
| **Cross-Platform** | Both above | Platform divergence points | React Native / Flutter — apply conditional platform logic |

---

## Ask Before Assuming

If the request is open-ended, ask rather than defaulting to favorite tools — these choices shape everything downstream.

### 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

These are common AI default tendencies; avoid them.

#### Performance Sins

| ❌ Avoid | Why It's Wrong | ✅ Do Instead |
|-------------|----------------|--------------|
| **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 | Always memoize list items |

#### Touch/UX Sins

| ❌ Avoid | Why It's Wrong | ✅ Do Instead |
|-------------|----------------|--------------|
| **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

| ❌ Avoid | Why It's Wrong | ✅ Do Instead |
|-------------|----------------|--------------|
| **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

| ❌ Avoid | Why It's Wrong | ✅ Do Instead |
|-------------|----------------|--------------|
| **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 need 44-48px minimum
→ Important actions in the 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](touch-psychology.md)

---

## ⚡ Performance Principles (Quick Reference)

### React Native Core Rules

```typescript
// ✅ 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 Core Rules

```dart
// ✅ CORRECT: const constructors prevent rebuilds
class MyWidget extends StatelessWidget {
  const MyWidget({super.key}); // const constructor

  @override
  Widget build(BuildContext context) {
    return const Column( // const subtree
      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
└── (prefer these)          ├── margin, padding
                            └── (avoid animating these)
```

For complete guide: [mobile-performance.md](mobile-performance.md)

---

## Checkpoint (before mobile work)

Fill this in (in your thinking or as a short note) before writing mobile code. If you can't fill it, read the relevant reference files first.

```
🧠 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
```

---

## 🔧 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](decision-trees.md)

---

## 📋 Pre-Development Checklist

### Before Starting a 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](mobile-design-thinking.md) | First: anti-memorization, context-based thinking |
| [touch-psychology.md](touch-psychology.md) | Understanding touch interaction, Fitts' Law, gesture design |
| [mobile-performance.md](mobile-performance.md) | Optimizing RN/Flutter, 60fps, memory/battery |
| [platform-ios.md](platform-ios.md) | iOS-specific design, HIG compliance |
| [platform-android.md](platform-android.md) | Android-specific design, Material Design 3 |
| [mobile-navigation.md](mobile-navigation.md) | Navigation patterns, deep linking |
| [mobile-typography.md](mobile-typography.md) | Type scale, system fonts, accessibility |
| [mobile-color-system.md](mobile-color-system.md) | OLED optimization, dark mode, battery |
| [decision-trees.md](decision-trees.md) | Framework, state, storage decisions |
| [mobile-backend.md](mobile-backend.md) | Push, offline sync, mobile API |
| [mobile-testing.md](mobile-testing.md) | Testing pyramid, E2E |
| [mobile-debugging.md](mobile-debugging.md) | Native vs JS debugging |

---

> **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.
Pliki w paczce (15)
  • SKILL.md 15 KB
  • decision-trees.md 16 KB
  • mobile-backend.md 14 KB
  • mobile-color-system.md 10 KB
  • mobile-debugging.md 5 KB
  • mobile-design-thinking.md 17 KB
  • mobile-navigation.md 12 KB
  • mobile-performance.md 19 KB
  • mobile-testing.md 11 KB
  • mobile-typography.md 10 KB
  • platform-android.md 19 KB
  • platform-ios.md 17 KB
  • touch-psychology.md 16 KB
  • reference/build-verification.md 3 KB
  • scripts/mobile_audit.py 35 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · jeffersonvalente/cardume100MIT
superwall/skills100MIT
sickn33/agentic-awesome-skills100MIT
AdeyStudios/skills100MIT
irahardianto/awesome-agv100MIT
agent-skills-hub/agent-skills-hub100MIT
vudovn/antigravity-kit100MIT
shipwithai/shipwithai-plugins100MIT
davila7/claude-code-templates95MIT

Migawka bazy z 13.11.2026 · wersja paczki 466e9b31fdad (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 3 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90expo-mobile-ui
    Projektuje, audytuje i wdraża interfejsy mobilne w Expo i React Native dla iOS i Androida: nawigację, dostępność i tokeny projektowe.
  • 100senior-mobile
    Wspiera tworzenie aplikacji mobilnych na iOS (Swift, SwiftUI), Android (Kotlin, Compose), React Native i Flutter: scaffolding, nawigacja Expo Router, offline-first, wydajność i publikacja w App Store.
  • 90mobile-ux-conventions
    Podaje konwencje UX, których użytkownicy oczekują w aplikacjach mobilnych: zakładki, cofanie, gesty, rozmiar dotyku i logowanie, z oceną dowodów.
  • 95mobile-taste
    Projektuje ekrany, nawigację i animacje aplikacji React Native i Expo tak, by nie wyglądały na wygenerowane przez AI.
  • 80ck:mobile-development
    Buduje aplikacje mobilne w React Native, Flutterze, SwiftUI i Jetpack Compose: UX, wydajność, tryb offline i publikację w sklepach.
  • 100mobile-interface-craft
    Projektuje, wdraża i poprawia natywne ekrany mobilne i przepływy zadań na iOS i Androidzie, w tym formularze i nawigację.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.