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.md for graph creation, graph extensions, inputs, binding containers, and dynamic graphs.
  • references/viewmodel-and-compose.md for MetroX ViewModel and Compose integration.
  • references/common-mistakes.md for errors, warnings, and quick fixes.

Primary docs:

Installs
1
First Seen
May 18, 2026
metro-di — taranuyk-maksim/ai-skills