一键导入
android-di-hilt
Wire Android dependency injection with Hilt, scopes, testing overrides, and module ownership boundaries.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Wire Android dependency injection with Hilt, scopes, testing overrides, and module ownership boundaries.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Apply clean architecture boundaries, use cases, repositories, and lifecycle-aware presentation models in Android projects.
Build Android UI with Jetpack Compose foundations, layouts, modifiers, theming, and stable component structure.
Use coroutines, Flow, structured concurrency, dispatchers, and cancellation-safe Android async pipelines.
Shape Android build logic with Gradle, version catalogs, plugins, convention patterns, and toolchain compatibility.
Use Kotlin idioms safely in Android apps, including nullability, data classes, sealed types, extension functions, and collection pipelines.
Build Android networking stacks with Retrofit, OkHttp, interceptors, API contracts, and resilient error handling.
| name | android-di-hilt |
| description | Wire Android dependency injection with Hilt, scopes, testing overrides, and module ownership boundaries. |
| metadata | {"version":"0.1.0","category":"foundations","tags":["android","hilt","dependency-injection","testing"],"triggers":{"include":["android hilt setup","inject viewmodel repository hilt","scope dependency in android","replace manual service locator","hilt testing override","android-di-hilt skill","scope dependency in android hilt","hilt component scope mismatch","hilt entry point android"],"exclude":["retrofit serialization only","compose typography only","gradle wrapper upgrade","collect flow in compose screen","state matrix before release"]},"owners":["@android-agent-skills/maintainers"],"test_targets":["examples/orbittasks-compose","examples/orbittasks-xml","benchmarks/triggers.jsonl"]} |
android-testing-unitandroid-networking-retrofit-okhttp@Binds, @Provides, qualifiers,
multibindings, or assisted injection.@Singleton to silence scope questions.@Provides methods when constructor injection
would suffice.cd examples/orbittasks-compose && ./gradlew :app:testDebugUnitTestcd examples/orbittasks-xml && ./gradlew :app:testDebugUnitTestpython3 scripts/eval_triggers.py --skill android-di-hilt