android-rxjava-to-coroutines-migration

Converts legacy RxJava Android code to Kotlin coroutines and Flow preserving functionality.

14|2|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/krutikJain/android-agent-skills --skill android-rxjava-to-coroutines-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: android-rxjava-to-coroutines-migration
Source: https://github.com/krutikJain/android-agent-skills/tree/main/.github/skills/android-rxjava-to-coroutines-migration
Command: npx skills add https://github.com/krutikJain/android-agent-skills --skill android-rxjava-to-coroutines-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a guided approach to converting Android code that still uses RxJava to Kotlin coroutines and Flow, ensuring that the functionality is maintained and modernized safely.

Core Features & Use Cases

  • RxJava to Coroutines Migration: Safely migrate existing RxJava code to coroutines for more efficient asynchronous processing.
  • Lifecycle-Aware Collections: Utilize lifecycle-aware collections to manage subscriptions and state.
  • Type Mapping and Operator Review: Offers a clear type mapping matrix and a checklist for operator reviews.
  • Staged Migration: Enables a phased migration process with the option to stage work for later review.

Quick Start

Run the skill with the following command to scan a sample project: python3 scripts/scan_rxjava_usage.py examples/fixtures/rxjava-legacy-sample

Frequently Asked Questions about android-rxjava-to-coroutines-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate Android code from RxJava to Kotlin coroutines and Flow?

This Skill converts legacy Android RxJava code to Kotlin coroutines and Flow while preserving functionality, utilizing a type mapping matrix and a checklist for manual operator reviews to ensure a safe transition.

What is the best way to map RxJava observables and schedulers to coroutines?

Mapping RxJava observables and schedulers to coroutines is handled using a clear type mapping matrix that targets observable and scheduler conversions, ensuring the migrated coroutine-based architecture maintains original behavior.

How do I manage RxJava subscriptions using lifecycle-aware coroutines?

You can replace RxJava subscriptions with lifecycle-aware collections in Kotlin coroutines, utilizing Flow to manage asynchronous state and subscriptions safely within the Android lifecycle.

Can I stage a gradual migration from RxJava to Flow instead of refactoring everything at once?

Yes, you can stage a gradual migration from RxJava to Flow. The Skill enables a phased migration process, allowing you to stage work for later review rather than refactoring the entire codebase simultaneously.

How do I scan an Android project to find legacy RxJava code before migrating?

You can scan an Android project to find legacy RxJava code by running the provided script, such as `python3 scripts/scan_rxjava_usage.py`, to detect usage and prepare for the coroutine migration.