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/Effectwiring — seekmp-mvi - The question is about how a repository exposes data as a
Flow— seekmp-repository-pattern - The question is about injecting a
CoroutineScopevia Koin — seekmp-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.