Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implement 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.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-11 | ✗→✓ | ▲ Improved | -37% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 44% | 0% |
| case-01 | ✓→✓ | = Same ✓ | -21% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -48% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -33% | 0% |
Flow<List<T>> for queries, use suspend for Write/Insert.@Entity data classes simple. Map to Domain models in Repository.@Transaction for multi-table queries (Relations).See DAO templates for Room DAO patterns.
SharedPreferences with ProtoDataStore (type-safe) or PreferencesDataStore.See DAO templates for DataStore migration patterns.
Other measured skills in the registry, with their headline benchmark lift.