offline-first
Installation
SKILL.md
Offline-First Architecture
Apps that require internet to work lose 30%+ of users. These patterns make your app work everywhere — with or without connectivity.
Core principle: Local DB is source of truth
User Action → ViewModel → Repository
↓
Local DB (Room) ← single source of truth
↓
UI observes Flow from Room
↓ (background)
Network sync → update Local DB → UI auto-updates