What problem does it solve?
This Skill eliminates the frustration of writing inconsistent, error-prone Kotlin code that suffers from null pointer exceptions, unstructured coroutine leaks, and non-idiomatic patterns that reduce maintainability for solo developers and engineering teams building production Kotlin applications.
Core Features & Use Cases
- Idiomatic Core Conventions: Enforces best practices for null safety, immutability via
val and data class copy(), and value classes for type-safe wrappers with zero runtime overhead.
- Advanced Type & Concurrency Patterns: Provides proven templates for sealed class/interface hierarchies for exhaustive type handling, structured coroutine concurrency with
async/await, and cold reactive Flow streams.
- DSL & Build Tooling Guidance: Includes type-safe DSL builder patterns using
@DslMarker and idiomatic Gradle Kotlin DSL configuration examples for maintainable build scripts.
- Use Case: A backend developer building a Ktor service can use this Skill to implement structured coroutine scopes for concurrent user and post data fetching, eliminate force-unwrapping of nullable types, and set up idiomatic Gradle test configurations with Detekt and Kover.
Quick Start
Use the kotlin-patterns skill to review your existing Kotlin coroutine code for unstructured concurrency issues and suggest idiomatic fixes using coroutineScope or supervisorScope.