Mobile Engineering
Installation
SKILL.md
Mobile Engineering
Choose the stack by constraints
| Constraint | Lean |
|---|---|
| One team, CRUD + forms, fast iteration | React Native / Flutter |
| Heavy platform APIs, camera/AR, widgets | Native (SwiftUI / Compose) |
| Existing web team, content app | PWA / RN |
| Long-lived, performance-critical | Native |
Whatever the choice: architecture, offline behavior, and release discipline matter more than the framework.
Architecture
- Layered: UI → state/domain → data (repositories) → platform (API, DB, storage). UI never calls HTTP directly.
- State: unidirectional; persist navigation state so cold start restores context.
- Local DB (SQLite/Realm/WatermelonDB) is the source of truth; network is a sync mechanism.
- Sync engine: outbox queue for writes, idempotency keys, conflict policy (server-wins with merge UI, or field-level), retry with backoff, and a visible "pending sync" state.