amethyst: Skill for Claude Code

.claude/skills/kotlin-multiplatform/SKILL.md

kotlin-multiplatform is a skill for Claude Code from vitorpamplona/amethyst. It costs 0 tokens per session (1,669 once invoked), scanned A, original, MIT.

Architecture guidance for Kotlin Multiplatform, a system for sharing Kotlin code across platforms such as Android, desktop, and iOS.

In plain words
What is it for?
Choosing between shared and platform-specific code, placing files in source sets, and using expect/actual when platform implementations differ.
Why use it?
It helps decide which code belongs in shared modules and which must remain platform-specific. That avoids abstractions that add complexity without enabling reuse.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

This is vitorpamplona/amethyst's own configuration. It tells Claude Code how to work on amethyst itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything amethyst configures →

About the project

Amethyst is an Android client for Nostr, a social network protocol that lets people control their own social activity and connections. People use it to read and publish Nostr content, follow accounts, and exchange encrypted direct messages from Android and other supported platforms. The catalogue add-ons support workflows for developing or operating the client.

vitorpamplona/amethyst · 1,620 stars · on GitHub · amethyst.social

Reuse

Borrowing it

Nothing to install: this file belongs to vitorpamplona/amethyst. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vitorpamplona/amethyst/main/.claude/skills/kotlin-multiplatform/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vitorpamplona/amethyst

Made for: Claude Code.

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 kotlin-multiplatform

README.md
[![agentmods](https://agentmods.dev/badge/skills/vitorpamplona/amethyst/kotlin-multiplatform/github.svg)](https://agentmods.dev/skills/vitorpamplona/amethyst/kotlin-multiplatform)
Your own site
<a href="https://agentmods.dev/skills/vitorpamplona/amethyst/kotlin-multiplatform"><img src="https://agentmods.dev/badge/skills/vitorpamplona/amethyst/kotlin-multiplatform/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 kotlin-multiplatform

Your own site · 80×15
<a href="https://agentmods.dev/skills/vitorpamplona/amethyst/kotlin-multiplatform"><img src="https://agentmods.dev/badge/skills/vitorpamplona/amethyst/kotlin-multiplatform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,669 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. Third-party audits
  • Socket pass 7 Oct 2026
  • Snyk pass 7 Oct 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.01669
Opus 5.5 $0.00000 $0.00668
Sonnet 5.5 $0.00000 $0.00334
Haiku 4.5 $0.00000 $0.00167

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

Security

Grade A, and why

kotlin-multiplatform 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 9d 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.

.claude/skills/kotlin-multiplatform/SKILL.md · 103 lines

How it starts

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

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 13: amethyst, nappletHost, benchmark, baselineprofile, geode, commons, commonsUI, nestsClient, marmotQuic, desktopApp, cli, relayBench, marmotBench. 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

Source set Holds Targets
commonMain Pure Kotlin. Compiled for iOS/native too, so no JVM APIs all
jvmAndroid JVM libraries shared by Android + Desktop: OkHttp, nestsClient, NWC/LNURL android, jvm
androidMain / jvmMain Platform actuals (Keystore/DataStore vs keyring, Coil bridges) one each
iosMain, appleMain, nativeMain, linuxMain, macosMain quartz only (plus iosMain in commons/commonsUI) Apple / native
skikoMain commonsUI code shared by Desktop and iOS jvm, ios

Targets: quartz builds android, jvm, iosArm64, iosSimulatorArm64, linuxX64, macosArm64. commons and commonsUI build android, jvm, iosArm64, iosSimulatorArm64. nestsClient, marmotQuic are android + jvm. There is no iosX64.

jvmAndroid is a custom intermediate set created with create("jvmAndroid") before androidMain/jvmMain depend on it (see commons/build.gradle.kts). Prefer the most common set that compiles: commonMain → jvmAndroid → platform.

kotlinx.serialization is the house JSON stack and OkHttp the house HTTP stack (AGENTS.md › Tech Stack). Nostr JSON (events, messages, filters, tags) goes through quartz's Kite (OptimizedJsonMapper, KiteWriter, KitePretty); quartz dropped Jackson in 2.4.0, so don't add Jackson back. Don't migrate JVM HTTP to Ktor. Jackson and OkHttp are banned in iOS-compiled sets, which the purity gate enforces.

Read the full file on GitHub · 103 lines

Files

What ships with it

1 file 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. 9d ago Changed 5655fadbc69b
  2. 14d ago Changed · +2 lines 3d33ae652c50
  3. 15d ago Changed 5a0a02addf8d
  4. 16d ago Changed · +2 lines 0fb96cfe3cd2
  5. 25d ago Changed · -309 lines · -119 tokens per session f1e129475357
  6. 1mo ago Changed · +5 lines 2251017af04f
  7. 1mo ago Changed 7024d6aba290
  8. 2mo ago First seen · 403 lines · 119 tokens per session scan A 355a91b8d9f5

Subscribe to this mod's changes

kotlin-multiplatform is a skill published in the GitHub repository vitorpamplona/amethyst (1,620 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,669 tokens. 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-08-30.

Related

kotlin-multiplatform compared with skills from other repositories

kotlin-multiplatform next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kotlin-multiplatformvitorpamplona/amethystSkill1.6kyesterdayMITA0Claude Code
compose-animationschrisbanes/skillsSkill1.1kyesterdayApache-2.0A64Claude Code
compose-focus-navigationchrisbanes/skillsSkill1.1kyesterdayApache-2.0A41Claude Code
kotlin-androidericrisco/rsc-harnessSkill5032d agoMITA78Claude Code, Codex
compose-multiplatformericrisco/rsc-harnessSkill5032d agoMITA80Claude Code, Codex
release-kotlin-librarychrisbanes/skillsSkill1.1kyesterdayApache-2.0A46Claude Code
using-chrisbanes-skillschrisbanes/skillsSkill1.1kyesterdayApache-2.0A38Claude Code