What problem does it solve?
This Skill solves the common pain points of writing unmaintainable, leaky asynchronous code in Kotlin Android and Kotlin Multiplatform projects, eliminating issues like memory leaks from unstructured coroutine scopes and unpredictable reactive stream behavior.
Core Features & Use Cases
- Structured Concurrency Patterns: Implement proper coroutine scope hierarchies, parallel task decomposition, and supervisor scopes to avoid memory leaks and unhandled cancellations.
- Flow Reactive Stream Management: Use StateFlow, SharedFlow, and core Flow operators for UI state, one-time events, debounced inputs, and retry logic.
- Testing Support: Write reliable tests for coroutines and Flows using Turbine and TestDispatchers. Use case: For example, use this Skill to build a reactive dashboard ViewModel that loads user data and stats in parallel, handles debounced search input, and survives configuration changes without losing state or leaking coroutines.
Quick Start
Use the kotlin-coroutines-flows skill to implement a parallel data loading ViewModel with StateFlow UI state and retry logic for your Android application.