What problem does it solve?
This Skill eliminates the common pain points of writing unmaintainable, leaky async code in Android and Kotlin Multiplatform (KMP) projects, resolving issues like uncancelled coroutines, unhandled Flow errors, and messy concurrent logic that lead to crashes and poor user experience.
Core Features & Use Cases
- Structured Concurrency Patterns: Provides standardized scope hierarchy, parallel task decomposition with coroutineScope and async, and supervisorScope for independent operations to prevent coroutine leaks and ensure proper cancellation.
- Reactive Flow Implementation: Includes ready-to-use patterns for StateFlow UI state management, SharedFlow one-time event handling, common Flow operators (debounce, retry, combine, flatMapLatest), and error handling with catch and retryWhen.
- Cross-Platform & Testing Support: Offers dispatcher guidance for JVM/Android and other KMP targets, plus testable patterns using Turbine and TestDispatcher for validating coroutine and Flow behavior.
Use case example: If you are building a KMP dashboard app that loads user items, daily stats, and profile data in parallel, this Skill provides the exact patterns to implement this reliably without memory leaks or race conditions.
Quick Start
Ask the AI to implement a parallel data loading ViewModel for your Android dashboard using structured coroutines and combined StateFlow for UI state, following the patterns defined in this Skill.