android-dev

Implement Android features with MVVM, Clean Architecture, Room, Retrofit, and WorkManager.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/asalhamed/dev-agents --skill android-dev-asalhamed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-dev
Source: https://github.com/asalhamed/dev-agents/tree/main/android-dev
Command: npx skills add https://github.com/asalhamed/dev-agents --skill android-dev-asalhamed

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Android feature development often suffers from inconsistent architecture, boilerplate, and maintenance challenges across UI, domain, and data layers. This skill provides a structured, scalable approach using MVVM + Clean Architecture to unify development practices and improve testability, offline support, and maintainability.

Core Features & Use Cases

  • MVVM + Clean Architecture: UI → ViewModel → UseCase → Repository → DataSource, ensuring clear separation of concerns.
  • Offline-first & Reactive State: local Room cache with remote sync, StateFlow-driven UI state, resilient user experiences during network loss.
  • Background & Media Capabilities: WorkManager for periodic tasks, ForegroundService for continuous processes, CameraX for camera integration, and ExoPlayer for media streaming.
  • Examples & Workflows: Build a feature-rich Android module with live camera previews, offline data access, and robust background processing.

Quick Start

Create a new Android feature module following MVVM + Clean Architecture, add a sample screen in Jetpack Compose that reads from Room and a remote API, and wire a WorkManager task for periodic sync.

Frequently Asked Questions about android-dev

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

FAQPage Schema
How do I structure an Android app using MVVM and Clean Architecture?

Android apps using MVVM and Clean Architecture are structured across UI, ViewModel, UseCase, Repository, and DataSource layers. This separation ensures clear boundaries, improves testability, and streamlines feature development across UI, domain, and data layers.

What is the best way to implement offline-first data handling in Android?

Offline-first data handling in Android is implemented using a local Room cache with remote sync. StateFlow drives the reactive UI state, providing a resilient user experience during network loss by reading from the local database first.

How do I add background tasks like media streaming or notifications in Android?

Background tasks in Android like media streaming or notifications are implemented using WorkManager for periodic tasks and ForegroundService for continuous processes. ExoPlayer handles the media streaming functionality within this architecture.

Can I use Jetpack Compose with an offline Room database and remote API?

Yes, Jetpack Compose can be used with an offline Room database and a remote API. The architecture wires Compose screens to read from Room and remote APIs, using StateFlow to drive reactive UI state across the layers.

Does this Android architecture support CameraX integration for live previews?

Yes, this Android architecture supports CameraX integration for live camera previews. It provides a structured approach to build feature-rich modules incorporating CameraX alongside offline data access and robust background processing.

How do I set up dependency injection for Android Clean Architecture?

Dependency injection for Android Clean Architecture is set up using Hilt. It integrates across the UI, domain, and data layers to provide dependencies to ViewModels, UseCases, and Repositories, reducing boilerplate and improving testability with test scaffolds.