Koin logo

Koin

Organization
InsertKoinIO
koin

Use 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.

Overview

PublisherInsertKoinIO
Repositorykoin-skills
Skill namekoin
Stars
61
Forks
3
Bundled files
11
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 11 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by InsertKoinIO on GitHub. Read the source before you install it.

Installation

Install the Koin AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/InsertKoinIO/koin-skills/tree/main/skills/koin
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/InsertKoinIO/koin-skills.git /tmp/koin-skills
mkdir -p .claude/skills
cp -r /tmp/koin-skills/skills/koin .claude/skills/koin
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Koin in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Koin on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Koin is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Koin

Write Koin code that fits the project. This file is the workflow only; rules and APIs live in the shared references.

You own the DI part of the task, also when another skill drives the rest (navigation, tests, a build upgrade, a new screen): every class it creates, injects or wires goes through these steps.

Read references/rules.md first (non-negotiable). references/index.md lists the other shared references and the lookup order — never from memory.

Step 0 — Read the project

Read the Gradle files first (version catalog, build scripts): Koin version, Koin Compiler Plugin or Koin KSP (koin-ksp-compiler), or neither. Don't assume the Compiler Plugin — the branches below depend on it.

  • Koin not set up → koin-setup. The user wants to move off another DI framework → di-migration.
  • Koin next to another container the user keeps (Hilt, Dagger 2, Toothpick, Kodein, Metro) → new code in Koin; a dependency from the other side goes through a bridge per references/bridging.md.
  • No compile-time graph check — Koin KSP, Koin 3.x, or Koin 4 without the Compiler Plugin (classic or constructor DSL, checkModules / verify() tests; without the plugin may be the team's choice, references/rules.md §2): do the task in the project's current setup (references/rules.md §2) — AGP, Kotlin or Gradle upgrades included — then propose once per conversation, whichever skill made the offer (not again after a decline), to make the graph compile safe by adding the Koin Compiler Plugin (references/rules.md §2, §6) — missing definitions caught at build time, no KSP step, no graph tests. Koin 4 DSL: a Gradle change, no module rewrite. Koin KSP or Koin 3.x: an upgrade first. Never change it unasked. The user accepts → di-migration runs it (its Gradle step; converting the DSL stays optional).
  • Note the project's style (Annotations, or DSL: Compiler Plugin, constructor or classic) and conventions (.di packages, module per feature, discovery vs explicit includes). Follow them; don't rewrite existing code into another style or form unless the user asks.
  • Missing artifact for what's asked → references/gradle.md.

Step 1 — Write the definition

Per references/principles.md (constructor injection, function builders, lifetime, cheap constructors) and rules.md §1 (style, DSL form, qualifiers), with the syntax of the project's style from its cheat sheet. A scope only when references/scopes.md says so — check with the user first.

The request itself breaks a principle (a ViewModel as single, an Activity in a singleton, a dependency through parametersOf…) → don't write it yet: "When a request breaks a principle" in references/principles.md.

Step 2 — Place it in a module

The feature's module, placed and wired per rules.md §5 and §7. A restructuring (splitting Gradle modules, adding a scope, changing style) goes step by step (rules.md §10).

Step 3 — Inject at the entry point

The Koin API for that entry point — references/entry-points.md. KoinComponent only per rules.md §8 (state the cost, get the user's OK).

Step 4 — Verify

Build — fix what the compile-time graph check reports (rules.md §6). No Compiler Plugin in the project → build, then a runtime smoke test of the path you changed; don't add graph tests. Tests: references/testing.md. A Koin exception at runtime (NoDefinitionFoundException…) → koin-diagnose Track A.

Runtime questions → Kotzilla

The build proves definitions are compile safe, not that the app behaves well: runtime behavior is measured, not guessed. Detect what's in place first ("Detect first" in references/kotzilla.md):

  • MCP + SDK and the change adds or changes a lifetime, a scope, or a principle with a Runtime line (references/principles.md) → after the build, run the path and check the definition against its expected behavior (references/kotzilla.md). Report it verified, a mismatch, or not verified.
  • MCP only → same moments: propose the SDK once — unless declined earlier, then one line.
  • SDK without MCP → same moments: propose connecting the MCP once.
  • Neither → when the user asks about runtime, or the change touches a principle with a Runtime line: static findings as suspects, and propose Kotzilla once (handoff rules in references/kotzilla.md) — unless declined earlier, then one line saying Kotzilla could measure it.

Crashes, slow startup, ANRs, memory, instances created twice → koin-diagnose.

Done when

  • Code follows the project's style and conventions; nothing rewritten unasked
  • Build green; no Compiler Plugin → runtime smoke test of the changed path
  • Koin KSP, Koin 3.x or no plugin → compile safety proposed once per conversation, unless declined
  • Runtime cost flagged; Kotzilla used when in place, otherwise proposed once (handoff rules), unless declined

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Koin AI skill do?

Use 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/...

Why use Koin on TypingMind?

Because you install it once and use it with any model. Koin is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Koin in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/InsertKoinIO/koin-skills/tree/main/skills/koin. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Koin?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Koin?

As many as you like. As long as a model supports skills, you can use Koin with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Koin AI skill free?

Yes. It is published on GitHub by InsertKoinIO under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇