android-architecture by new-silvermoon/awesome-android-agent-skills
npx skills add https://github.com/new-silvermoon/awesome-android-agent-skills --skill android-architecture在设计或重构 Android 应用程序时,请遵循 应用架构指南 和 整洁架构 原则。
将应用程序结构划分为三个主要层级。依赖关系必须严格地向内(或向下)流向核心逻辑。
GetLatestNewsUseCase)、领域模型(纯 Kotlin 数据类)。android.* 导入)。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
对所有依赖注入使用 Hilt。
Application 类。constructor 注入。@Module 和 @InstallIn(SingletonComponent::class) 来创建应用范围的单例(例如,网络、数据库)。@Binds 来绑定接口实现(比 @Provides 更简洁)。对于生产环境的应用,使用多模块策略以提高构建速度并实现关注点分离。
:core:domain 和 :core:ui。Domain 层没有 Android 依赖。Dispatchers.IO)。StateFlow 与 UI 层交互(参见 android-viewmodel 技能)。每周安装数
176
代码仓库
GitHub 星标数
565
首次出现
2026年1月27日
安全审计
安装于
opencode160
codex159
gemini-cli134
github-copilot130
kimi-cli126
amp125
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).Weekly Installs
176
Repository
GitHub Stars
565
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode160
codex159
gemini-cli134
github-copilot130
kimi-cli126
amp125
Android 整洁架构指南:模块化设计、依赖注入与数据层实现
1,300 周安装