Android Persistence Standards
SkillFiles & storageImplement Room schemas and DataStore preferences with proper async patterns in Android. Use when the primary task is storage schema, DAO, migration, or preference isolation; defer auth-token/security storage, any CoroutineWorker/WorkManager task, Hilt graph wiring, and cache-policy design.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Android Persistence Standards skill
What this skill tells your AI
The instructions your AI receives, as published by hoangnguyen0403/agent-skills-standard in skills/android/android-persistence/SKILL.md and read by ahel’s review.
Priority: P0 (CRITICAL)
1. Configure Room Database
- Return
Flow<List<T>>for queries, usesuspendfor Write/Insert. - Keep
@Entitydata classes simple. Map to Domain models in Repository. - Use
@Transactionfor multi-table queries (Relations).
See DAO templates for Room DAO patterns.
2. Migrate to DataStore
- Replace
SharedPreferenceswithProtoDataStore(type-safe) orPreferencesDataStore. - Inject singleton DataStore instance via Hilt.
See DAO templates for DataStore migration patterns.
Anti-Patterns
- No IO on Main Thread: Room handles dispatchers, but verify Flow collected off-main.
- No @Entity in UI Layer: Map to Domain or UI models in Repository.
References
Signals
- GitHub stars
- 565
- Forks
- 163
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
android-persistence- Source
- github.com/hoangnguyen0403/agent-skills-standard