What problem does it solve?
This Skill provides expert guidance on Kotlin Multiplatform (KMP) architecture, specifically focusing on making effective platform abstraction decisions, optimizing source set placement, and correctly implementing expect/actual patterns to maximize code sharing and maintainability across diverse platforms like Android, Desktop, and iOS.
Core Features & Use Cases
- Abstraction Guidance: Helps decide when to abstract code versus keeping it platform-specific.
- Source Set Strategy: Guides placement of code in
commonMain, jvmAndroid, and platform-specific source sets.
- Expect/Actual Implementation: Details the correct usage of expect/actual for platform-dependent APIs.
- Use Case: When developing a new feature that involves cryptographic operations, this Skill helps determine whether to use expect/actual for platform-specific security APIs or if the logic can reside entirely in
commonMain.
Quick Start
Use the kotlin-multiplatform skill to decide if a new ViewModel should be shared across Android and Desktop platforms.