rxjava-migration

Migrate RxJava code to Kotlin Coroutines/Flow incrementally across layers.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/kotlinknight/NutriSoloAndroid --skill rxjava-migration-kotlinknight
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rxjava-migration
Source: https://github.com/kotlinknight/NutriSoloAndroid/tree/main/.agents/skills/rxjava-migration
Command: npx skills add https://github.com/kotlinknight/NutriSoloAndroid --skill rxjava-migration-kotlinknight

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Migrate RxJava code to Kotlin coroutines and Flow incrementally, guiding developers to convert simple call sites first while deferring complex patterns until a migration plan is agreed.

Core Features & Use Cases

  • Incremental migration strategy from RxJava to coroutines/Flow, including type and operator mappings, and guidance on when to migrate.
  • Interop patterns and keep-at-layer bridging to minimize risk during transition.
  • Risk-managed migration with prompts for complex scenarios, validation steps, and rollback considerations.

Quick Start

Migrate a simple RxJava call site to Flow by converting it to a suspend function or asFlow and validating behavior in a leaf component.

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 code to Kotlin coroutines and Flow?

Migrate RxJava code to Kotlin coroutines and Flow incrementally by starting with simple leaf node components. Convert basic call sites to suspend functions or asFlow, validate their behavior, and expand migration layer by layer to reduce transition risk.

What is the incremental migration strategy for moving from RxJava to Flow?

An incremental migration strategy isolates risk by converting simple RxJava call sites first. It uses type and operator mappings, defers complex patterns, and applies interop bridging at architectural boundaries until a full migration plan is agreed upon.

How do RxJava schedulers translate to Kotlin coroutine dispatchers?

RxJava schedulers translate directly to Kotlin coroutine dispatchers during the migration process. The Skill provides specific mappings to ensure thread management and execution contexts are preserved when converting reactive streams to structured concurrency.

Can I keep my existing RxJava architecture while partially migrating to coroutines?

You can keep existing RxJava architecture during a partial migration using interop patterns. Keep-at-layer bridging connects un-migrated RxJava components with new coroutine flows, minimizing risk and allowing gradual transition across architectural layers.

What are common pitfalls when converting RxJava to Kotlin Flow?

Common pitfalls when converting RxJava to Kotlin Flow include mishandling complex reactive patterns and improper scheduler to dispatcher translation. The Skill prompts validation steps and rollback considerations to manage these risks during migration.

When should I defer migrating complex RxJava patterns to coroutines?

You should defer migrating complex RxJava patterns to coroutines until a comprehensive migration plan is agreed upon. Start with simple leaf node conversions to establish validation steps and rollback considerations before tackling high-risk components.