skill-offline-first
CommunityEnable offline-first data with reliable sync.
Authorpliniou
Version1.0.0
Installs0
System Documentation
## What problem does it solve? This Skill solves the challenge of building reliable offline-capable data layers for Android apps by using Room for local persistence, seed data from assets on first run, and safe migration paths, ensuring users can access and interact with their data even without a network.
## Core Features & Use Cases
- Offline-first persistence using Room and Kotlin Flows to keep UI responsive.
- Seed initial data from assets on first run to bootstrap historical data.
- Data migration path from legacy lottery_data.json to Room schema.
- Background syncing via WorkManager with graceful backoff and retry.
- Retrofit-based API with DTO-to-entity mapping to ensure domain integrity.
### Quick Start
- Ensure Android Studio is installed and open the project.
- Build and run the app on a device or emulator; on first launch, seed data from assets and migrate legacy data if present.
- Trigger a sync by toggling network connectivity or wiring WorkManager to run periodically.
Dependency Matrix
Required Modules
None requiredComponents
assets
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: skill-offline-first Download link: https://github.com/pliniou/loto-generator/archive/main.zip#skill-offline-first Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.