Standardizes Android dependency injection setup using Hilt and Dagger best practices to ensure architectural consistency.
This skill provides Claude with specialized knowledge for implementing Hilt-based dependency injection in Android applications. It enforces industry-standard patterns such as proper component scoping with SingletonComponent and ViewModelComponent, efficient code generation through @Binds, and the prioritization of constructor injection over field injection. By guiding developers through mandatory setup requirements and identifying anti-patterns like manual Dagger creation, it streamlines the development of testable, scalable, and maintainable mobile codebases.
Key Features
012 GitHub stars
02Promotes efficient @Binds patterns for reduced code generation
03Guides implementation of constructor and assisted injection
04Standardizes Hilt module configuration and component scoping
05Ensures correct Application and EntryPoint annotation placement
06Identifies and prevents manual Dagger implementation anti-patterns
Use Cases
01Bootstrapping dependency injection in a new Android project
02Refactoring legacy Dagger boilerplate to Hilt standards
03Implementing runtime parameter handling with Assisted Injection