Skip to content
vitorpamplona avatar

Kotlin Multiplatform

Kotlin Multiplatform placement guide for Amethyst covering source sets, expect/actual, and Gradle build traps.

CCM score
70 of 100
skills.sh installs
1.6K
GitHub stars
1.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers which module or source set code belongs in, the share-versus-keep-native rule, and when to use expect/actual, ports, or slots
  • Includes a source-set table for commonMain, jvmAndroid, platform actuals, and skikoMain, plus per-module target lists
  • Enforces a purity gate via verifyKmpPurity that bans Jackson, OkHttp, System.currentTimeMillis, and java.util.UUID in iOS-compiled sets
  • Designed for editing build.gradle.kts, libs.versions.toml, and secp256k1 variants, and for extracting Android composables into commonsUI

Install

$ npx -y skills add vitorpamplona/amethyst --skill kotlin-multiplatform -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Kotlin Multiplatform and Gradle in Amethyst

Module roles, the "share vs keep native" rule and the CLI-safe boundary are in AGENTS.md (Architecture, Feature Workflow). Package placement inside commons / commonsUI is in commons/ARCHITECTURE.md ("Where does my code go?", "Source sets") and commonsUI/ARCHITECTURE.md ("Platform slots"). Read those first; this skill adds the source-set mechanics and the build traps.

Modules

settings.gradle.kts includes 14: amethyst, nappletHost, benchmark, baselineprofile, geode, commons, commonsUI, nestsClient, desktopApp, cli, relayBench, agentCore, claudeCodeClient, codexClient. Quartz is the external libs.quartz (vitorpamplona/quartz) and QUIC the external libs.quic (vitorpamplona/quic-kmp); -PquartzDir=../quartz / -PquicKmpDir=../quic-kmp build a local checkout instead (an included build, so quic's own quartz dependency follows).

Source sets

Details

Repository
github.com/vitorpamplona/amethyst
Category
Mobile Apps
First seen
May 16, 2026

More from vitorpamplona/amethyst

All 2

Similar to Kotlin Multiplatform

More Mobile Apps