build-kotlin

Apply production-grade Kotlin patterns for coroutines, Flow, Ktor, and Spring Boot.

7|3|Updated Dec 1, 2025
One-click install
npx skills add https://github.com/yzavyas/claude-1337 --skill build-kotlin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-kotlin
Source: https://github.com/yzavyas/claude-1337/tree/main/plugins/kotlin-1337/skills/build-kotlin
Command: npx skills add https://github.com/yzavyas/claude-1337 --skill build-kotlin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill consolidates production-grade Kotlin patterns across backend, Android, and multiplatform projects, reducing boilerplate and accelerating safe, scalable development.

Core Features & Use Cases

  • Structured concurrency guidelines and coroutine patterns for reliable lifecycles
  • Flow, StateFlow, and SharedFlow usage for UI state and event streams
  • Multiplatform setup guidance (expect/actual, shared code patterns) and backend integration (Ktor, Spring Boot)
  • Null-safety best practices, Java interop considerations, and robust testing with Kotest/MockK

Quick Start

Use this Skill to scaffold a Kotlin module configured for coroutines, Flow, and multiplatform support, then apply idiomatic patterns to backend, Android, and shared code.

Frequently Asked Questions about build-kotlin

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

FAQPage Schema
What are the best practices for structured concurrency and coroutine lifecycles in Kotlin?

Structured concurrency in Kotlin ensures coroutine lifecycles are tied to specific scopes, preventing leaks. This Skill provides production patterns to enforce reliable coroutine cancellation and scoping across backend and Android projects.

How do I use Flow, StateFlow, and SharedFlow for UI state and event streams?

Use Kotlin Flow for event streams and StateFlow for UI state retention. This Skill outlines idiomatic patterns for collecting and emitting data streams, ensuring reactive UI updates and efficient multiplatform event handling.

Can I use Kotlin multiplatform expect/actual declarations with Ktor and Spring Boot backends?

Yes, Kotlin multiplatform expect/actual declarations work with Ktor and Spring Boot backends. This Skill provides setup guidance for sharing code logic across platforms while integrating with backend frameworks seamlessly.

How do I test Kotlin coroutines and multiplatform code with Kotest and MockK?

Test Kotlin coroutines and multiplatform code using Kotest for behavioral specs and MockK for mocking dependencies. This Skill applies practical testing strategies to verify Flow emissions, structured concurrency, and shared module logic.

What are the Java interop considerations for null safety in Kotlin?

Java interop in Kotlin requires careful null safety handling due to platform types. This Skill enforces null-safety best practices and outlines considerations for calling Java code from Kotlin without introducing NullPointerException risks.