Kotlin Concurrency Expert
Structured review and remediation of Kotlin Coroutines issues in Android code, covering scopes, lifecycle, and cancellation.
- CCM score
- 65 of 100
- skills.sh installs
- 709
- GitHub stars
- 1K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers triage and minimal-change fixes for ANR, leaks, lifecycle collection, state exposure, and cancellation bugs
- Includes before-and-after patterns for dispatcher injection,
repeatOnLifecycle, read-onlyStateFlow, andCancellationExceptionrethrowing - Enforces a ban on
GlobalScopeand a scope-selection table mappingviewModelScope,lifecycleScope, and injected application scopes to lifetimes - Designed for Android teams auditing coroutine usage in ViewModels, repositories, and callback-based APIs converted with
callbackFlow
Install
$ npx -y skills add new-silvermoon/awesome-android-agent-skills --skill kotlin-concurrency-expert -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Kotlin Concurrency Expert
Overview
Review and fix Kotlin Coroutines issues in Android codebases by applying structured concurrency, lifecycle safety, proper scoping, and modern best practices with minimal behavior changes.
Workflow
1. Triage the Issue
- Capture the exact error, crash, or symptom (ANR, memory leak, race condition, incorrect state).
- Check project coroutines setup:
kotlinx-coroutines-androidversion,lifecycle-runtime-ktxversion. - Identify the current scope context (
viewModelScope,lifecycleScope, custom scope, or none). - Confirm whether the code is UI-bound (
Dispatchers.Main) or intended to run off the main thread (Dispatchers.IO,Dispatchers.Default). - Verify Dispatcher injection patterns for testability.
2. Apply the Smallest Safe Fix
Prefer edits that preserve existing behavior while satisfying structured concurrency and lifecycle safety.
Common fixes:
Details
- Repository
- github.com/new-silvermoon/awesome-android-agent-skills
- Categories
- Mobile Apps, Code Review & Quality, Java & JVM
- First seen
- Jun 3, 2026
More from new-silvermoon/awesome-android-agent-skills
All 17- Compose Performance Audit624
- Android Accessibility607
- Android Emulator Skill606
- Android Viewmodel602
- Android Coroutines600
- Android Data Layer553
- Android Retrofit517
- Coil Compose488
- Xml To Compose Migration468
- Compose Navigation436
- Rxjava To Coroutines Migration364
- Android Testing898
- Gradle Build Performance835
- Compose Ui796
- Android Gradle Logic763
- Android Architecture732
Similar to Kotlin Concurrency Expert
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-coroutines-flowsaffaan-m/ecc12.9K installsKotlin coroutine and Flow patterns for Android and KMP covering structured concurrency, operators, and testing.
kotlin-specialistjeffallan/claude-skills5.7K installsIdiomatic Kotlin patterns for coroutines, Flow, Compose, Ktor, and multiplatform projects, with null-safety rules.
rxjava-to-coroutines-migrationnew-silvermoon/awesome-android-agent-skills364 installsGuide for converting RxJava Observables, Singles, Subjects, and operators into Kotlin Coroutines and Flow.
kotlin-patternsaffaan-m/ecc12.7K installsIdiomatic Kotlin patterns for null safety, immutability, sealed hierarchies, coroutines, and DSL builders.