rxjava-migration

Map RxJava types and operators to Kotlin Coroutines and Flows.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires org.jetbrains.kotlinx:kotlinx-coroutines-rx3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you incrementally migrate your Android/KMP codebase from RxJava to Kotlin Coroutines and Flows, reducing complexity and improving maintainability.

Core Features & Use Cases

  • Complexity Assessment: Automatically classifies RxJava chains as simple or complex to determine the migration approach.
  • Type and Operator Mapping: Provides explicit mappings for RxJava types and operators to their Kotlin Coroutine/Flow equivalents.
  • Interop Patterns: Offers clear guidance on using kotlinx-coroutines-rx3 for seamless bridging during incremental migration.
  • Use Case: You have a legacy Android app heavily reliant on RxJava for asynchronous operations. You want to gradually adopt Kotlin Coroutines for new features and eventually migrate existing ones. This Skill guides you through mapping Observables to Flows and Singles to suspend funs.

Quick Start

Use the rxjava-migration skill to help migrate the following RxJava code snippet to Kotlin Coroutines.

Frequently Asked Questions about rxjava-migration

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

FAQPage Schema
How do I migrate RxJava to Kotlin Coroutines in an Android project?

RxJava types like Single map to suspend functions and Observable maps to Flow during migration. The process assesses RxJava chain complexity to determine the precise refactoring approach for your Android or KMP codebase.

What is the best way to handle backpressure when converting RxJava to Kotlin Flows?

Handling backpressure when converting RxJava to Kotlin Flows requires specific strategies for complex scenarios. The migration process addresses common pitfalls like backpressure handling to ensure your Flow chains properly manage emitted data streams.

Can I use kotlinx-coroutines-rx3 for incremental migration from RxJava?

Yes, kotlinx-coroutines-rx3 provides interop patterns for seamless bridging during incremental migration. You can gradually adopt Kotlin Coroutines for new features while maintaining existing RxJava code until full migration is complete.

How do RxJava operators map to their Kotlin Flow equivalents?

RxJava operators map to their Kotlin Flow equivalents through explicit type and operator mappings. This allows direct translation of complex RxJava chains into corresponding coroutine and flow structures during the refactoring process.

What are the limitations of migrating complex RxJava chains with custom retry policies to Coroutines?

Complex RxJava chains with custom retry policies require specialized strategies during migration to Coroutines. The process addresses these edge cases to prevent losing critical retry logic when moving away from RxJava structures.

Does this RxJava to Coroutines migration approach work for KMP projects?

Yes, the RxJava to Coroutines migration approach works for KMP projects. It facilitates migration within both Android and KMP environments, mapping RxJava types to coroutine equivalents while maintaining cross-platform compatibility.