android-patterns

Generate Android features with Kotlin, Jetpack Compose, Hilt, Room, and Retrofit.

6|1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/wesleyosantos91/multi-agents --skill android-patterns-wesleyosantos91
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-patterns
Source: https://github.com/wesleyosantos91/multi-agents/tree/main/devin/.devin/skills/android-patterns
Command: npx skills add https://github.com/wesleyosantos91/multi-agents --skill android-patterns-wesleyosantos91

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you avoid ad-hoc Android implementations by providing a modern, production-oriented architecture for native apps using Kotlin and Jetpack Compose.

Core Features & Use Cases

  • Compose-first UI with UDF: Implements StateFlow-driven UI rendering and event/upward flows to keep screens predictable and testable.
  • Hilt + clean separation: Uses Hilt for dependency injection and organizes code into DI, domain, data, UI, and utilities.
  • Repository + Room + Retrofit integration: Defines a domain repository interface with data-layer implementations that combine local Room caching (Flow) and remote Retrofit calls (coroutines).

Quick Start

Ask the AI to generate an Android feature (e.g., orders) using Compose UI, a UDF ViewModel with StateFlow, a Hilt-injected use case, a repository interface, Room entities/DAO, Retrofit API definitions, and Compose navigation.

Frequently Asked Questions about android-patterns

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

FAQPage Schema
How do I structure an Android app using Jetpack Compose and MVVM?

Structure an Android app using Jetpack Compose and MVVM by organizing code into DI, domain, data, and UI layers. Use Compose-first UI with unidirectional data flow via StateFlow for predictable state management and testing.

What's the best way to combine Room and Retrofit for local caching in Kotlin coroutines?

Combine Room and Retrofit by defining a domain repository interface with data-layer implementations. Use Room for local caching with Flow and Retrofit for remote calls with suspend APIs to integrate local and remote data seamlessly.

Does Hilt work with Jetpack Compose for dependency injection?

Yes, Hilt works with Jetpack Compose for dependency injection. Use Hilt to wire dependencies across DI, domain, data, and UI modules, injecting use cases and repositories into ViewModels that drive Compose screens.

How do I manage UI state in Jetpack Compose with StateFlow and coroutines?

Manage UI state in Jetpack Compose using StateFlow and coroutines by implementing a UDF ViewModel. StateFlow drives UI rendering while event flows handle upward actions, keeping screens predictable and testable.

Can I generate a complete Android feature with Room, Retrofit, and Compose navigation?

Yes, you can generate a complete Android feature including Compose UI, a UDF ViewModel with StateFlow, Hilt-injected use cases, repository interfaces, Room entities and DAOs, Retrofit API definitions, and Compose navigation.