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

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/actual for 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.readBytes edge case
  • Two-way iOS interop: ComposeUIViewController inside SwiftUI, UIKitView / UIKitViewController inside 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

  1. "Trigger a share sheet from shared code" → produces expect fun openShareSheet with Android Intent and iOS UIActivityViewController actuals
  2. "My iOS layout jumps twice when the keyboard opens" → sets OnFocusBehavior.DoNothing and drives insets with imePadding() instead
  3. "How do I read screen size in commonMain?" → replaces LocalConfiguration with LocalWindowInfo.current.containerSize or BoxWithConstraints

· · · 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)
  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/_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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/AThevon/genjutsu.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the whole _jutsu bundle (this skill links to sibling skills and references/ docs): cp -r genjutsu/skills/_jutsu ~/.claude/skills/
  5. Restart Claude Code and confirm compose-multiplatform appears under /skills.
  6. 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