Skill v1.0.1
currentAutomated scan100/100+8 new
name: mobile-kmp description: Works on Kotlin Multiplatform mobile projects with shared Kotlin source sets and Android/iOS targets. Use for architecture, tests, debugging, reviews, performance, security, accessibility, dependencies and releases when org.jetbrains.kotlin.multiplatform is applied; inspect actual targets, commonMain/commonTest, target source sets, Compose Multiplatform and the iOS framework/host app before giving platform advice. intents: [design, architecture, test, performance, review, debug, security, release, accessibility, migration, dependency, build, deployment] stacks: [kotlin-multiplatform] metadata: version: "1.0.1"
Kotlin Multiplatform
KMP is a sharing mechanism, not a promise that both apps use the same UI or SDK. Resolve the module and target graph before choosing Android, iOS or shared-code guidance.
| Question | Read | |
|---|---|---|
| Which code and dependencies can be shared? | references/source-sets.md | |
| How does shared Kotlin reach the iOS app? | references/apple-interop.md | |
| Is UI shared with Compose Multiplatform or native on each target? | references/compose-ui.md | |
| Which build, measurement or release task applies? | references/build-performance.md |
Ground the answer
- Read
settings.gradle.kts, the affected module'sbuild.gradle.kts, version catalog and source-set directories. Record the configured targets;androidMainandiosMainare not proof that a target is built in CI. - Trace a real symbol from
commonMainthrough an interface orexpectdeclaration to each configured implementation and its Android/iOS caller. Name the module, source set and owner at every boundary. For shared Compose UI, trace its host entry too. - Match validation to the changed boundary: shared Kotlin tests on configured targets, target tests for
actualimplementations, and host UI/device tests for behavior that crosses into Android or iOS. A JVM test is not iOS coverage. - Use the topic skill for the requested work. Use
mobile-androidormobile-iosonly for an affected host or target-specific implementation; do not apply native-app instructions blindly tocommonMain.
The Kotlin Multiplatform source-set reference defines commonMain, commonTest and target compilations. Confirm DSL and task names in the project's installed Kotlin and Gradle versions.
Interface design
For UI/UX reviews, wireframes, design systems and screen redesigns, use mobile-ui-ux and its reference for this stack. For Apple targets, also consult its Apple design workflow; validate platform claims against current official guidance and the installed toolkit.