kotlin-specialist

Guide Kotlin 1.9+ development with coroutines, Flow, and Multiplatform.

9|2|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/stephanj/claude-code-collections --skill kotlin-specialist-stephanj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-specialist
Source: https://github.com/stephanj/claude-code-collections/tree/main/skills/kotlin-specialist
Command: npx skills add https://github.com/stephanj/claude-code-collections --skill kotlin-specialist-stephanj

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the complexity of modern Kotlin development by providing a structured, expert-level guide for building robust, type-safe, and performant applications across JVM, Android, and multiplatform environments.

Core Features & Use Cases

  • Coroutine & Flow Mastery: Provides best practices for structured concurrency, reactive streams, and asynchronous programming to prevent memory leaks and blocking operations.
  • Multiplatform Architecture: Offers guidance on shared code strategies, expect/actual patterns, and platform-specific implementations for KMP projects.
  • Modern UI & Backend: Includes patterns for Jetpack Compose state management and Ktor server-side routing, authentication, and serialization.

Quick Start

Invoke the kotlin-specialist skill to analyze your current coroutine implementation and suggest improvements for structured concurrency.

Frequently Asked Questions about kotlin-specialist

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement structured concurrency with Kotlin coroutines and Flow API?

Structured concurrency in Kotlin coroutines requires scoping asynchronous operations to specific lifecycles to prevent memory leaks. Using the Flow API alongside structured concurrency ensures reactive streams execute safely without blocking operations, adhering to idiomatic Kotlin 1.9+ patterns.

What's the best way to share code between platforms using Kotlin Multiplatform?

Sharing code with Kotlin Multiplatform involves defining common logic and utilizing expect/actual patterns for platform-specific implementations. This strategy allows you to maintain shared architecture across JVM, Android, and other environments while ensuring type-safe interactions.

How do I manage state in Jetpack Compose using Kotlin?

Managing state in Jetpack Compose involves leveraging Kotlin's type-safe patterns and null safety to handle UI state predictably. Applying idiomatic Kotlin 1.9+ patterns ensures that state updates trigger recompositions efficiently without leaking memory.

Can I use Kotlin for both server-side architecture and Android UI development?

Yes, Kotlin supports both server-side architecture and Android UI development. You can build reactive Android UIs with Jetpack Compose and robust backends with Ktor, handling routing, authentication, and serialization within a single type-safe ecosystem.

When do I need to use type-safe DSL creation in Kotlin?

Type-safe DSL creation in Kotlin is needed when designing internal domain-specific languages for configuration or complex data structures. It leverages Kotlin's type system to enforce compile-time safety and prevent errors in multiplatform or server-side applications.