What problem does it solve?
Manually configuring Koin dependency injection for Android and Kotlin Multiplatform projects leads to inconsistent module setups, improper ViewModel injection, runtime crashes, and unnecessary boilerplate code.
Core Features & Use Cases
- Per-layer Koin module definitions: Create separate, properly named modules for data, presentation, and core layers to organize dependency bindings.
- Correct module assembly: Register all DI modules in the :app module to avoid circular dependencies and ensure proper Koin initialization.
- Compose ViewModel injection: Use koinViewModel() in root composables to eliminate manual dependency passing and follow Android Compose best practices.
- Use Case: For a notes feature, use this skill to define data and presentation Koin modules, register them in the Application class, and inject NoteListViewModel into the root composable with minimal boilerplate.
Quick Start
Use the android-di-koin skill to set up complete Koin dependency injection for your new notes feature, including defining data and presentation modules, registering them in the Application class, and injecting the NoteListViewModel into the root composable.