android-dependency-injection

Implement and compare Hilt, Koin, and Metro dependency injection in Kotlin Android projects.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/HuxleyMc/Android-Skills --skill android-dependency-injection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-dependency-injection
Source: https://github.com/HuxleyMc/Android-Skills/tree/main/android-dependency-injection
Command: npx skills add https://github.com/HuxleyMc/Android-Skills --skill android-dependency-injection

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Android apps often suffer from tight coupling and boilerplate when wiring dependencies. This Skill standardizes and accelerates the setup of dependency injection across Hilt, Koin, and Metro, while guiding modular architecture and test strategies.

Core Features & Use Cases

  • Framework selection guidance: compare Hilt, Koin, and Metro for project needs.
  • Module organization: structure multi-module Android projects for clean DI surfaces.
  • Migration & testing: migrate between frameworks and write tests with injected dependencies.

Quick Start

Use this skill to quickly evaluate which DI framework fits your Android project and implement the recommended setup steps.

Frequently Asked Questions about android-dependency-injection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up dependency injection in a multi-module Android project?

Configuring Android dependency injection for multi-module architectures requires structuring module definitions and scopes to create clean DI surfaces. This skill guides you through organizing modules for Hilt, Koin, and Metro to reduce boilerplate and decouple dependencies.

What is the best way to compare Hilt, Koin, and Metro for an Android app?

Comparing Hilt, Koin, and Metro involves evaluating each framework's setup, module organization, and testing patterns for your specific project needs. This skill provides framework selection guidance to help you choose the right DI solution for single-project or multi-module apps.

How do I migrate between dependency injection frameworks in Android?

Migrating between Android dependency injection frameworks requires mapping existing module definitions and scopes to the new framework's structure. This skill demonstrates migration scenarios and setup steps to transition between Hilt, Koin, and Metro while maintaining testability.

Can I use this skill to write tests with injected dependencies in Android?

Yes, you can write tests with injected dependencies in Android using this skill. It demonstrates specific testing patterns for Hilt, Koin, and Metro, helping you implement test strategies that reduce tight coupling and improve testability across your project.

Do I need to know Kotlin to configure Android dependency injection with this skill?

Yes, configuring Android dependency injection requires existing knowledge of Kotlin and Android project structure. The skill applies this prerequisite knowledge to demonstrate module definitions, scopes, and framework setup for single-project apps and multi-module architectures.