ZacSweersZacSweersCommunityยท3 Agent Skills Included

metro

Compile-time dependency injection framework for Kotlin Multiplatform projects

Generates and validates dependency injection code at compile time for Kotlin Multiplatform projects. Catches dependency graph errors during compilation instead of at runtime, without KAPT or KSP overhead. Includes agent skills to profile compiler performance, test local builds downstream, and add new compiler options faster.
npx skills add ZacSweers/metro --all -g -y
Available:

Gives the AI agent Metro's build commands, module architecture, testing strategy, and strict working-style rules so it edits and tests the compiler plugin correctly.

All Skills in This Repository (3)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How 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โ†’