kmp-coroutines-flow-patterns

Installation
SKILL.md

When to Use This Skill

Use this skill when you need to:

  • Choose the right coroutine scope or Flow type for a given piece of code
  • Run work in parallel and combine the results
  • Handle retries, backoff, or exceptions inside a Flow correctly
  • Write cancellation-safe cleanup for a coroutine or a long-running collector
  • Test coroutines or Flow-emitting code

Do NOT use this skill when:

  • The question is about a ViewModel's State/Intent/Effect wiring — see kmp-mvi
  • The question is about how a repository exposes data as a Flow — see kmp-repository-pattern
  • The question is about injecting a CoroutineScope via Koin — see kmp-dependency-injection

Trigger keywords: coroutine, kotlinx.coroutines, coroutine scope, structured concurrency, GlobalScope, Flow, StateFlow, SharedFlow, cold flow, hot flow, flatMapLatest, flatMapMerge, flatMapConcat, retry backoff, catch operator, exception transparency, cancellation, runTest, Turbine, async awaitAll, parallel decomposition, Mutex, coroutine testing.

Installs
10
GitHub Stars
2
First Seen
Aug 19, 2026
kmp-coroutines-flow-patterns — ronjunevaldoz/kmp-agent-skills