offline-first-development
Installation
SKILL.md
Offline-First Development
Use this skill when
- Caching data for offline use
- Queuing and syncing mutations
- Handling conflicts
- Managing background refresh
Do not use this skill when
- Pure online-only apps
Instructions
- Write for the happy offline path, then sync on connect.
- Cache reads with bounded size and eviction.
- Queue writes locally with IDs for idempotent sync.
- Define conflict resolution: last-write, version, or user merge.
- Show sync/offline status honestly in the UI.
- Reconcile device storage with server eventually.
- Handle app updates changing the cache schema.