Kotlin Specialist guides Claude through Kotlin work in six steps: analyze targets and coroutine patterns, design sealed and data classes, implement with coroutines and Flow, validate with detekt and ktlint, optimize and test with coroutine test support. Checkpoints ask for cancellation handling and null safety before the agent moves on.
Five reference files cover coroutines and Flow, multiplatform setup, Android with Compose, Ktor servers and DSL idioms.
What You Get
- Sealed class and data class models with exhaustive when handling
- Suspend functions and Flow code with cancellation handled on teardown
- Kotlin Multiplatform structure with expect and actual declarations and a multiplatform Ktor client
- Jetpack Compose screens with state, side effects, Hilt injection and Material 3 theming
- Ktor server routes with JWT authentication, Exposed database access and WebSockets
- Tests built with runTest and Turbine
Common Use Cases
- Building an Android screen in Compose with a ViewModel and StateFlow
- Sharing business logic between Android and iOS with Kotlin Multiplatform
- Writing a Ktor backend with JWT login and a database
- Replacing runBlocking and GlobalScope with structured concurrency
- Designing a type-safe builder DSL
What Makes It Unique
It covers the whole Kotlin range in one skill: server, Android, multiplatform and DSL design. The workflow has two checkpoints for coroutine cancellation and null safety, runs detekt and ktlint before the agent moves on, and the constraints ban runBlocking in production code, undocumented non-null assertions and platform code in common modules.
Under The Hood
The skill is a SKILL.md with five reference files and no scripts, and the references load by topic. The workflow tells the agent to run detekt and ktlint, so it uses the shell and writes Kotlin source, Gradle configuration and test files. The multiplatform reference shows a Ktor client calling an HTTP API and a publishing setup that reads a GitHub token from an environment variable, and the Ktor server reference shows JWT authentication and password hashing. The skill does not tell the agent to browse the web.