new-silvermoon/android-architecture
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.
npx skills add https://github.com/new-silvermoon/awesome-android-agent-skills --skill android-architecture
When 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).Take new-silvermoon/android-architecture from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.