modern-kotlin
Use when writing, reviewing, or modernizing Kotlin code with recent language versions (2.0–2.4.x, including 2.4.10 and 2.4.20-Beta1), including context parameters, collection literals, guard conditions in when, multi-dollar interpolation, non-local break/continue, explicit backing fields, nested type aliases, name-based destructuring, data objects, Enum.entries, rangeUntil, unused-return-value checker, K2 smart casts, contracts, experimental -X compiler flags, exception-handling idioms (runCatching vs try/catch, Result), and stdlib APIs such as Uuid, Base64, HexFormat, kotlin.time Instant/Clock, and atomics.
Pinned to revision 65511528558e, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/modern-kotlin/SKILL.md
- skills/modern-kotlin/agents/openai.yaml
- skills/modern-kotlin/references/experimental-flags.md
- skills/modern-kotlin/references/kotlin-1.4-1.6.md
- skills/modern-kotlin/references/kotlin-1.7-1.9.md
- skills/modern-kotlin/references/kotlin-2.0-2.1.md
- skills/modern-kotlin/references/kotlin-2.2.md
- skills/modern-kotlin/references/kotlin-2.3.md
- skills/modern-kotlin/references/kotlin-2.4.md
Every link opens the file at its source, pinned to the revision this page describes.