metro-install

Install and configure the Metro Gradle plugin for Kotlin Multiplatform projects.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/benoberkfell/claude-plugins --skill metro-install
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: metro-install
Source: https://github.com/benoberkfell/claude-plugins/tree/main/plugins/metro/skills/metro-install
Command: npx skills add https://github.com/benoberkfell/claude-plugins --skill metro-install

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Metro installation and configuration to enable compile-time dependency injection in Kotlin Multiplatform projects, simplifying integration across modules and platforms.

Core Features & Use Cases

  • Applying the Gradle plugin to enable Metro in multiplatform projects
  • Configuring the metro extension with common options (enabled, debug, interop) and per-target tweaks
  • Creating and using a DependencyGraph to wire components across modules
  • Supporting multi-module setups and IDE integration for smoother development

Quick Start

Add the Metro Gradle plugin to your module's build.gradle.kts and configure the metro extension to enable compile-time DI.

Frequently Asked Questions about metro-install

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up compile-time dependency injection for a Kotlin Multiplatform project?

To set up compile-time dependency injection for a Kotlin Multiplatform project, apply the Metro Gradle plugin and configure the metro extension to work across JVM, Android, JS, WASM, and Native targets.

What version of Kotlin is required for Metro DI setup?

Metro DI setup requires Kotlin 2.2.20+ and the Metro Gradle plugin version 0.10.2 in a Gradle-based project to properly enable compile-time dependency injection across multiplatform targets.

How do I configure the Metro Gradle plugin across different multiplatform targets?

You configure the Metro Gradle plugin by adjusting the metro extension with common options like enabled, debug, and interop, applying per-target tweaks to support JVM, Android, JS, WASM, and Native compilation.

Can I use Metro for multi-module Kotlin Multiplatform dependency injection?

Yes, Metro supports multi-module setups by allowing you to create and use a DependencyGraph to wire components across modules, simplifying integration and ensuring smoother IDE integration for multiplatform development.

What is the best way to enable Metro in a Gradle build script?

The best way to enable Metro in a Gradle build script is to add the plugin using id 'dev.zacsweers.metro' version '0.10.2' and then configure the metro extension to activate compile-time dependency injection.

Does Metro dependency injection work across all Kotlin Multiplatform targets?

Metro dependency injection works across JVM, Android, JS, WASM, and Native targets, allowing you to configure the metro extension to enable compile-time dependency injection throughout your entire multiplatform project.