android-architecture

Guide Android app design with Clean Architecture and Hilt.

Updated Dec 4, 2025
One-click install
npx skills add https://github.com/thinhtt264/Snaplet-App --skill android-architecture-thinhtt264
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-architecture
Source: https://github.com/thinhtt264/Snaplet-App/tree/main/.cursor/skills/android-architecture
Command: npx skills add https://github.com/thinhtt264/Snaplet-App --skill android-architecture-thinhtt264

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides expert guidance on structuring Android applications using Clean Architecture and Hilt, helping teams design modular, testable, and scalable apps while avoiding common pitfalls in layering and dependency management.

Core Features & Use Cases

  • Layered architecture guidance: Define UI (presentation), Domain (business logic), and Data layers with inward dependencies and minimal coupling.
  • DI with Hilt: Recommend and illustrate proper usage of @HiltAndroidApp, @AndroidEntryPoint, and @HiltViewModel to enable clean, testable wiring.
  • Modularization strategy: Propose a multi-module layout (app, core:model, core:data, core:domain, core:ui, feature modules) to improve maintainability and build times.
  • Use Case Scenarios: Guidance for project structure decisions, module setups, and dependency-injection strategies for Android projects.

Quick Start

Use the android-architecture skill to outline a recommended Android project structure with Clean Architecture and Hilt for a new app.

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 with Clean Architecture and Hilt?

Structuring an Android app with Clean Architecture and Hilt involves defining presentation, domain, and data layers with inward dependencies, then organizing them into a multi-module layout with separate core and feature modules to ensure testability and scalable dependency management.

How do I set up Hilt dependency injection across multiple Android modules?

Setting up Hilt dependency injection across multiple Android modules requires applying @HiltAndroidApp at the app level, annotating UI components with @AndroidEntryPoint, and using @HiltViewModel to wire dependencies cleanly across modularized core and feature modules.

When do I need to modularize my Android project?

You need to modularize your Android project when maintainability declines and build times increase, allowing you to split codebases into core model, data, domain, UI, and feature modules to enforce inward dependencies and reduce coupling.

Does Clean Architecture work for small Android apps?

Clean Architecture works for Android projects of varying sizes by adapting its modularization strategy, allowing small apps to start with basic UI, domain, and data layers before scaling up to a full multi-module layout.

Why should dependencies point inward in Android Clean Architecture?

Dependencies should point inward in Android Clean Architecture to ensure the domain layer containing business logic remains decoupled from the UI and data layers, enabling independent testing and scalable module organization.