Implements standardized Dagger Hilt patterns for robust Android dependency injection and modular architecture.
This skill provides a comprehensive framework for implementing Dependency Injection in Android applications using Hilt. It guides Claude to follow industry best practices, including optimized module setup using @Binds, proper component scoping (SingletonComponent, ViewModelComponent), and the enforcement of constructor injection over field injection. By identifying common anti-patterns like manual Dagger component creation, it ensures your Android codebase remains clean, testable, and aligned with modern Google recommendations.
Key Features
01276 GitHub stars
02Standardized Hilt configuration for Application and Android components
03Optimized module binding using @Binds for efficient code generation
04Strict enforcement of constructor and assisted injection patterns
05Explicit scoping guidelines for various Android lifecycles
06Automated detection of manual Dagger anti-patterns
Use Cases
01Refactoring legacy manual Dagger implementations to standardized Hilt modules
02Implementing runtime parameter injection using Assisted Injection patterns
03Architecting a new Android application with scalable dependency injection