What problem does it solve?
This Skill provides a robust pattern for implementing a repository layer backed by Room DAO, enforcing a clear Interface + Implementation separation and proper observable streams with Flow, while avoiding remote API concerns.
Core Features & Use Cases
- Interface + Implementation: Define XxxRepository with a Flow-based observable and suspend one-shot operations, paired with XxxRepositoryImpl.
- Room + DAO integration: Directly use DAO methods inside suspend calls; expose Flow from DAO for reactive streams.
- Guided architecture: Includes Hilt binding pattern and a strict rule set to prevent safeApiCall usage for Room.
- Use Case: When building an Android app with local persistence, you can rely on the repository-room skeleton to ensure consistent architecture and testability.
Quick Start
Create XxxRepository interface and XxxRepositoryImpl that delegate to XxxDao, wire via RepositoryModule.