kotlin-specialist

Generate idiomatic Kotlin code for coroutine-based multiplatform, Compose, and Ktor projects.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/Estom/aiflex --skill kotlin-specialist-estom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kotlin-specialist
Source: https://github.com/Estom/aiflex/tree/main/skills-repo/Jeffallan-skills/kotlin-specialist
Command: npx skills add https://github.com/Estom/aiflex --skill kotlin-specialist-estom

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides senior-level Kotlin architecture, implementation, and pattern guidance to avoid common pitfalls when building coroutine-based, multiplatform, Android Compose, and Ktor applications.

Core Features & Use Cases

  • Expert recommendations for coroutine usage, structured concurrency, and Flow/StateFlow patterns.
  • Guidance for Kotlin Multiplatform (KMP) project structure, expect/actual separation, and cross-platform testing.
  • Android Compose best practices including ViewModel integration, StateFlow-driven UI, and Material3 theming.
  • Ktor server patterns for routing, serialization, authentication, and coroutine-friendly database access.
  • DSL, extension function, and sealed-class design idioms plus test scaffolding with coroutine test support.

Quick Start

Create a multiplatform Kotlin library using coroutines and Flow with shared domain models, platform-specific expect/actual implementations, and a small test suite using runTest.

Frequently Asked Questions about kotlin-specialist

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

FAQPage Schema
How do I structure a Kotlin Multiplatform library with shared domain models and expect/actual implementations?

Structure a Kotlin Multiplatform library by defining shared domain models in common code and using expect/actual declarations for platform-specific implementations. This approach enables cross-platform code reuse while maintaining native functionality and supporting coroutine-aware testing patterns.

What's the best way to build reactive pipelines with Flow and StateFlow in Kotlin coroutines?

Build reactive pipelines with Flow and StateFlow in Kotlin coroutines by leveraging structured concurrency and suspend functions. This pattern ensures safe state management and async data streams, applying Kotlin 1.9+ idioms and coroutine-aware testing scaffolding for robust pipeline execution.

How do I integrate Android Jetpack Compose with ViewModel and StateFlow for UI state management?

Integrate Android Jetpack Compose with ViewModel by driving UI state through StateFlow. This approach applies Material3 theming and navigation best practices, ensuring coroutine-friendly, reactive UI updates that adhere to modern Kotlin idioms and structured concurrency principles.

Does this guidance cover Ktor server routing and authentication patterns?

Yes, this guidance covers Ktor server patterns including routing, serialization, and authentication. It provides senior-level architecture recommendations for coroutine-friendly database access and server-side implementation, ensuring idiomatic Kotlin code for production-grade Ktor applications.

Can I use explicit API mode and sealed classes for Kotlin library design?

Yes, you can use explicit API mode and sealed classes for Kotlin library design. This Skill provides expert recommendations for DSL construction, extension functions, and sealed-class design idioms, ensuring robust library structuring with Kotlin 1.9+ conventions.

How do I set up coroutine-aware testing for suspend functions in Kotlin?

Set up coroutine-aware testing for suspend functions using runTest and coroutine test support. This approach provides proper test scaffolding for multiplatform projects, validating structured concurrency and Flow pipelines without blocking the test thread.