android-architecture

Guide Android app setup with Clean Architecture and Hilt.

1|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/escorponox/musiharmony --skill android-architecture-escorponox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-architecture
Source: https://github.com/escorponox/musiharmony/tree/main/.claude/skills/android-architecture
Command: npx skills add https://github.com/escorponox/musiharmony --skill android-architecture-escorponox

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides expert guidance on structuring and maintaining modern Android applications, focusing on Clean Architecture principles and efficient dependency injection with Hilt.

Core Features & Use Cases

  • Layered Architecture: Enforces a strict inward dependency flow (UI -> Domain -> Data).
  • Hilt Integration: Details best practices for using Hilt for dependency injection across the app.
  • Modularization Strategy: Outlines a multi-module approach for improved build times and code organization.
  • Use Case: When starting a new Android project or refactoring an existing one, use this Skill to establish a robust, scalable, and maintainable architecture.

Quick Start

Follow the instructions in this skill to set up a new Android project with Clean Architecture and Hilt.

Frequently Asked Questions about android-architecture

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

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

Structure an Android app using Clean Architecture by enforcing a strict inward dependency flow: UI layer points to Domain, which points to Data. This separation isolates business logic from framework details, ensuring a maintainable and scalable project structure.

What is the best way to set up dependency injection with Hilt in a multi-module Android project?

Set up Hilt dependency injection in a multi-module Android project by configuring Hilt modules and components across different Gradle modules. This approach optimizes build times and organizes code by isolating feature-specific dependencies into dedicated modules.

Does Clean Architecture work well with Hilt for Android dependency injection?

Clean Architecture integrates seamlessly with Hilt for Android dependency injection. Hilt provides the mechanism to inject dependencies into the UI and Data layers without violating the inward dependency flow, keeping the Domain layer completely framework-agnostic.

When should I modularize my Android application?

Modularize your Android application when you need improved build times and better code organization for production apps. A multi-module project structure allows parallel builds and enforces architectural boundaries by separating distinct features and layers.

How do I separate UI, Domain, and Data layers in an Android project?

Separate UI, Domain, and Data layers in an Android project by isolating business logic in the Domain layer, mapping data sources in the Data layer, and rendering state in the UI layer. Dependencies must strictly point inward to prevent Data layer leaks into the UI.