repository-room

Community

Build Room repositories with clean interfaces.

Authorthinhtt264
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: repository-room
Download link: https://github.com/thinhtt264/Snaplet-App/archive/main.zip#repository-room

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.