Authoritative rules and patterns for production-quality Kotlin Coroutines onto Android. Covers structured concurrency, lifecycle integration, and reactive…
Android Coroutines Expert Skill This skill provides authoritative rules and patterns for writing production-quality Kotlin Coroutines code on Android. It enforces structured concurrency, lifecycle safety, and modern best practices (2025 standards). Responsibilities Asynchronous Logic: Implementing suspend functions, Dispatcher management, and parallel execution. Reactive Streams: Implementing Flow, StateFlow, SharedFlow, and callbackFlow. Lifecycle Integration: Managing scopes (viewModelScope, lifecycleScope) and safe collection (repeatOnLifecycle). Error Handling: Implementing CoroutineExceptionHandler, SupervisorJob, and proper try-catch hierarchies. Cancellability: Ensuring long-running operations are cooperative using ensureActive(). Testing: Setting up TestDispatcher and runTest. Applicability
don't have the plugin yet? install it then click "run inline in claude" again.