What problem does it solve?
This Skill solves the problem of inconsistent, bug-prone Kotlin code by providing standardized idiomatic patterns and proven best practices, helping developers avoid common pitfalls like null pointer exceptions, unsafe concurrency, and unmaintainable code structures.
Core Features & Use Cases
- Idiomatic Kotlin Best Practices: Covers null safety, immutability, data classes, sealed types, and scope functions for clean, maintainable code.
- Concurrency & DSL Guidance: Provides patterns for structured coroutine concurrency, reactive Flow streams, and type-safe DSL builders.
- Build & Error Handling: Includes Gradle Kotlin DSL configuration best practices and idiomatic error handling with Result types and preconditions.
- Use Case: When refactoring a legacy Kotlin codebase, use this Skill to replace unsafe mutable state and GlobalScope coroutine launches with idiomatic immutable data classes and structured concurrency patterns.
Quick Start
Use the kotlin-patterns skill to review your existing Kotlin coroutine implementation for structured concurrency compliance and suggest improvements for null safety and error handling.