AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

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.*, LocalContext and R from commonMain, enforced with check-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.toml and 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

  1. "Add secure storage" → stateful, so it designs a commonMain port interface with platform adapters bound in Koin, plus a hand-written fake for tests.
  2. "Wire up DataStore" → one instance per file with platform path factories; desktop uses an app folder, never shared temp.
  3. "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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/Meet-Miyani/compose-skill.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r compose-skill/skills/compose-platform ~/.claude/skills/
  5. It references sibling skills (compose, compose-architecture, compose-data, …), so installing the whole set is recommended: cp -r compose-skill/skills/* ~/.claude/skills/
  6. Run claude from your project root and ask something like "where should this feature live in commonMain?" to confirm the skill activates.
  7. To use the verification scripts, make them executable: chmod +x ~/.claude/skills/compose-platform/scripts/*.sh