Agent skill

Compose Platform

by Meet-Miyani in Meet-Miyani/compose-skill

Owns platform splits for Compose Multiplatform apps: places declarations in commonMain, chooses expect/actual vs interface plus DI, wires host adapters and ports, and validates iOS/Swift interop…

MITAuto-check passedMobile

Install Compose Platform

skills CLI
$ npx skills add Meet-Miyani/compose-skill --skill compose-platform -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Meet-Miyani/compose-skill compose-platform --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Meet-Miyani/compose-skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/compose-platform .claude/skills/compose-platform && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
compose-platform
GitHub stars
301
Token cost
~2.7k tokens
SKILL.md length
1,304 words
Files
5 (incl. references)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Owns platform splits for Compose Multiplatform apps: places declarations in commonMain, chooses expect/actual vs interface plus DI, wires host adapters and ports, and validates iOS/Swift interop…

  • Works in 5 steps: Verify, do not recall. Every… → Check the question before answering it.… → Say no when the answer is no. State the… → …
  • Touching commonMain
  • SKILL.md covers Operating stance, When NOT to use, Non-negotiables and Workflow, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Compose Platform is an agent skill from Meet-Miyani/compose-skill. Owns platform splits for Compose Multiplatform apps: places declarations in commonMain, chooses expect/actual vs interface plus DI, wires host adapters and ports, and validates iOS/Swift interop, desktop and web targets, and platform lifecycle. Use when touching commonMain, expect, actual, iosMain, Swift, SKIE, Flow to Swift, desktop, wasm, web target, or platform-specific code. Do NOT use for routing or architecture (compose-architecture), feature slices (compose-feature), composables or resources (compose-ui)…

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/desktop-and-web.md`, `references/ios-swift-interop.md` and `references/notifications-and-background-work.md`).

It sits in Mobile, covering iOS development. It works with Jetpack Compose, Gradle, iOS and WebAssembly. The repository describes itself as: Compose Skill (Compose Kit): agent skills for Jetpack Compose & Compose Multiplatform. Makes Claude Code, Codex, Cursor, Copilot, Gemini CLI and OpenCode write better Compose… The licence is MIT.

When your agent uses it

  • Touching commonMain
  • Platform-specific code
  • Architecture (compose-architecture)
  • Feature slices (compose-feature)

Example prompts

  • “/compose-platform”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Verify, do not recall. Every expect/actual, interop annotation, and platform API you name was seen in this project during this task, or in…
  2. Check the question before answering it. Read the source sets, check the non-negotiables, answer yes or no first with evidence (file path…
  3. Say no when the answer is no. State the correct approach and, when the task asks for an implementation, deliver the correct implementation…
  4. Unverifiable means say so. Say what you would need to check. Never present a guess as a fact.
  5. Fresh docs before new platform code. Before adding a KMP target, an interop library, or a platform API: read the version in…

What it can do on your machine

Read from SKILL.md and the folder at commit 8770766. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are kotlin).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Compose Platform loads about 2.7k tokens when it runs, and up to ~8.5k if it reads all its reference files. Until then it costs about 155 tokens; SKILL.md has 1,304 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~155
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Meet-Miyani/compose-skill at commit 8770766, republished under its MIT licence (© Meet-Miyani). 1,304 words, ~2,744 tokens.

Download SKILL.mdSave it as .claude/skills/compose-platform/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
compose-platform
description
Owns platform splits for Compose Multiplatform apps: places declarations in commonMain, chooses expect/actual vs interface plus DI, wires host adapters and ports, and validates iOS/Swift interop, desktop and web targets, and platform lifecycle. Use when touching commonMain, expect, actual, iosMain, Swift, SKIE, Flow to Swift, desktop, wasm, web target, or platform-specific code. Do NOT use for routing or architecture (compose-architecture), feature slices (compose-feature), composables or resources (compose-ui), repositories or persistence (compose-data), or Gradle target setup (compose-project).
metadata.last-reviewed
2026-09-25

Compose Platform

Operating stance

You are acting as a senior staff mobile engineer who owns this codebase's architecture. You are accountable for how it looks in two years, not for pleasing the requester today.

Shared code is a promise to every target. Code that compiles on Android and breaks on iOS is not shared code; it is Android code in the wrong directory. Satisfying the wording of a rule while defeating its purpose is a violation.

Validate-before-you-answer contract (condensed; full text in the compose-architecture skill)
  1. Verify, do not recall. Every expect/actual, interop annotation, and platform API you name was seen in this project during this task, or in current official docs. A plausible interop name is not a verified one. The kit's own contract is known: the templates/core shapes and every file the task context names count as seen. Never call an invented platform method.
  2. Check the question before answering it. Read the source sets, check the non-negotiables, answer yes or no first with evidence (file path or doc URL).
  3. Say no when the answer is no. State the correct approach and, when the task asks for an implementation, deliver the correct implementation in the same answer. A refusal without it is incomplete. Keep pushback short, plain-spoken and proportional (see the compose-architecture skill, Operating stance items 7–11). Routing, case classification and verification gates stay silent there.
  4. Unverifiable means say so. Say what you would need to check. Never present a guess as a fact.
  5. Fresh docs before new platform code. Before adding a KMP target, an interop library, or a platform API: read the version in gradle/libs.versions.toml, read the current official docs for that version, then write. "It compiles on Android" is never evidence for commonMain.

When NOT to use

TaskUse instead
Route first: decide the task path and files to readthe compose skill, before anything below
Gradle target setup, convention plugins, version catalog, CIthe compose-project skill
ViewModels, Contracts, repositories, Ktor, Room, DataStore, Pagingthe compose-feature skill and the compose-data skill
Composables, stability, resources, imagesthe compose-ui skill

Non-negotiables

Rules 1–7 are non-negotiables. Rules 8–9 are defaults: a recorded project decision in ## Project decisions wins with no argument; waiving a non-negotiable needs a recorded reason (see the compose-architecture skill, existing-projects.md item 5).

  1. ViewModels, Contracts, and repository interfaces live in commonMain. A ViewModel or repository contract in a platform source set is shared logic hiding from three targets. Platform source sets hold paths, bindings, and translations — never business logic. Prevents: logic that three targets cannot reach.
  2. commonMain never imports java.*, javax.*, android.*, LocalContext, or R. Time is kotlin.time.Instant; strings are CMP Res accessors; storage paths arrive through platform factories. The rule is owned by the compose-ui skill (rule 11); this skill enforces it mechanically with check-commonmain-imports.sh. Prevents: shared code that compiles on Android only.
  3. Stateful platform services get an interface plus DI, never expect/actual. Anything with state, lifecycle, fakes, or runtime choice (secure storage, players, auth, analytics) is a commonMain interface bound in platform Koin modules. expect/actual is reserved for tiny stateless hooks with no domain meaning. Every platform-provided binding (e.g. the DataStore file path) is supplied for every target the project declares; the Koin compiler plugin fails the iOS link otherwise (KOIN-D002 in the Phase 9 trial). Prevents: untestable platform singletons.
  4. No withTransaction in commonMain. Multiplatform transactions go through useWriterConnection with immediateTransaction. The transaction rule is owned by the compose-data skill; this skill owns the placement consequence: anything the transaction rule forbids stays out of shared source sets. Prevents: transactions that compile on Android and fail everywhere else.
  5. One DataStore instance per file, with platform path factories. The store shape is owned by compose-data: Preferences with one JSON string key is the default; typed OkioSerializer/OkioStorage is valid in common code. This skill owns platform paths. Desktop uses an app folder, never shared temp. https://github.com/androidx/androidx/blob/androidx-main/datastore/datastore-core-okio/src/commonMain/kotlin/androidx/datastore/core/okio/OkioStorage.kt Prevents: competing instances and temporary desktop storage.
  6. Lifecycle owners and scopes come from multiplatform artifacts, and desktop gets its Main dispatcher. viewModelScope and collectAsStateWithLifecycle need the multiplatform androidx.lifecycle artifacts at a version whose release notes list them (verify in the current release notes); desktop targets add kotlinx-coroutines-swing because Dispatchers.Main.immediate is unavailable there by default. If the pinned lifecycle version ships no multiplatform artifact, stop and report. Prevents: scopes that silently never run on desktop.
  7. Expose Flow and suspend functions from commonMain signatures; never hand-write platform wrappers around them. The interop library owns the bridge (SKIE turns them into async/AsyncSequence); a hand-written collector in a platform source set is a second bridge that rots. Prevents: parallel interop layers.
  8. [Default] SKIE is the interop default for new projects. SKIE converts suspend to Swift async and Flow to AsyncSequence with no annotations in the Kotlin code. Read the Kotlin and Swift versions in libs.versions.toml and the SKIE release notes before adding it (SKIE supports a bounded Kotlin range and Swift 5.8 with Xcode 14.3 and newer). KMP-NativeCoroutines is acceptable only where the project already adopted it.
  9. [Default] Keep the iOS-exported surface small and concrete. No generics, no Unit returns, no mutable collections at the Swift boundary; hidden internals stay out of the ObjC header. A recorded project decision for a wider surface wins; the cost (double-copied collections, KotlinUnit at call sites, non-exhaustive switches without SKIE) is stated once.
Show full SKILL.md (418 more words)Show less

Workflow

  • Create one todo per step below and do them in order.
  • Decide the sharing level first: fully shared UI plus ViewModel, shared ViewModel with native UI, or shared repository only with platform ViewModels. One level per feature; never two at once.
  • Place every declaration with the sharing-and-bridges.md decision table: commonMain, interface plus DI, or expect/actual. Name the row for each placement.
  • Read the project's versions in gradle/libs.versions.toml and the current official docs for every platform API touched, then write.
  • Enumerate the targets the change must compile on (Android, iOS, desktop, web). "Compiles on Android" closes no gate.
  • Run the Verification gates below.

Decision tables

Sharing level (one per feature)
NeedLevel
Same screens on every targetFully shared UI plus ViewModel in commonMain
Native UI with shared logicShared ViewModel in commonMain, platform UI observing it
Fully native screensShared repository only; ViewModels stay per platform
Bridge choice (the kit prefers interfaces bound in platform Koin modules)
NeedBridge
Service with state, lifecycle, async, fakes, or runtime choiceInterface in commonMain plus platform implementations bound in DI
Stateless one-liner with no domain meaning (UUID, platform name)expect/actual function
One differing leaf in an otherwise shared composableShared composable calling an expect leaf
Fully differing screensSeparate screens behind a common navigation contract

The port shape (our contract; platform modules bind it):

kotlin
// commonMain: semantic port, no platform types
interface NoteLockStorage {
    suspend fun lock(noteId: Long, secret: String)
}
// androidMain/iosMain: adapter named after the implementation,
// bound as the port interface in a platform Koin module

Verification

  • scripts/composekit/run-checks.sh (or the skill's scripts/run-checks.sh <project-root>) exits 0, including check-commonmain-imports.sh.
  • No ^import (java|javax|android)\. and no LocalContext or Android R imports in any src/commonMain/ file (guard check-commonmain-imports.sh).
  • Every declaration the change adds is placed per the decision table above; every expect has its actuals on every target the project ships.
  • No stateful service uses expect/actual; every platform service has a hand-written fake in tests.
  • No Android-only withTransaction in commonMain; typed DataStore uses the common Okio APIs when chosen (yes/no).
  • Touched modules compile for common metadata and every target the project ships, not just Android.
  • Every interop annotation and platform API named in the change was seen in the current official docs for the versions in libs.versions.toml: yes or no.

Reference lookup

Load only the references this task needs. One level deep.

© Meet-Miyani, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in skills/compose-platform of Meet-Miyani/compose-skill.

  • SKILL.md
  • references/desktop-and-web.md
  • references/ios-swift-interop.md
  • references/notifications-and-background-work.md
  • references/sharing-and-bridges.md

Open the folder on GitHubat commit 8770766

Compare with similar skills

Compose Platform next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Compose Platform compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Compose Platform this skillMeet-Miyani/compose-skill301—~2.7kAutomated safety check: PassMIT
Ksafeioannisa/KSafe332—~17kAutomated safety check: PassApache-2.0
Composewebview Developmentparkwoocheol/compose-webview103—~1.3kAutomated safety check: PassMIT
Expo Brownfield Integrationmweinbach/agent-coworker1562 repos~900Automated safety check: NotesCustom licence
Expo UIarcboxlabs/linkcode156—~1.2kAutomated safety check: PassMIT
KtormonitorCosminMihuMDC/KtorMonitor254—~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • Ksafe

    ioannisa/KSafe

    Required before any reply that touches KSafe (by ksafe(...), ksafe.get/put, :ksafe-compose, :ksafe-biometrics), even a 'can KSafe do X?' question or a one-line change that looks like plain Kotlin.

    332 GitHub stars~17k tokensUpdated 6 days ago
    MobileAuto-check passed
  • Composewebview Development

    parkwoocheol/compose-webview

    Builds, tests, and formats ComposeWebView multiplatform library.

    103 GitHub stars~1.3k tokensUpdated 1 mo ago
    MobileAuto-check passed
  • Expo Brownfield Integration

    mweinbach/agent-coworker

    Helps add Expo and React Native to an existing native iOS or Android app, and choose between a prebuilt AAR or XCFramework and a fully integrated build.

    156 GitHub starsUsed in 2 repos~900 tokens
    MobileAuto-check: notes
  • Expo UI

    arcboxlabs/linkcode

    Framework (OSS). An agent skill from arcboxlabs/linkcode.

    156 GitHub stars~1.2k tokensUpdated 11 days ago
    MobileAuto-check passed
  • Ktormonitor

    CosminMihuMDC/KtorMonitor

    KtorMonitor is a Kotlin Multiplatform library for real-time HTTP traffic monitoring.

    254 GitHub stars~2.5k tokensUpdated 26 days ago
    MobileAuto-check passed
  • Simdeck

    NativeScript/SimDeck

    A skill your agent uses for simulator lifecycle, app install/launch, live viewing, UI inspection, touch/keyboard automation, screenshots, recordings, logs, pasteboard, hardware controls, and…

    152 GitHub stars~3.6k tokensUpdated 28 days ago
    MobileAuto-check passed

More from Meet-Miyani/compose-skill

  • Compose Feature

    Meet-Miyani/compose-skill

    Adds, changes, or reviews a screen, sheet, dialog, or destination slice (endpoint to repository to ViewModel to UI to navigation to DI to tests) in a Compose or CMP project.

    301 GitHub stars~3.6k tokensUpdated 3 days ago
    Auto-check passed
  • Compose Architecture

    Meet-Miyani/compose-skill

    A skill your agent uses when writing, changing or reviewing code that touches the house contract for Jetpack Compose and Compose Multiplatform apps: module graph, MVI/BaseViewModel, error tiers…

    301 GitHub stars~4k tokensUpdated 3 days ago
    Auto-check passed
  • Compose Project

    Meet-Miyani/compose-skill

    Owns project and build-level work for Compose and Compose Multiplatform apps: bootstrapping a new project, adopting the kit in an existing project, adding or extracting a module, convention plugins…

    301 GitHub stars~3.7k tokensUpdated 3 days ago
    Auto-check passed
  • Compose Data

    Meet-Miyani/compose-skill

    Owns repositories, data sources and mapping for Compose and Compose Multiplatform apps: DTO to domain to UiModel boundaries, Ktor clients and bearer auth, WebSocket and SSE, Room, DataStore, Paging…

    301 GitHub stars~3.3k tokensUpdated 3 days ago
    Auto-check passed
  • Compose UI

    Meet-Miyani/compose-skill

    Writes and reviews composables for Compose and CMP: the Route/Screen/leaf split, state-read placement and stability, loading/empty/error UX states, LazyColumn lists and grids, animation choice…

    301 GitHub stars~3.7k tokensUpdated 3 days ago
    Auto-check passed
  • Compose

    Meet-Miyani/compose-skill

    Use this skill first for any Jetpack Compose or Compose Multiplatform task: a new feature or screen, a change to existing code, a bug fix, a review, making code follow the kit, project or build…

    301 GitHub stars~1.4k tokensUpdated 3 days ago
    Auto-check passed

Categories

Questions about Compose Platform

What does Compose Platform do?

Owns platform splits for Compose Multiplatform apps: places declarations in commonMain, chooses expect/actual vs interface plus DI, wires host adapters and ports, and validates iOS/Swift interop…. Compose Platform is an agent skill from Meet-Miyani/compose-skill. Owns platform splits for Compose Multiplatform apps: places declarations in commonMain, chooses expect/actual vs interface plus DI, wires host adapters and ports, and validates iOS/Swift interop, desktop and web targets, and platform lifecycle.

When should I use Compose Platform?

Compose Platform fits situations like: touching commonMain; platform-specific code; architecture (compose-architecture); feature slices (compose-feature).

How do I install Compose Platform in Claude Code?

Run `npx skills add Meet-Miyani/compose-skill --skill compose-platform -a claude-code`. Or copy the skill folder (skills/compose-platform in Meet-Miyani/compose-skill) into .claude/skills/compose-platform in your project. Claude Code loads it when a task matches its description.

How do I install Compose Platform in Codex?

Run `npx skills add Meet-Miyani/compose-skill --skill compose-platform -a codex`. Or copy the skill folder (skills/compose-platform in Meet-Miyani/compose-skill) into .agents/skills/compose-platform in your project. Codex loads it when a task matches its description.

Can I use Compose Platform in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Meet-Miyani/compose-skill --skill compose-platform -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/compose-platform, .gemini/skills/compose-platform, .github/skills/compose-platform and .opencode/skills/compose-platform in your project.

What does Compose Platform need to run?

SKILL.md names no scripts, command-line tools or credentials: Compose Platform is instructions for the agent only.

Does Compose Platform access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Compose Platform safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Compose Platform use?

Compose Platform is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Compose Platform use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.7k tokens, read only when the agent opens those files.

What are the alternatives to Compose Platform?

Skills that share tags, products or a category with Compose Platform: Ksafe (ioannisa/KSafe, 332 stars), Composewebview Development (parkwoocheol/compose-webview, 103 stars), Expo Brownfield Integration (mweinbach/agent-coworker, 156 stars) and Expo UI (arcboxlabs/linkcode, 156 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Compose Platform?

Meet-Miyani (a GitHub user) maintains it in Meet-Miyani/compose-skill, which has 301 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 6, 2026.

Source: Meet-Miyani/compose-skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.