android-di
БесплатноБез исполняемых скриптовНе проверенConfigure Hilt dependency injection with proper scoping, modules, and constructor injection in Android. Use when changing the production Hilt graph; defer…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Android Dependency Injection (Hilt)
Priority: P0 (CRITICAL)
1. Bootstrap Hilt
- Annotate
Applicationclass with@HiltAndroidApp. - Annotate Activities/Fragments with
@AndroidEntryPoint.
See module templates for bootstrap and module examples.
2. Define Modules
- Use
@Binds(abstract class) over@Provideswhen possible — generates smaller code. - explicit with
@InstallIn(SingletonComponent,ViewModelComponent).
See module templates for @Binds examples.
3. Prefer Constructor Injection
- Use
@Inject constructor(...)over field injection. - Use
@AssistedInjectfor runtime parameters.
Anti-Patterns
- No Manual Dagger Components: Use Hilt — it generates all wiring.
- No Field Injection in Logic: Use constructor injection; field injection only in Android framework classes.
References
Установить android-di в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл android-di?
Configure Hilt dependency injection with proper scoping, modules, and constructor injection in Android. Use when changing the production Hilt graph; defer test overrides, Room wiring, navigation-specific scopes, and generic DI explanations to their specific skills.
Как установить скилл android-di?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл android-di запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic