What problem does it solve?
This Skill eliminates common pitfalls in Android data layer implementation, such as tight coupling between layers, threading bugs, inconsistent error handling, and unmaintainable code that plagues local-first applications like TajsOS.
Core Features & Use Cases
- Standardized Architecture Patterns: Implements Google's recommended data layer structure with repositories as single entry points, separate data sources for each physical data store, and clear layer boundaries to prevent UI/domain layers from accessing data sources directly.
- Cross-Cutting Best Practices: Covers main-safety, immutable model design, single source of truth (SSOT) implementation, proper error propagation, lifecycle scoping, and testing strategies for data layer components.
- Use Case: When building TajsOS's local persistence layer using Room and DataStore, use this Skill to ensure all repository, data source, and entity code follows consistent, testable patterns that support offline-first functionality.
Quick Start
Use the data-layer skill to review the TajsOS NodeEntity repository implementation to confirm it uses the local database as the single source of truth and dispatches all blocking work off the main thread.