一键导入
android-rxjava-to-coroutines-migration
Migrate Android RxJava code to Kotlin coroutines and Flow with safe lifecycle-aware replacements.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Migrate Android RxJava code to Kotlin coroutines and Flow with safe lifecycle-aware replacements.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Automate Android CI, versioning, signing boundaries, release channels, and Play-ready delivery workflows.
Use Coil in Jetpack Compose with AsyncImage, painter variants, sizing, and accessible image loading patterns.
Make Compose interfaces accessible with semantics, announcements, contrast, focus order, and adaptive touch targets.
Profile and improve Compose recomposition, layout, scrolling, startup, and rendering performance in Android apps.
Manage Compose state, remember APIs, side effects, snapshots, and lifecycle-aware collection without leaks or loops.
Bridge Compose and the View system safely during incremental migrations, interoperability screens, and shared theming.
| name | android-rxjava-to-coroutines-migration |
| description | Migrate Android RxJava code to Kotlin coroutines and Flow with safe lifecycle-aware replacements. |
| metadata | {"version":"0.1.0","category":"legacy-rescue","tags":["android","rxjava","coroutines","flow","migration"],"triggers":{"include":["rxjava to coroutines android","observable to flow android","replace composite disposable android","single maybe completable migration android","scheduler to dispatcher android"],"exclude":["room schema only","play store release only","xml constraintlayout only"]},"owners":["@android-agent-skills/maintainers"],"test_targets":["examples/fixtures/rxjava-legacy-sample","benchmarks/triggers.jsonl"]} |
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-sample