metro
Compile-time dependency injection framework for Kotlin Multiplatform projects
All Skills in This Repository (3)
Pure Emerald Level Indicatorsadd-compiler-option
Add compiler options to Metro across Gradle plugin components and tests.
test-metro-locally
Publishes local Metro builds to Maven Local and verifies them in downstream Gradle projects.
analyze-perfetto-trace
Query Metro compiler perfetto traces to locate hot spots and untraced time.
Frequently Asked Questions
FAQPage SchemaHow to install Metro?โผ
Run `npx skills add ZacSweers/metro --all -g -y` in your terminal to install all skills in this suite globally.
What is Metro used for?โผ
Metro is a compile-time dependency injection framework for Kotlin Multiplatform that validates your dependency graph during compilation, combining ideas from Dagger, Anvil, and kotlin-inject.
How do I find slow spots in Metro compilation?โผ
Use the analyze-perfetto-trace skill, which queries Metro's perfetto compiler traces with SQL to find real hot spots and untraced time before recommending optimizations.
How do I test an unreleased Metro change in my app?โผ
The test-metro-locally skill publishes your local Metro checkout to Maven Local with a unique version and verifies it in a downstream project using its existing Gradle tasks.
Does Metro work with Dagger or kotlin-inject?โผ
Yes. Metro ships interop modules that let you migrate incrementally from Dagger, kotlin-inject, or Guice without rewriting your whole graph at once.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core