kotlin-multiplatform-expect-actual

Installation
SKILL.md

When to Use This Skill

Use when you need to:

  • Write platform-specific code in a KMP project
  • Decide between expect/actual and an interface with Koin injection
  • Expose Kotlin code cleanly to Swift / Objective-C
  • Avoid the common "actual everywhere" trap
  • Understand why a KMP module isn't compiling on one target

Trigger keywords: expect actual, platform-specific code, iOS implementation, actual class, expect fun, platform API, ObjCName, Swift interop, typealias actual, Kotlin Native memory, platform dispatcher, platform UUID, FileSystem KMP, platform-specific implementation, iOS only code, Android only code, platform bridge, native implementation, different per platform, platform abstraction.

Freshness rule: K2 and Kotlin Native change expect/actual rules with each Kotlin release — recheck the Kotlin Multiplatform docs before upgrading past a minor version.


Installs
13
GitHub Stars
2
First Seen
Jun 18, 2026
kotlin-multiplatform-expect-actual — ronjunevaldoz/kmp-agent-skills