Expert guidance on setting up and maintaining a modern Android application architecture using Clean Architecture and Hilt. Use this when asked about project structure, module setup, or dependency injection.
67
58%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./.github/skills/android-architecture/SKILL.mdWhen designing or refactoring an Android application, adhere to the Guide to App Architecture and Clean Architecture principles.
Structure the application into three primary layers. Dependencies must strictly flow inwards (or downwards) to the core logic.
GetLatestNewsUseCase), Domain Models (pure Kotlin data classes).android.* imports).Use Hilt for all dependency injection.
Application class.constructor injection.@Module and @InstallIn(SingletonComponent::class) for app-wide singletons (e.g., Network, Database).@Binds in an abstract class to bind interface implementations (cleaner than @Provides).For production apps, use a multi-module strategy to improve build times and separation of concerns.
:core:domain and :core:ui.Domain layer has no Android dependencies.Dispatchers.IO internally if needed).StateFlow (see android-viewmodel skill).3f68e39
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.