Skip to content

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
View on GitHub

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-only StateFlow, and CancellationException rethrowing
  • Enforces a ban on GlobalScope and a scope-selection table mapping viewModelScope, 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 -y

Installs 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-android version, lifecycle-runtime-ktx version.
  • 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

Similar to Kotlin Concurrency Expert

More Mobile Apps