Skip to content

Kotlin Specialist

Writes idiomatic Kotlin with coroutines, Flow, KMP, Compose, Ktor and DSL patterns

Stars
12,176
Licence
MIT
Files
6 files

What it does

This skill gives an AI agent a set of Kotlin best practices so it writes code the way an experienced Kotlin developer would. It covers coroutines and reactive Flow streams, Kotlin Multiplatform code sharing, Android Jetpack Compose UI, Ktor web servers, and type-safe DSL design. It also tells the agent to model state with sealed classes, avoid unsafe null handling and GlobalScope, and to run detekt and ktlint, and it points the agent to reference notes for each topic.

Great for

  • Developers building Android apps with Jetpack Compose who want consistent, modern Kotlin code
  • Teams starting a Kotlin Multiplatform project that shares logic across platforms
  • Backend developers setting up Ktor servers with routing, authentication and serialization

Skip it if

  • Non-programmers: the output is Kotlin source code that still needs to be reviewed, built and run by someone who understands it
  • Projects that do not use Kotlin or require a specific older Kotlin version, since the guidance targets Kotlin 1.9+ patterns

Try asking

  • “Write a coroutine-based repository that exposes a StateFlow of loading, success and error states for a user profile”
  • “Set up a Ktor server with JSON serialization and bearer-token authentication”
  • “Convert this Java callback code to Kotlin with suspend functions and structured concurrency”
  • “Design a type-safe DSL builder for generating HTML or configuration files in Kotlin”
Step-by-step guide: how to use Kotlin SpecialistInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 6 original files, the MIT licence and an attribution note.

    kotlin-specialist.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip kotlin-specialist.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip kotlin-specialist.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Name your target platforms (Android, JVM server, iOS, desktop) up front so the agent loads the right reference file
  • Ask the agent to run detekt and ktlint in your project, since the skill instructs it to, and review the output yourself
  • Treat generated code as a draft: check coroutine cancellation, dispatcher choice and null handling before shipping

What's inside

  • references/android-compose.md
  • references/coroutines-flow.md
  • references/dsl-idioms.md
  • references/ktor-server.md
  • references/multiplatform-kmp.md
  • SKILL.md

Redistributed unmodified from Jeffallan/claude-skills under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.