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
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, andskikoMain, plus per-module target lists - Enforces a purity gate via
verifyKmpPuritythat bans Jackson, OkHttp,System.currentTimeMillis, andjava.util.UUIDin iOS-compiled sets - Designed for editing
build.gradle.kts,libs.versions.toml, and secp256k1 variants, and for extracting Android composables intocommonsUI
Install
$ npx -y skills add vitorpamplona/amethyst --skill kotlin-multiplatform -yInstalls 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 2Similar to Kotlin Multiplatform
More Mobile Appsandroid-gradle-build-logicSkillkrutikjain/android-agent-skills347 installsStructured guide for shaping Android Gradle build logic, version catalogs, and toolchain compatibility across modules.
kotlin-tooling-agp9-migrationSkillkotlin/kotlin-agent-skills2.5K installsMigration guide for moving Kotlin Multiplatform projects to Android Gradle Plugin 9.0 and its new module layout.
compose-expertSkillvitorpamplona/amethyst1.4K installsShared Compose Multiplatform UI conventions, navigation shell, and performance review guidance for Amethyst's commonsUI.
android-native-devSkillminimax-ai/skills2.8K installsComprehensive Android native guide covering Material Design 3, Kotlin/Compose, project setup, and build troubleshooting.
kotlin-footgunsPluginmaxrave-dev/kotlin-footguns2.7K stars228 battle-tested traps mapping the footguns of Kotlin, Compose Multiplatform and desktop JVM development, in ten area skills plus a scanner — mined from a prod