Agent skill

Kmp Starter Koin

by DevAtrii in DevAtrii/Kmp-Starter-Template

Dependency injection with Koin on the KMP Starter Template — one module per layer, plugin selection, singleOf bindings, registration in InitKoin, viewModelOf/parameterized koinViewModel, and scoped…

MITAuto-check passedDevelopment

Install Kmp Starter Koin

skills CLI
$ npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-koin -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install DevAtrii/Kmp-Starter-Template kmp-starter-koin --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/DevAtrii/Kmp-Starter-Template.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/kmp-starter/koin .claude/skills/kmp-starter-koin && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
kmp-starter-koin
GitHub stars
167
Token cost
~1.1k tokens
SKILL.md length
199 words
Files
1
Skills in repo
23
Repo updated
First seen
Licence
MIT

At a glance

Dependency injection with Koin on the KMP Starter Template — one module per layer, plugin selection, singleOf bindings, registration in InitKoin, viewModelOf/parameterized koinViewModel, and scoped…

  • Tasks that involve Project scaffolding
  • SKILL.md covers Modules per layer, Plugin selection (in…, Register the module and ViewModel with constructor…, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Design patterns

What it does

Kmp Starter Koin is an agent skill from DevAtrii/Kmp-Starter-Template. Dependency injection with Koin on the KMP Starter Template — one module per layer, plugin selection, singleOf bindings, registration in InitKoin, viewModelOf/parameterized koinViewModel, and scoped navigators + ViewModels for nested nav.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Project scaffolding and Design patterns. The repository describes itself as: Starter template is a multi-module KMP boilerplate for Android & iOS with clean architecture and high-quality code. It handles basics like remote config, in-app purchases, and… The licence is MIT.

When your agent uses it

  • Tasks that involve Project scaffolding
  • Tasks that involve Design patterns

Example prompts

  • “/kmp-starter-koin”

What it can do on your machine

Read from SKILL.md and the folder at commit a8f7b27. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are kotlin).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Kmp Starter Koin loads about 1.1k tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 199 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from DevAtrii/Kmp-Starter-Template at commit a8f7b27, republished under its MIT licence (© DevAtrii). 199 words, ~1,056 tokens.

Download SKILL.mdSave it as .claude/skills/kmp-starter-koin/SKILL.md (or your agent's skills folder).
name
kmp-starter-koin
description
Dependency injection with Koin on the KMP Starter Template — one module per layer, plugin selection, singleOf bindings, registration in InitKoin, viewModelOf/parameterized koinViewModel, and scoped navigators + ViewModels for nested nav.
author
DevAtrii
license
MIT

Koin (Dependency Injection)

Modules per layer

Create one Koin module per layer when appropriate: data, domain, presentation.

kotlin
// data
val featureNameDataModule = module {
    singleOf(::OnboardingRepositoryImpl) bind OnboardingRepository::class
}
  • singleOf(::Impl) — construct a singleton.
  • bind Interface::class — bind impl to interface.

Plugin selection (in build.gradle.kts)

  • Presentation modules (Compose): use koin-compose plugin.
  • Data / domain modules (non-UI): use koin-core plugin.

The generated features/your-feature/* modules already apply the right plugin. Match them.

Register the module

Register new modules in composeApp/src/commonMain/kotlin/<your-package>/core/di/InitKoin.kt inside initKoin { modules(...) }, and ensure the module is a dependency of composeApp's commonMain.

kotlin
internal fun initKoin(config: KoinAppDeclaration? = null) {
    startKoin {
        config?.invoke(this)
        modules(
            starterModules,
            kmpAppInitializerModule,
            /* Add Modules Here */
            featureNameDataModule,
            featureNameDomainModule,
            featureNamePresentationModule,
        )
    }
}

ViewModel with constructor params

kotlin
// module
viewModelOf(::ExportViewModel)                 // no params — auto-resolved
viewModel { (fileManager: StarterFileManager) -> // explicit params
    ExportViewModel(fileManager = fileManager)
}
kotlin
// screen
val viewModel: ExportViewModel = koinViewModel()                          // no params
val vm: ExportViewModel = koinViewModel { parametersOf(fileManager) }     // positional
val vm2: NotesViewModel = koinViewModel { parameterArrayOf(sharedVm) }    // pass as array
  • viewModelOf(::X) — concise; Koin resolves constructor args from the graph.
  • viewModel { (a, b) -> ... } + parametersOf(a, b) / parameterArrayOf(...) — pass runtime values (nav args, Activity-bound StarterFileManager, a shared ViewModel).

Use parameterOf(...) when passing values into ViewModels from navigation or the composable.

Scoped navigator + ViewModels (nested nav)

For a feature with its own navigation graph, bind the navigator and ViewModels to a Koin scope so they live/die with the feature.

kotlin
internal data object EditorScope {
    private val QUALIFIER = qualifier<EditorScope>()
    private val ID = QUALIFIER.toString()

    @Composable
    fun getOrCreateScope() = getKoin().getOrCreateScope(scopeId = ID, qualifier = QUALIFIER)
}

val editorNavigationModule = module {
    scope<EditorScope> {
        scopedOf(::EditorNavigator) bind BaseNavigator::class

        navigation<EditorScreens.Dashboard> { route ->
            val navigator = EditorNavigator.getCurrent()
            val vm: EditorDashboardViewModel = koinViewModel { parameterArrayOf(sharedVm) }
            EditorDashboardScreen(viewModel = vm, onNavigate = { navigator.navigateTo(...) })
        }
    }
}
kotlin
internal class EditorNavigator : BaseNavigator() {
    companion object {
        @Composable
        fun getCurrent(): EditorNavigator =
            koinInject(scope = EditorScope.getOrCreateScope())
    }
}

Wire the scope in the parent screen: rememberKoinScope(scope = EditorScope.getOrCreateScope()), then wrap children in KoinScope<EditorScope>(scopeID = scope.id) { ... }. Use koinEntryProvider<Any>(scope) for the nested NavDisplay.

Rules

  • Reuse existing Koin modules whenever possible.
  • Create new modules only when necessary.
  • Domain Logics are registered like any other singleton (singleOf(::CheckIsOnboardedLogic)).

Reference

  • features/core/data/.../di/CoreDataModule.kt — singleOf ... bind
  • features/core/domain/.../di/CoreDomainModule.kt — Logics + aggregate OnboardingLogics
  • composeApp/.../core/di/InitKoin.kt — registration point

© DevAtrii, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/kmp-starter/koin of DevAtrii/Kmp-Starter-Template.

Open the folder on GitHubat commit a8f7b27

Compare with similar skills

Kmp Starter Koin next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Kmp Starter Koin compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kmp Starter Koin this skillDevAtrii/Kmp-Starter-Template167—~1.1kAutomated safety check: PassMIT
Scaffoldcodewithmukesh/dotnet-claude-kit751—~1.7kAutomated safety check: PassMIT
Senior Fullstackdavila7/claude-code-templates32k7 repos~1.1kAutomated safety check: NotesMIT
AI Firstifytechwolf-ai/ai-first-toolkit132—~646Automated safety check: PassMIT
Angular Clean Architecturefmflurry/settings-opencode171—~3.6kAutomated safety check: PassMIT
Flutter App Architectureevanca/flutter-ai-rules649—~1.7kAutomated safety check: PassMIT

Similar skills

  • Scaffold

    codewithmukesh/dotnet-claude-kit

    Architecture-aware feature scaffolding for .NET 10 projects.

    751 GitHub stars~1.7k tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Senior Fullstack

    davila7/claude-code-templates

    Comprehensive fullstack development skill for building complete web applications with React, Next.js, Node.js, GraphQL, and PostgreSQL.

    32k GitHub starsUsed in 7 repos~1.1k tokens
    DevelopmentAuto-check: notes
  • AI Firstify

    techwolf-ai/ai-first-toolkit

    Analyze, re-engineer, or bootstrap projects to align with AI-first design principles.

    132 GitHub stars~646 tokensUpdated 9 days ago
    DevelopmentAuto-check passed
  • Angular Clean Architecture

    fmflurry/settings-opencode

    Scaffolds and extends Angular standalone feature MODULES under src/app/modules/{name} using Clean Architecture layering (presentation/application/core/infrastructure), a self-registering module…

    171 GitHub stars~3.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Flutter App Architecture

    evanca/flutter-ai-rules

    A skill your agent uses when scaffolding a project, refactoring into layers, creating view models/repositories, configuring dependency injection, or implementing unidirectional data flow (MVVM).

    649 GitHub stars~1.7k tokensUpdated 24 days ago
    DevelopmentAuto-check passed
  • System Design

    aiskillstore/marketplace

    CTO's deputy for software architecture using Clean/Hexagonal Architecture principles.

    430 GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from DevAtrii/Kmp-Starter-Template

All 23 skills in this repo
  • Kmp Starter

    DevAtrii/Kmp-Starter-Template

    Build production Android & iOS apps on the KMP Starter Template (Clean Architecture, MVI, Koin, Compose Multiplatform).

    167 GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Kmp Starter Memory

    DevAtrii/Kmp-Starter-Template

    Persistent per-project memory for KMP Starter Template apps.

    167 GitHub stars~963 tokensUpdated 1 mo ago
    Auto-check passed
  • Kmp Starter Architecture

    DevAtrii/Kmp-Starter-Template

    Clean Architecture module and package layout for KMP Starter Template features — data/domain/presentation layers, core dependency rule, screen-based package organization, the Screen vs Content…

    167 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Kmp Starter Create Fresh App

    DevAtrii/Kmp-Starter-Template

    Research and plan a brand-new app before scaffolding it on the KMP Starter Template.

    167 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Kmp Starter Data

    DevAtrii/Kmp-Starter-Template

    Data layer on the KMP Starter Template — repositories and data sources, Logics guidance, DataStore persistence, Room database, StarterFileManager, and the Calf file picker.

    167 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Kmp Starter Feature Analytics

    DevAtrii/Kmp-Starter-Template

    The KMP Starter Template analytics system — AppEvent/EventsTracker, Analytics routing, Mixpanel + Firebase providers, combining providers, and runtime swaps.

    167 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Kmp Starter Koin

What does Kmp Starter Koin do?

Dependency injection with Koin on the KMP Starter Template — one module per layer, plugin selection, singleOf bindings, registration in InitKoin, viewModelOf/parameterized koinViewModel, and scoped…. Kmp Starter Koin is an agent skill from DevAtrii/Kmp-Starter-Template. Dependency injection with Koin on the KMP Starter Template — one module per layer, plugin selection, singleOf bindings, registration in InitKoin, viewModelOf/parameterized koinViewModel, and scoped navigators + ViewModels for nested nav.

When should I use Kmp Starter Koin?

Kmp Starter Koin fits situations like: tasks that involve Project scaffolding; tasks that involve Design patterns.

How do I install Kmp Starter Koin in Claude Code?

Run `npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-koin -a claude-code`. Or copy the skill folder (.agents/skills/kmp-starter/koin in DevAtrii/Kmp-Starter-Template) into .claude/skills/kmp-starter-koin in your project. Claude Code loads it when a task matches its description.

How do I install Kmp Starter Koin in Codex?

Run `npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-koin -a codex`. Or copy the skill folder (.agents/skills/kmp-starter/koin in DevAtrii/Kmp-Starter-Template) into .agents/skills/kmp-starter-koin in your project. Codex loads it when a task matches its description.

Can I use Kmp Starter Koin in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add DevAtrii/Kmp-Starter-Template --skill kmp-starter-koin -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kmp-starter-koin, .gemini/skills/kmp-starter-koin, .github/skills/kmp-starter-koin and .opencode/skills/kmp-starter-koin in your project.

What does Kmp Starter Koin need to run?

SKILL.md names no scripts, command-line tools or credentials: Kmp Starter Koin is instructions for the agent only.

Does Kmp Starter Koin access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Kmp Starter Koin safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Kmp Starter Koin use?

Kmp Starter Koin is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Kmp Starter Koin use?

About 1.1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Kmp Starter Koin?

Skills that share tags, products or a category with Kmp Starter Koin: Scaffold (codewithmukesh/dotnet-claude-kit, 751 stars), Senior Fullstack (davila7/claude-code-templates, 32k stars), AI Firstify (techwolf-ai/ai-first-toolkit, 132 stars) and Angular Clean Architecture (fmflurry/settings-opencode, 171 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kmp Starter Koin?

DevAtrii (a GitHub user) maintains it in DevAtrii/Kmp-Starter-Template, which has 167 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on September 1, 2026.

Source: DevAtrii/Kmp-Starter-Template on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.