kmp-desktop
CommunityDesktop/JVM Kotlin MPP ViewModel patterns.
Authorniltsiar
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Desktop/JVM Kotlin Multiplatform apps often struggle with ViewModel lifecycles, missing CreationExtras on Desktop, and DI wiring. This skill provides patterns to reliably implement ViewModels with explicit SavedStateHandle handling and desktop lifecycle provisioning.
Core Features & Use Cases
- Explicit SavedStateHandle creation for Desktop/JVM when using Koin's koinViewModel and parametersOf.
- Desktop lifecycle provisioning via ProvideDesktopLifecycle to enable ViewModel support across the desktop host.
- Koin module wiring that takes SavedStateHandle as a parameter and injects it into the ViewModel, enabling state restoration and platform consistency.
- Cross-platform guidance to align Desktop patterns with Android/iOS code for cohesive architecture.
Quick Start
Configure your Desktop module to manually create a SavedStateHandle and wire your ViewModel with koinViewModel using parametersOf.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: kmp-desktop Download link: https://github.com/niltsiar/kotlin_multiplatform_pokedex/archive/main.zip#kmp-desktop Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.