/koin:koin-setupfrom koin
Sets up Koin dependency injection (4.x, Compiler Plugin) in Kotlin, Android, Compose Multiplatform, KMP, or Ktor projects. Handles Gradle config, annotations/DSL, first modules, and compile-time verification alongside or replacing existing DI containers.
Ships in koin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Add Koin to a project — new or legacy, with no DI or alongside an existing container. This file is the setup workflow only; rules, APIs and versions live in the shared references.
Read references/rules.md first (non-negotiable). references/index.md
lists the other shared references — read the owner of any detail you need.
Read the build files, settings and sources before anything else.
koin skill (code) or
koin-diagnose (crashes, performance).koin (it proposes
compile safety); di-migration only when the user asks to upgrade.di-migration now: it sets
Koin up itself (its Steps 3 and 5), in the style the source calls for.references/bridging.md. Then the koin skill for the first new feature.references/index.md): annotations like Hilt (JSR-330 compatible) with
smarter configuration, compile safe in both Annotations and DSL, Kotlin
Multiplatform. In a KMP project, also state plainly that Hilt is
Android-only. Then follow the user's choice; if
they keep the other framework, these skills stop here.Note what the project is — platforms, UI (Views, Jetpack Compose, Compose
Multiplatform), navigation, WorkManager, Ktor, code running before
Application.onCreate(), library / SDK. It drives the artifacts (Step 2) and
where Koin starts (Step 4).
Ask the user; never pick silently (rules.md §1). For a new project,
recommend Koin Annotations (discovery across Gradle modules, safer at
scale); Koin DSL if the team prefers to keep DI out of its classes, with all
the wiring in separate, explicit modules. Coming from
Dagger / Hilt: Annotations (JSR-330 compatible). State the choice before writing
code.
Recommend the Koin Compiler Plugin with either style (compile-safe graph); the
user may set Koin up without it — then DSL only (references/rules.md §2), and
Steps 2 and 6 skip the plugin.
Versions per rules.md §3; plugin, BOM and the artifacts matching Step 0 per
references/gradle.md. Present the change as a diff with the version source.
One module per feature, placed and wired per rules.md §7, definitions per
references/principles.md, syntax from the cheat sheet of the chosen style.
Start small: the feature the user is working on, or one existing screen. Across
several Gradle modules or features, go step by step (references/rules.md §10).
Configuration per rules.md §5; where to start it per project type: "App
start" in references/entry-points.md.
references/entry-points.md — the Koin API for each entry point, constructor
injection everywhere else (rules.md §8).
Build — fix what the compile-time graph check reports (rules.md §6), and
propose the one-time check that it runs ("Check that the check runs" in
rules.md §6). Then run
the app once and exercise a screen that uses injected dependencies. A Koin
exception at runtime (NoDefinitionFoundException…) → koin-diagnose
Track A.
After the first successful run, detect Kotzilla ("Detect first" in
references/kotzilla.md), then per state:
references/kotzilla.md). No proposal.Propose per the handoff rules in references/kotzilla.md — what it brings
here, free account if not signed in; a decline holds for every skill. Applies
with no other DI and when the user keeps the other container (no
di-migration will run to make it).
di-migration at Step 0 → nothing set up
here; the user's choice respectedkoin skill; di-migration only when the user
wants to move off the existing DIreferences/bridging.md (opens in a new tab)references/entry-points.md (opens in a new tab)references/gradle.md (opens in a new tab)references/index.md (opens in a new tab)references/koin-annotations.md (opens in a new tab)references/koin-compiler-plugin-dsl.md (opens in a new tab)references/kotzilla.md (opens in a new tab)references/principles.md (opens in a new tab)references/rules.md (opens in a new tab)references/scopes.md (opens in a new tab)references/testing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/di-migrationMigrate Kotlin / Android / KMP projects to Koin 4.x with the Koin Compiler Plugin: Hilt, Dagger 2, Toothpick, Kodein and Metro to Koin, Koin 3.x to 4.x, the Compiler Plugin added to a Koin DSL project (every DSL form compile checked, Classic included), and Koin KSP annotations to the Compiler Plugin. Progressive, module by module, keeping the old container running until the last binding moves. Use when the user wants to migrate, convert or switch DI frameworks, remove Hilt / Dagger / Toothpick / Kodein / Metro, upgrade Koin, move off KSP, make the Koin graph compile safe or verified at build time, convert Koin DSL to Compiler Plugin DSL, or pastes Hilt / Dagger / Toothpick / Kodein / Metro module code to convert — "replace Hilt with Koin", "move away from Dagger", "Kodein to Koin", "Metro to Koin", "Koin KSP to compiler plugin", "upgrade to Koin 4", "make Koin compile safe". Adding Koin to a project with no DI is koin-setup.
/koinUse for the dependency-injection part of ANY task in a Kotlin, Android, Compose, KMP or Ktor project that uses Koin, even when the request never mentions DI or Koin: adding a feature, screen, ViewModel, repository, use case, service, worker or Gradle module; adding Navigation 3; writing tests; refactoring or splitting modules; upgrading AGP, Kotlin or Gradle. Load it alongside other skills whenever the change creates, injects or wires a class. Covers definitions, modules, entry points, scopes, Koin tests, and pushing back on DI mistakes (a ViewModel as single, an Activity in a singleton, I/O in a constructor). Koin APIs: koinViewModel, koinInject, by inject, @KoinViewModel, single<T>(). On Koin KSP, Koin 3.x or without the Compiler Plugin (build upgrades included): do the task, propose compile safety once per conversation. Koin not set up → koin-setup. Moving off Hilt, Dagger, Toothpick, Kodein, Metro → di-migration. Crashes, slow startup, instances created twice, memory → koin-diagnose.
/koin-diagnoseDiagnose and fix Koin dependency injection problems in Android, KMP and Ktor apps — from Koin compile errors and runtime exceptions to how the app behaves: slow startup, ANRs, main-thread freezes, slow screens, memory, instances created twice, scope leaks. Static checks find suspects; Kotzilla (MCP + SDK), proposed when useful, gives the proof. Use when the build shows a [KOIN-…] error, a stacktrace contains org.koin.core.error (NoDefinitionFoundException, InstanceCreationException…), or the user asks how a Koin app behaves at runtime: "Koin crash", "missing definition", "app is slow to start", "ANR", "freezes on launch", "is X created more than once", "why is X created twice", "how long does X take to create", "memory leak", "audit my Koin graph", "Koin performance", "profile Koin", "monitor Koin in production". Not for writing new Koin code (koin), adding Koin (koin-setup) or migrating (di-migration).
npx claudepluginhub insertkoinio/koin-skills --plugin koinOther plugins' skills for the same job