metro-di
Installation
SKILL.md
Metro DI
Use this skill to add, review, or troubleshoot Metro dependency injection in Kotlin, Android, or Kotlin Multiplatform codebases.
Metro is a compile-time dependency injection framework implemented as a Kotlin compiler plugin. It has no KAPT/KSP source generation step, supports JVM/Android, JS, Wasm, and Native targets, and combines Dagger-style graphs, kotlin-inject-style Kotlin APIs, and Anvil-style aggregation.
Current public docs describe Metro 1.1.x; check the repository's configured Metro version before using APIs introduced after its version.
References
Read these when the task needs detail:
references/graphs-and-extensions.mdfor graph creation, graph extensions, inputs, binding containers, and dynamic graphs.references/viewmodel-and-compose.mdfor MetroX ViewModel and Compose integration.references/common-mistakes.mdfor errors, warnings, and quick fixes.
Primary docs: