Compose Multiplatform Patterns
Gives Claude battle-tested Compose Multiplatform rules for expect/actual, shared resources, iOS/Android interop and cross-target performance.
Dev & CodingAdvanced★ 947⑂ 69AI score 9/10Last updated: Nov 16, 2026
What it does
Equips Claude with concrete Compose Multiplatform (CMP) / Kotlin Multiplatform (KMP) patterns for shipping one Compose codebase to Android, iOS, Desktop and Wasm.
- Source-set layout (
commonMain,androidMain,iosMain,desktopMain,wasmJsMain) with a target of 80–95% shared code expect/actualfor functions, classes and@Composables, plus guidance on when not to use it- Cross-platform alternatives to Android-only APIs:
LocalWindowInfo.containerSize,LocalDensity,BoxWithConstraints - Compose Resources for fonts, drawables and localized strings, including the
Res.readBytesedge case - Two-way iOS interop:
ComposeUIViewControllerinside SwiftUI,UIKitView/UIKitViewControllerinside Compose - A "what does NOT work" list: iOS keyboard double-adjustment, RTL quirks, banned JVM-only APIs in
commonMain - Anti-pattern table and performance notes (iOS Skia cold start, Wasm bundle budget)
Who it's for
- Kotlin developers building cross-platform apps with Compose Multiplatform
- Teams comfortable with Jetpack Compose who are adding iOS or Wasm targets
- Anyone embedding Compose screens into an existing iOS app, or native views into Compose
Examples
- "Trigger a share sheet from shared code" → produces
expect fun openShareSheetwith Android Intent and iOSUIActivityViewControlleractuals - "My iOS layout jumps twice when the keyboard opens" → sets
OnFocusBehavior.DoNothingand drives insets withimePadding()instead - "How do I read screen size in commonMain?" → replaces
LocalConfigurationwithLocalWindowInfo.current.containerSizeorBoxWithConstraints
· · · 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/AThevon/genjutsu/HEAD/skills/_jutsu/compose-multiplatform/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/_jutsu/compose-multiplatform folder from the GitHub repo AThevon/genjutsu into my ~/.claude/skills/compose-multiplatform/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/AThevon/genjutsu.git /tmp/genjutsu && mkdir -p ~/.claude/skills && cp -r /tmp/genjutsu/skills/_jutsu ~/.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/AThevon/genjutsu.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the whole
_jutsubundle (this skill links to sibling skills andreferences/docs):cp -r genjutsu/skills/_jutsu ~/.claude/skills/ - Restart Claude Code and confirm
compose-multiplatformappears under/skills. - From a CMP project, ask something like "show me the iOS keyboard handling pattern" to verify. Cross-check any version numbers in the doc against current release notes.
View source on GitHub ↗License: NOASSERTION