android-data-layer

Community

Master Android data layer patterns.

Authorthinhtt264
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps Android developers navigate the Data Layer and Repository patterns, clarifying when to use remote API repositories vs local Room-based repositories and how to structure RepositoryImpls, DAOs, and data models. It provides guidance on choosing architecture for API calls, database access, and data flow in an Android app.

Core Features & Use Cases

  • Clarifies two primary Data Layer patterns: repository-remote (API calls with Retrofit, safeApiCall, ApiResult) and repository-room (Room DAO, local database).
  • Provides guidance on DI bindings for repositories with Hilt, including interface ← impl binding.
  • Covers offline-first scenarios and how to orchestrate API + DAO in a single Impl.
  • Use cases include starting new features, refactoring legacy code, and ensuring testability.

Quick Start

Design a data layer skeleton for a feature using both repository-remote and repository-room patterns.

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: android-data-layer
Download link: https://github.com/thinhtt264/Snaplet-App/archive/main.zip#android-data-layer

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 471,000+ vetted skills library on demand.