room-persistence

Standardize Room persistence with entities, DAOs, converters, and migrations.

1|Updated Apr 24, 2026
One-click install
npx skills add https://github.com/dimitriRemoiville/cc-mobile --skill room-persistence
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: room-persistence
Source: https://github.com/dimitriRemoiville/cc-mobile/tree/main/plugins/cc-mobile-android/skills/room-persistence
Command: npx skills add https://github.com/dimitriRemoiville/cc-mobile --skill room-persistence

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Android apps often struggle with reliable local data persistence. This skill provides Room patterns (entities, DAOs, type converters, migrations) to standardize and simplify data management, testing, and schema evolution within Kotlin projects.

Core Features & Use Cases

  • Pattern-driven entity and DAO design with explicit column names and indexes.
  • Type converters and schema migrations (auto and manual) with in-memory testing support.
  • End-to-end guidance for integrating Room into a KSP-based build process and ensuring exportable schemas for migrations.

Quick Start

Implement the provided Room persistence patterns in your Android project to manage local data with entities, DAOs, migrations, and tests.

Frequently Asked Questions about room-persistence

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement Android Room database migrations in Kotlin?

Android Room database migrations in Kotlin are standardized through explicit migration strategies supporting both auto and manual schema evolution. The approach enforces exportable schemas and named columns to ensure reliable local data persistence during app updates.

What's the best way to structure Room DAOs and entities for clean repository boundaries?

Room DAOs and entities should follow pattern-driven design with explicit column names and indexes to establish clean repository boundaries. This standardization ensures reliable data management and separates persistence logic from UI layers in Android apps.

Can I test Room database schemas in-memory with Jetpack Compose projects?

Yes, Room database schemas can be tested in-memory within Jetpack Compose and Kotlin projects. The testing conventions provided support schema validation and migration testing without persisting data to physical storage.

Does Room work with KSP for Android build configuration?

Room integrates directly into a KSP-based build process for Android projects. This integration ensures exportable schemas are generated for migrations and supports the annotation processing required for entity and DAO compilation.

How do type converters handle custom data types in Room persistence?

Type converters in Room persistence handle custom data types by standardizing serialization and deserialization patterns. These converters ensure complex Kotlin objects are properly stored in SQLite columns and retrieved through DAO queries.

When do I need manual Room migrations versus auto migrations?

Manual Room migrations are needed for complex schema changes that auto migrations cannot handle, while auto migrations cover standard additions like new columns. The approach enforces exportable schemas to validate both strategies during development.