Agent skill

Rxjava To Coroutines Migration

by Moustachauve in Moustachauve/WLED-Android

Guide and execute the migration of asynchronous code from RxJava to Kotlin Coroutines and Flow.

Apache-2.0Auto-check passedDevelopment

Install Rxjava To Coroutines Migration

skills CLI
$ npx skills add Moustachauve/WLED-Android --skill rxjava-to-coroutines-migration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Moustachauve/WLED-Android rxjava-to-coroutines-migration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Moustachauve/WLED-Android.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/rxjava-to-coroutines-migration .claude/skills/rxjava-to-coroutines-migration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rxjava-to-coroutines-migration
GitHub stars
169
Used in
1 other repo
Token cost
~1.2k tokens
SKILL.md length
440 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
Apache-2.0

At a glance

Guide and execute the migration of asynchronous code from RxJava to Kotlin Coroutines and Flow.

  • Works in 5 steps: Base Types → Subjects to Hot Flows → Schedulers to Dispatchers → …
  • A user asks to convert RxJava (Observables
  • SKILL.md covers Migration Mapping Guide, Execution Steps and Best Practices
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Rxjava To Coroutines Migration is an agent skill from Moustachauve/WLED-Android. Guide and execute the migration of asynchronous code from RxJava to Kotlin Coroutines and Flow. Use this skill when a user asks to convert RxJava (Observables, Singles, Completables, Subjects) to Coroutines (suspend functions, Flows, StateFlows).

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Async programming. It works with Kotlin. The repository describes itself as: Native Android application for WLED. The licence is Apache-2.0.

When your agent uses it

  • A user asks to convert RxJava (Observables
  • Subjects) to Coroutines (suspend functions

Example prompts

  • “/rxjava-to-coroutines-migration”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Base Types
  2. Subjects to Hot Flows
  3. Schedulers to Dispatchers
  4. Operators
  5. Execution and Lifecycle

What it can do on your machine

Read from SKILL.md and the folder at commit 7e164a8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are kotlin).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rxjava To Coroutines Migration loads about 1.2k tokens when it runs. Until then it costs about 69 tokens; SKILL.md has 440 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~69
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Moustachauve/WLED-Android at commit 7e164a8, republished under its Apache-2.0 licence (© Moustachauve). 440 words, ~1,219 tokens.

Download SKILL.mdSave it as .claude/skills/rxjava-to-coroutines-migration/SKILL.md (or your agent's skills folder).
name
rxjava-to-coroutines-migration
description
Guide and execute the migration of asynchronous code from RxJava to Kotlin Coroutines and Flow. Use this skill when a user asks to convert RxJava (Observables, Singles, Completables, Subjects) to Coroutines (suspend functions, Flows, StateFlows).

RxJava to Kotlin Coroutines Migration Skill

A specialized skill designed to safely and idiomatically refactor Android or Kotlin codebases from RxJava to Kotlin Coroutines and Flow.

Migration Mapping Guide

When migrating RxJava components to Kotlin Coroutines, use the following standard mappings:

1. Base Types
  • Single<T> -> suspend fun ...(): T
    • A single asynchronous value.
  • Maybe<T> -> suspend fun ...(): T?
    • A single asynchronous value that might not exist.
  • Completable -> suspend fun ...()
    • An asynchronous operation that completes without a value.
  • Observable<T> -> Flow<T>
    • A cold stream of values.
  • Flowable<T> -> Flow<T>
    • Coroutines Flow natively handles backpressure.
2. Subjects to Hot Flows
  • PublishSubject<T> -> MutableSharedFlow<T>
    • Broadcasts events to multiple subscribers. Use MutableSharedFlow(extraBufferCapacity = ...) if buffering is needed.
  • BehaviorSubject<T> -> MutableStateFlow<T>
    • Holds state and emits the current/latest value to new subscribers. Requires an initial value.
  • ReplaySubject<T> -> MutableSharedFlow<T>(replay = N)
    • Replays the last N emitted values to new subscribers.
3. Schedulers to Dispatchers
  • Schedulers.io() -> Dispatchers.IO
  • Schedulers.computation() -> Dispatchers.Default
  • AndroidSchedulers.mainThread() -> Dispatchers.Main
  • Context Switching: subscribeOn and observeOn are typically replaced by withContext(Dispatcher) or flowOn(Dispatcher) for Flows.
4. Operators
  • map -> map
  • filter -> filter
  • flatMap -> flatMapMerge (concurrent) or flatMapConcat (sequential)
  • switchMap -> flatMapLatest
  • doOnNext / doOnSuccess -> onEach
  • onErrorReturn / onErrorResumeNext -> catch { emit(...) }
  • startWith -> onStart { emit(...) }
  • combineLatest -> combine
  • zip -> zip
  • delay -> delay (suspend function) or onEach { delay(...) }
5. Execution and Lifecycle
  • subscribe() -> collect {} (for Flows) or direct invocation (for suspend functions) inside a CoroutineScope.
  • Disposable.dispose() -> Job.cancel()
  • CompositeDisposable.clear() -> Cancel the parent CoroutineScope or Job.
Show full SKILL.md (220 more words)Show less

Execution Steps

  1. Analyze the RxJava Chain: Identify the source type (Single, Observable, etc.), operators used, and where the subscription happens.
  2. Convert the Source: Change the return type in the repository or data source layer first. Convert to suspend functions for one-shot operations, and Flow for streams.
  3. Rewrite Operators: Translate the RxJava operators to their Flow or Coroutine equivalents. Note that many RxJava operators can simply be replaced by standard Kotlin collection/sequence operations inside a map or onEach block.
  4. Update the Subscription: Replace .subscribe(...) with launch { ... } and .collect { ... } in the ViewModel or Presenter. Ensure the launch is tied to the correct lifecycle scope (e.g., viewModelScope).
  5. Handle Errors: Replace onError blocks with try/catch around suspend functions, or .catch { } operators on Flows.
  6. Handle Threading: Remove .subscribeOn() and .observeOn(). Use withContext where necessary, or .flowOn() to change the context of the upstream flow.
Example Transformation

RxJava:

kotlin
fun getUser(id: String): Single<User> { ... }

disposable.add(
    getUser("123")
        .subscribeOn(Schedulers.io())
        .observeOn(AndroidSchedulers.mainThread())
        .subscribe({ user ->
            view.showUser(user)
        }, { error ->
            view.showError(error)
        })
)

Coroutines/Flow:

kotlin
suspend fun getUser(id: String): User { ... } // Internally uses withContext(Dispatchers.IO) if needed

viewModelScope.launch {
    try {
        val user = getUser("123")
        view.showUser(user)
    } catch (e: Exception) {
        view.showError(e)
    }
}

Best Practices

  • Favor Suspend Functions: Default to suspend functions instead of Flow unless you actually have a stream of multiple values over time. Single and Completable almost always become suspend functions.
  • State Handling: Use StateFlow in ViewModels to expose state to the UI instead of BehaviorSubject or LiveData.
  • Lifecycle Awareness: Use repeatOnLifecycle or flowWithLifecycle in the UI layer when collecting Flows to avoid background work when the view is not visible.

© Moustachauve, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/rxjava-to-coroutines-migration of Moustachauve/WLED-Android.

Open the folder on GitHubat commit 7e164a8

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in Moustachauve/WLED-Android, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Rxjava To Coroutines Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rxjava To Coroutines Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rxjava To Coroutines Migration this skillMoustachauve/WLED-Android1691 repos~1.2kAutomated safety check: PassApache-2.0
Ha Android Concurrencyhome-assistant/android4k—~1kAutomated safety check: PassApache-2.0
Kotlin SpecialistJeffallan/claude-skills12k—~1.5kAutomated safety check: PassMIT
Kotlin Coroutines Expertdavila7/claude-code-templates32k4 repos~763Automated safety check: PassMIT
Doc SyncJetBrains/ideavim10k2 repos~2.6kAutomated safety check: PassMIT
ChangelogJetBrains/ideavim10k1 repos~2.7kAutomated safety check: PassMIT

Similar skills

  • Ha Android Concurrency

    home-assistant/android

    Home Assistant Android coroutine and threading guidance. An agent skill from home-assistant/android.

    4k GitHub stars~1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Kotlin Specialist

    Jeffallan/claude-skills

    Applies idiomatic Kotlin 1.9+ patterns for coroutines and Flow, multiplatform code, Jetpack Compose on Android and Ktor servers, checked with detekt and ktlint.

    12k GitHub stars~1.5k tokensUpdated 5 days ago
    DevelopmentAuto-check passed
  • Kotlin Coroutines Expert

    davila7/claude-code-templates

    Expert patterns for Kotlin Coroutines and Flow, covering structured concurrency, error handling, and testing.

    32k GitHub starsUsed in 4 repos~763 tokens
    DevelopmentAuto-check passed
  • Doc Sync

    JetBrains/ideavim

    Official

    Keeps IdeaVim documentation in sync with code changes. An agent skill from JetBrains/ideavim.

    10k GitHub starsUsed in 2 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Changelog

    JetBrains/ideavim

    Official

    Maintains the IdeaVim changelog (CHANGES.md). An agent skill from JetBrains/ideavim.

    10k GitHub starsUsed in 1 repo~2.7k tokens
    DevelopmentAuto-check passed
  • Exposed Bug Fix Workflow

    JetBrains/Exposed

    Official

    Takes a GitHub or YouTrack issue for the Exposed project through reproduction, a failing test, a fix, validation and a pull request.

    9.3k GitHub stars~3.8k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from Moustachauve/WLED-Android

All 17 skills in this repo
  • Compose Performance Audit

    Moustachauve/WLED-Android

    Audit and improve Jetpack Compose runtime performance from code review and architecture.

    169 GitHub starsUsed in 3 repos~1.7k tokens
    Auto-check passed
  • Compose UI

    Moustachauve/WLED-Android

    Best practices for building UI with Jetpack Compose, focusing on state hoisting, detailed performance optimizations, and theming.

    169 GitHub starsUsed in 3 repos~676 tokens
    Auto-check passed
  • Gradle Build Performance

    Moustachauve/WLED-Android

    Debug and optimize Android/Gradle build performance. An agent skill from Moustachauve/WLED-Android.

    169 GitHub starsUsed in 3 repos~2k tokens
    Auto-check passed
  • Kotlin Concurrency Expert

    Moustachauve/WLED-Android

    Kotlin Coroutines review and remediation for Android. An agent skill from Moustachauve/WLED-Android.

    169 GitHub starsUsed in 3 repos~1.4k tokens
    Auto-check passed
  • Coil Compose

    Moustachauve/WLED-Android

    Expert guidance on using Coil for image loading in Jetpack Compose.

    169 GitHub starsUsed in 2 repos~789 tokens
    Auto-check passed
  • XML To Compose Migration

    Moustachauve/WLED-Android

    Convert Android XML layouts to Jetpack Compose. An agent skill from Moustachauve/WLED-Android.

    169 GitHub starsUsed in 2 repos~2.6k tokens
    Auto-check passed

Works with

Categories

Questions about Rxjava To Coroutines Migration

What does Rxjava To Coroutines Migration do?

Guide and execute the migration of asynchronous code from RxJava to Kotlin Coroutines and Flow. Rxjava To Coroutines Migration is an agent skill from Moustachauve/WLED-Android. Guide and execute the migration of asynchronous code from RxJava to Kotlin Coroutines and Flow.

When should I use Rxjava To Coroutines Migration?

Rxjava To Coroutines Migration fits situations like: A user asks to convert RxJava (Observables; subjects) to Coroutines (suspend functions.

How do I install Rxjava To Coroutines Migration in Claude Code?

Run `npx skills add Moustachauve/WLED-Android --skill rxjava-to-coroutines-migration -a claude-code`. Or copy the skill folder (.github/skills/rxjava-to-coroutines-migration in Moustachauve/WLED-Android) into .claude/skills/rxjava-to-coroutines-migration in your project. Claude Code loads it when a task matches its description.

How do I install Rxjava To Coroutines Migration in Codex?

Run `npx skills add Moustachauve/WLED-Android --skill rxjava-to-coroutines-migration -a codex`. Or copy the skill folder (.github/skills/rxjava-to-coroutines-migration in Moustachauve/WLED-Android) into .agents/skills/rxjava-to-coroutines-migration in your project. Codex loads it when a task matches its description.

Can I use Rxjava To Coroutines Migration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Moustachauve/WLED-Android --skill rxjava-to-coroutines-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rxjava-to-coroutines-migration, .gemini/skills/rxjava-to-coroutines-migration, .github/skills/rxjava-to-coroutines-migration and .opencode/skills/rxjava-to-coroutines-migration in your project.

What does Rxjava To Coroutines Migration need to run?

SKILL.md names no scripts, command-line tools or credentials: Rxjava To Coroutines Migration is instructions for the agent only.

Does Rxjava To Coroutines Migration access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Rxjava To Coroutines Migration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rxjava To Coroutines Migration use?

Rxjava To Coroutines Migration is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Rxjava To Coroutines Migration use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rxjava To Coroutines Migration?

Skills that share tags, products or a category with Rxjava To Coroutines Migration: Ha Android Concurrency (home-assistant/android, 4k stars), Kotlin Specialist (Jeffallan/claude-skills, 12k stars), Kotlin Coroutines Expert (davila7/claude-code-templates, 32k stars) and Doc Sync (JetBrains/ideavim, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rxjava To Coroutines Migration?

Moustachauve (a GitHub user) maintains it in Moustachauve/WLED-Android, which has 169 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 7, 2026.

Source: Moustachauve/WLED-Android on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.