Compose Multiplatform Platform Splits
Enforces where Compose Multiplatform code lives — commonMain vs expect/actual vs interface + DI — and validates iOS/Swift, desktop and web targets.
Dev & CodingAdvanced★ 307⑂ 25AI score 9/10Last updated: Nov 8, 2026
What it does
- Decides source-set placement (
commonMain,androidMain,iosMain…) using explicit decision tables. - Pushes stateful platform services to a commonMain interface bound in platform Koin modules instead of
expect/actual. - Bans
java.*,android.*,LocalContextandRfromcommonMain, enforced withcheck-commonmain-imports.sh. - Covers iOS/Swift interop via SKIE (suspend → async, Flow → AsyncSequence), desktop Main dispatcher (
kotlinx-coroutines-swing), and wasm/web limits. - Adds a verify-before-answer contract: read
gradle/libs.versions.tomland current official docs before writing platform code.
Who it's for
- KMP / Compose Multiplatform teams shipping Android, iOS, desktop and web from one codebase.
- Developers burned by shared code that compiles on Android but fails the iOS link.
- Leads who want KMP review standards encoded rather than tribal.
Examples
- "Add secure storage" → stateful, so it designs a
commonMainport interface with platform adapters bound in Koin, plus a hand-written fake for tests. - "Wire up DataStore" → one instance per file with platform path factories; desktop uses an app folder, never shared temp.
- "Consume this Flow from Swift" → no hand-written bridge; expose via SKIE and keep the ObjC-exported surface small and concrete.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/Meet-Miyani/compose-skill/HEAD/skills/compose-platform/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the skills/compose-platform folder from the GitHub repo Meet-Miyani/compose-skill into my ~/.claude/skills/compose-platform/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/Meet-Miyani/compose-skill.git /tmp/compose-skill && mkdir -p ~/.claude/skills && cp -r /tmp/compose-skill/skills/compose-platform ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/Meet-Miyani/compose-skill.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r compose-skill/skills/compose-platform ~/.claude/skills/ - It references sibling skills (
compose,compose-architecture,compose-data, …), so installing the whole set is recommended:cp -r compose-skill/skills/* ~/.claude/skills/ - Run
claudefrom your project root and ask something like "where should this feature live in commonMain?" to confirm the skill activates. - To use the verification scripts, make them executable:
chmod +x ~/.claude/skills/compose-platform/scripts/*.sh
View source on GitHub ↗License: MIT