Android rxjava to coroutines migration

From krutikJain/android-agent-skills · View interactive version

Android rxjava to coroutines migration is an AI agent skill from the GitHub repository krutikJain/android-agent-skills. Migrate Android RxJava code to Kotlin coroutines and Flow with safe lifecycle-aware replacements.

How to use this skill

Skill file

Android RxJava To Coroutines Migration

When To Use

Workflow

  1. Scan the codebase for RxJava imports, base types, subjects, and scheduler usage before changing any API surface.
  2. Classify each usage as one-shot work, stream work, hot state, hot events, callback bridging, or backpressure-sensitive work.
  3. Replace repository and domain APIs first, then move UI-layer subscriptions to lifecycle-aware collection.
  4. Rewrite scheduler and disposable management as dispatcher, scope, structured-concurrency ownership, and lifecycle-aware collection such as repeatOnLifecycle.
  5. Leave a checklist for ambiguous operators or custom bridges instead of pretending every chain can be auto-converted safely.

Guardrails

Anti-Patterns

Review Focus

Examples

Happy path

Edge case

Failure recovery

Done Checklist

Official References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.