Kotlin Coroutines Flows
Kotlin coroutine and Flow patterns for Android and KMP covering structured concurrency, operators, and testing.
- CCM score
- 75 of 100
- skills.sh installs
- 12.9K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers structured concurrency, Flow operators, StateFlow and SharedFlow usage, cancellation, dispatchers, and testing with Turbine
- Includes examples for parallel decomposition with
async, debounced search, retry with exponential backoff, and one-shot UI effects - Enforces structured concurrency by flagging
GlobalScope, mutable collections inMutableStateFlow, and catchingCancellationException - Designed for Android and Kotlin Multiplatform projects where coroutines or Flow code is written or cancellation bugs are debugged
Install
$ npx -y skills add affaan-m/ecc --skill kotlin-coroutines-flows -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Kotlin Coroutines & Flows
Patterns for structured concurrency, Flow-based reactive streams, and coroutine testing in Android and Kotlin Multiplatform projects.
When to Activate
- Writing async code with Kotlin coroutines
- Using Flow, StateFlow, or SharedFlow for reactive data
- Handling concurrent operations (parallel loading, debounce, retry)
- Testing coroutines and Flows
- Managing coroutine scopes and cancellation
Structured Concurrency
Scope Hierarchy
Application
└── viewModelScope (ViewModel)
└── coroutineScope { } (structured child)
├── async { } (concurrent task)
└── async { } (concurrent task)
Always use structured concurrency — never GlobalScope:
// BAD
GlobalScope.launch { fetchData() }
// GOOD — scoped to ViewModel lifecycle
viewModelScope.launch { fetchData() }
// GOOD — scoped to composable lifecycle
LaunchedEffect(key) { fetchData() }
Parallel Decomposition
Use coroutineScope + async for parallel work:
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Mobile Apps, Go, Java & JVM
- First seen
- Jul 14, 2026
Questions
What does the kotlin-coroutines-flows skill help with?
It gives Kotlin Coroutines and Flow patterns for Android and Kotlin Multiplatform projects, covering structured concurrency, Flow operators, StateFlow, error handling, and testing. It applies when you write coroutine or Flow code or debug cancellation and concurrency issues.
How do I install the kotlin-coroutines-flows skill?
Run npx -y skills add affaan-m/ecc --skill kotlin-coroutines-flows -y in your project. Once installed, the agent can write and review coroutine and Flow code using these patterns.
Where does kotlin-coroutines-flows rank in the Mobile Apps category?
It ranks in the top 100 on the Mobile Apps category page on Claude Marketplaces. It stands out for focusing on coroutines and Flow for Android and Kotlin Multiplatform, including StateFlow for UI state and coroutine testing with Turbine.
More from affaan-m/ecc
All 257- Configure Ecc12.9K
- Laravel Tdd12.8K
- Agentic Engineering12.8K
- Clickhouse Io12.7K
- Cost Aware Llm Pipeline12.7K
- Kotlin Patterns12.7K
- Iterative Retrieval12.6K
- Django Verification12.6K
- Nextjs Turbopack12.6K
- Content Engine12.5K
- Springboot Verification12.5K
- Context Budget12.5K
- Nutrient Document Processing12.5K
- Autonomous Loops12.4K
- Architecture Decision Records12.4K
- Investor Materials12.4K
- Swiftui Patterns12.4K
- Pytorch Patterns12.3K
- Bun Runtime12.3K
- Ai First Engineering12.3K
- Flutter Dart Code Review12.2K
- Perl Security12.2K
- Regex Vs Llm Structured Text12.2K
- Compose Multiplatform Patterns12.2K
Similar to Kotlin Coroutines Flows
More Mobile Appsandroid-coroutinesnew-silvermoon/awesome-android-agent-skills600 installsAuthoritative Kotlin Coroutines rules for Android covering structured concurrency, lifecycle-safe collection, and reactive streams.
kotlin-specialistjeffallan/claude-skills5.7K installsIdiomatic Kotlin patterns for coroutines, Flow, Compose, Ktor, and multiplatform projects, with null-safety rules.
kotlin-concurrency-expertnew-silvermoon/awesome-android-agent-skills709 installsStructured review and remediation of Kotlin Coroutines issues in Android code, covering scopes, lifecycle, and cancellation.
kotlin-patternsaffaan-m/ecc12.7K installsIdiomatic Kotlin patterns for null safety, immutability, sealed hierarchies, coroutines, and DSL builders.
android-kotlinalinaqi/maggy3.4K installsKotlin Android development guide covering Coroutines, Jetpack Compose, Hilt, Room, and MockK testing patterns.