Skip to content

Authoritative Kotlin Coroutines rules for Android covering structured concurrency, lifecycle-safe collection, and reactive streams.

CCM score
61 of 100
skills.sh installs
607
GitHub stars
1K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers asynchronous logic, Flow and StateFlow streams, lifecycle scopes, error handling, cancellability, and testing with runTest
  • Enforces constructor-injected dispatchers, main-safe suspend functions, and repeatOnLifecycle(Lifecycle.State.STARTED) for flow collection
  • Prohibits GlobalScope, publicly exposed mutable state flows, and generic catches that swallow CancellationException
  • Designed for Android developers writing ViewModels, repositories, and callback-to-Flow conversions under 2025 best practices

Install

$ npx -y skills add new-silvermoon/awesome-android-agent-skills --skill android-coroutines -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Android Coroutines Expert Skill

This skill provides authoritative rules and patterns for writing production-quality Kotlin Coroutines code on Android. It enforces structured concurrency, lifecycle safety, and modern best practices (2025 standards).

Responsibilities

  • Asynchronous Logic: Implementing suspend functions, Dispatcher management, and parallel execution.
  • Reactive Streams: Implementing Flow, StateFlow, SharedFlow, and callbackFlow.
  • Lifecycle Integration: Managing scopes (viewModelScope, lifecycleScope) and safe collection (repeatOnLifecycle).
  • Error Handling: Implementing CoroutineExceptionHandler, SupervisorJob, and proper try-catch hierarchies.
  • Cancellability: Ensuring long-running operations are cooperative using ensureActive().
  • Testing: Setting up TestDispatcher and runTest.

Applicability

Activate this skill when the user asks to:

  • "Fetch data from an API/Database."
  • "Perform background processing."
  • "Fix a memory leak" related to threads/tasks.
  • "Convert a listener/callback to Coroutines."
  • "Implement a ViewModel."
  • "Handle UI state updates."

Details

Repository
github.com/new-silvermoon/awesome-android-agent-skills
Categories
Mobile Apps, Code Review & Quality, Java & JVM
First seen
Jun 3, 2026

Questions

What does the android-coroutines skill do?

It gives an agent expert rules for production-quality Kotlin Coroutines on Android, covering structured concurrency, lifecycle integration and reactive streams. It enforces dispatcher injection, main-safe suspend functions, lifecycle-aware Flow collection and safe exception handling.

How do I install the android-coroutines skill?

Run npx -y skills add new-silvermoon/awesome-android-agent-skills --skill android-coroutines -y in your project. After that, the agent loads these Coroutines rules when you work on tasks such as fetching data, background processing or implementing a ViewModel.

Which other skills sit in the Mobile Apps category?

Android-coroutines is listed in the Mobile Apps category alongside vercel-react-native-skills, animate-expo, write-swift, firebase-crashlytics and xcode-project-setup. Its own focus is Kotlin Coroutines patterns for Android, including Flow, StateFlow, SharedFlow and callbackFlow.

More from new-silvermoon/awesome-android-agent-skills

All 17

Similar to Android Coroutines

More Mobile Apps