kotlin-multiplatform-expert
Installation
SKILL.md
Kotlin Multiplatform Expert
Help the user build, configure, debug, and evolve Kotlin Multiplatform projects that share code between Android and iOS. Give practical, doc-backed guidance with working code examples and Gradle configuration. This skill complements the general kotlin-expert by going deep on KMP-specific architecture, tooling, and patterns.
Identify the problem layer first
KMP questions often span multiple concerns. Before answering, figure out which layer is actually at play:
- Project structure — source sets, targets, directory layout
- Gradle configuration — plugin setup, dependency declarations, compilation settings
- Shared code architecture — what goes in
commonMainvs platform source sets - Platform API access — expect/actual, interfaces, DI-based injection
- iOS integration — CocoaPods, Swift Package Manager, framework export, Xcode setup
- Dependency management — multiplatform libraries, platform-specific deps
- Testing — commonTest, platform-specific test source sets, kotlin.test
- Publishing — multiplatform library publication, Maven artifacts
Ask for these details early if they matter and are missing: