Migrate Android RxJava code to Kotlin coroutines and Flow with safe lifecycle-aware replacements.
The canonical home for this skill is android-rxjava-to-coroutines-migration in krutikJain/android-agent-skills
Single, Observable, schedulers, or disposables and the goal is to move to suspend, Flow, StateFlow, or SharedFlow.references/patterns.md for the type-mapping matrix and operator red-flag checklist.references/scenarios.md for staged migration and inventory-first workflows.android-modernization-upgradeandroid-coroutines-flowrepeatOnLifecycle.suspend functions for one-shot work and Flow for streams; do not force everything into Flow.CompositeDisposable and manual subscription chains.flatMap, switchMap, replay, and threading assumptions.StateFlow, SharedFlow, shareIn, or stateIn instead of assuming cold Flow is equivalent.Flow even when a suspend function is the better match.observeOn and subscribeOn assumptions undocumented after moving to dispatchers.Single, Maybe, Completable, Observable, Flowable, and Subjects.viewModelScope, and lifecycle collection.bash skills/android-rxjava-to-coroutines-migration/scripts/run_examples.shpython3 skills/android-rxjava-to-coroutines-migration/scripts/scan_rxjava_usage.py examples/fixtures/rxjava-legacy-sample --jsonpython3 skills/android-rxjava-to-coroutines-migration/scripts/generate_migration_checklist.py examples/fixtures/rxjava-legacy-samplec5bf673
Canonical home
since Apr 14, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.