android-architecture

Guide Kotlin/Compose Android apps with MVVM or Clean Architecture using Hilt, Room, and Retrofit.

2|Updated Nov 4, 2025
One-click install
npx skills add https://github.com/bloknayrb/claudestuff --skill android-architecture-bloknayrb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-architecture
Source: https://github.com/bloknayrb/claudestuff/tree/main/plugins/android-dev/skills/android-architecture
Command: npx skills add https://github.com/bloknayrb/claudestuff --skill android-architecture-bloknayrb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides clear, opinionated guidance for structuring modern Android applications, helping developers choose the right architecture, manage dependencies, and set up their projects for success.

Core Features & Use Cases

  • Architecture Recommendations: Guides users on selecting between MVVM and Clean Architecture based on app complexity.
  • Technology Stack: Recommends official Jetpack libraries for DI (Hilt), networking (Retrofit), databases (Room), and UI (Compose).
  • Project Setup: Offers a step-by-step guide for creating new Android projects with best practices.
  • Use Case: A new developer starting an Android project can use this Skill to understand the recommended project structure, dependency injection setup with Hilt, and how to implement MVVM using Jetpack Compose.

Quick Start

Use the android-architecture skill to get a step-by-step guide for setting up a new Android project.

Frequently Asked Questions about android-architecture

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

FAQPage Schema
What is the best way to structure an Android app using Kotlin and Jetpack Compose?

MVVM or Clean Architecture is recommended for structuring modern Android apps with Kotlin and Jetpack Compose. This approach separates UI logic using ViewModels for state management and Compose for declarative rendering.

How do I set up dependency injection with Hilt in a new Android project?

To set up dependency injection with Hilt, apply the Hilt Gradle plugin, annotate your Application class with @HiltAndroidApp, and use @Inject for constructors. This provides opinionated guidance for managing dependencies across your app components.

When should I choose Clean Architecture over standard MVVM for my Android app?

You should choose Clean Architecture over standard MVVM based on app complexity. Clean Architecture is suited for larger, complex applications requiring strict separation of concerns, while MVVM is recommended for standard apps with moderate complexity.

How do I configure Room for local persistence in an Android Jetpack app?

Configure Room for local persistence by adding the Room dependencies, defining data entities with @Entity, creating a DAO interface with @Dao, and building the database class extending RoomDatabase. This enables robust local SQLite storage management.

Can I use Retrofit for networking in an Android app built with Jetpack Compose?

Yes, Retrofit is recommended for networking in Android apps built with Jetpack Compose. It integrates seamlessly with Kotlin Coroutines and Hilt to fetch remote data efficiently, which can then be observed as state in your Compose UI.

What are the recommended Jetpack libraries for modern Android development?

The recommended Jetpack libraries for modern Android development include Hilt for dependency injection, Room for local database persistence, Retrofit for networking, and Jetpack Compose for building the user interface.