compose-platform

compose-platform is a skill for Claude Code from Meet-Miyani/compose-skill. It costs 129 tokens per session (2,520 once invoked), scanned A, original, MIT.

An architecture guide for sharing Kotlin code across Compose Multiplatform targets such as Android, iOS, desktop, and web. It covers common code, platform-specific implementations, dependency injection, and Swift interoperability.

In plain words
What is it for?
Use it when organising commonMain and platform source sets, choosing between expect/actual and interfaces, connecting host-specific adapters, or checking platform lifecycle and Swift integration.
Why use it?
It helps prevent shared code from depending accidentally on one platform and catches problems that only appear on iOS or another target.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the compose-kit plugin — 7 skills shipped together

Good fit Use it when organising commonMain and platform source sets, choosing between expect/actual and interfaces, connecting host-specific adapters, or checking platform lifecycle and Swift integration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/meet-miyani/compose-skill/compose-platform
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Meet-Miyani/compose-skill --skill compose-platform
Clone the repo
git clone --depth 1 https://github.com/Meet-Miyani/compose-skill

Made for: Claude Code.

Or install compose-kit, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for compose-platform

README.md
[![agentmods](https://agentmods.dev/badge/skills/meet-miyani/compose-skill/compose-platform/github.svg)](https://agentmods.dev/skills/meet-miyani/compose-skill/compose-platform)
Your own site
<a href="https://agentmods.dev/skills/meet-miyani/compose-skill/compose-platform"><img src="https://agentmods.dev/badge/skills/meet-miyani/compose-skill/compose-platform/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for compose-platform

Your own site · 80×15
<a href="https://agentmods.dev/skills/meet-miyani/compose-skill/compose-platform"><img src="https://agentmods.dev/badge/skills/meet-miyani/compose-skill/compose-platform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 129 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,520 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00129 $0.02520
Opus 5.5 $0.00052 $0.01008
Sonnet 5.5 $0.00026 $0.00504
Haiku 4.5 $0.00013 $0.00252

Measured 11d ago against content hash bcb4827b786a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

compose-platform scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/compose-platform/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Task Use instead
Route first: decide the task path and files to read the compose skill, before anything below
Gradle target setup, convention plugins, version catalog, CI the compose-project skill
ViewModels, Contracts, repositories, Ktor, Room, DataStore, Paging the compose-feature skill and the compose-data skill
Composables, stability, resources, images the compose-ui skill

Read the full file on GitHub · 109 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed bcb4827b786a
  2. 15d ago First seen · 109 lines · 129 tokens per session scan A 5ad20cc6d2a7

Subscribe to this mod's changes

compose-platform is a skill published in the GitHub repository Meet-Miyani/compose-skill (304 stars, last pushed yesterday), licensed MIT. It adds 129 tokens to every session and 2,520 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.

Related

Other skills, from other repositories

compose-animations

Use when writing or reviewing Jetpack Compose motion: visibility enter/exit, animating one property toward a target, color or size transitions, multiple properties from one state, switching composable content, or choosing between AnimatedVisibility, animateAsState, rememberTransition, AnimatedContent, and Crossfade.

chrisbanes/skills · 64 tokens

compose-focus-navigation

Use when writing or reviewing Jetpack Compose UI for TV, keyboard, desktop, accessibility focus, D-pad navigation, FocusRequester, focusProperties, key events, or initial focus behavior.

chrisbanes/skills · 41 tokens

compose-multiplatform

Use when building one shared Compose UI in Kotlin across Android, iOS, and desktop — commonMain @Composables, expect/actual, source-set placement, native interop, multiplatform ViewModel/navigation/Koin. NOT a single-platform native build (that is kotlin-android / swift-ios), and NOT Dart/Flutter cross-platform UI…

ericrisco/rsc-harness · 80 tokens

mapkit

MapKit + CoreLocation for iOS (iOS 17–26 era). SwiftUI Map with MapContentBuilder (Marker / Annotation / MapPolyline / MapPolygon / MapCircle / UserAnnotation), MapCameraPosition & MapCamera with onMapCameraChange, mapStyle / mapControls / selection, MapReader + MapProxy coordinate conversion, and Look Around…

TalissonVitorino/kmp-ios-skills · 246 tokens

navigation

Navigation for Android and Kotlin Multiplatform/iOS apps - all three approaches in one place. (A) Jetpack Navigation Compose (androidx.navigation - NavController, NavHost, composable , type-safe @Serializable routes, nested graphs, bottom nav, deep links, results via SavedStateHandle). (B) Jetpack Navigation 3 / Nav3…

TalissonVitorino/kmp-ios-skills · 177 tokens

kmp-repositories

Repository pattern for Kotlin Multiplatform. Shared interfaces with platform-specific implementations, clean data layer architecture.

TalissonVitorino/kmp-ios-skills · 25 tokens