moai-lang-kotlin

Guide Kotlin 2.0 development with Ktor, coroutines, and Compose Multiplatform.

Updated Feb 22, 2026
One-click install
npx skills add https://github.com/SayBGM/TubeExtract --skill moai-lang-kotlin-saybgm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-lang-kotlin
Source: https://github.com/SayBGM/TubeExtract/tree/main/.claude/skills/moai-lang-kotlin
Command: npx skills add https://github.com/SayBGM/TubeExtract --skill moai-lang-kotlin-saybgm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill empowers developers to build robust, idiomatic Kotlin applications across various platforms, leveraging the latest language features and best practices.

Core Features & Use Cases

  • Kotlin 2.0 Expertise: Covers K2 compiler, coroutines, Flow, and modern language constructs.
  • Ktor & Exposed: Develop high-performance, asynchronous server-side applications and interact with databases efficiently.
  • Compose Multiplatform: Build cross-platform UIs for Android, Desktop, iOS, and Web.
  • Use Case: Develop a new microservice using Ktor 3.0 with Kotlin 2.0, integrating with a PostgreSQL database via Exposed, and ensuring testability with MockK.

Quick Start

Use the moai-lang-kotlin skill to create a basic Ktor server with a single GET endpoint.

Frequently Asked Questions about moai-lang-kotlin

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

FAQPage Schema
How do I build a Ktor server with Kotlin 2.0 and connect it to a database?

Build a Ktor server with Kotlin 2.0 by defining asynchronous routes and using the Exposed library to interact with your PostgreSQL database efficiently via coroutines.

Does Compose Multiplatform work with Kotlin 2.0 for cross-platform UI development?

Compose Multiplatform works with Kotlin 2.0 to build cross-platform UIs targeting Android, Desktop, iOS, and Web using modern language constructs and the K2 compiler.

What's the best way to test Kotlin coroutines and Flow in a Ktor application?

Test Kotlin coroutines and Flow in a Ktor application by utilizing MockK for mocking dependencies and Turbine for collecting and asserting asynchronous Flow emissions.

How do I configure Gradle Kotlin DSL for a Kotlin 2.0 microservice?

Configure Gradle Kotlin DSL for a Kotlin 2.0 microservice by applying the appropriate Ktor and Exposed plugins, defining dependencies, and setting up build configurations idiomatically.

When do I need to use Kotlin Flow in asynchronous server-side development?

Use Kotlin Flow in asynchronous server-side development when you need to handle streams of data emitted over time, enabling non-blocking database interactions and responsive Ktor endpoints.