Ha Android Concurrency
home-assistant/android
Home Assistant Android coroutine and threading guidance. An agent skill from home-assistant/android.
Authoritative rules and patterns for production-quality Kotlin Coroutines onto Android.
$ npx skills add Moustachauve/WLED-Android --skill android-coroutines -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Moustachauve/WLED-Android android-coroutines --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Moustachauve/WLED-Android.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/android-coroutines .claude/skills/android-coroutines && rm -rf skills-srcUse ~/.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/
Install the "android-coroutines" agent skill from https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/android-coroutines into .claude/skills/android-coroutines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-coroutines", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/android-coroutinesType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Moustachauve/WLED-Android --skill android-coroutines -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Moustachauve/WLED-Android android-coroutines --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Moustachauve/WLED-Android.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/android-coroutines .agents/skills/android-coroutines && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "android-coroutines" agent skill from https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/android-coroutines into .agents/skills/android-coroutines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-coroutines", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Moustachauve/WLED-Android --skill android-coroutines -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Moustachauve/WLED-Android android-coroutines --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Moustachauve/WLED-Android.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/android-coroutines .cursor/skills/android-coroutines && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "android-coroutines" agent skill from https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/android-coroutines into .cursor/skills/android-coroutines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-coroutines", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Moustachauve/WLED-Android.git --path .github/skills/android-coroutines--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Moustachauve/WLED-Android --skill android-coroutines -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Moustachauve/WLED-Android android-coroutines --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Moustachauve/WLED-Android.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/android-coroutines .gemini/skills/android-coroutines && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "android-coroutines" agent skill from https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/android-coroutines into .gemini/skills/android-coroutines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-coroutines", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Moustachauve/WLED-Android android-coroutinesInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Moustachauve/WLED-Android --skill android-coroutines -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Moustachauve/WLED-Android.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/android-coroutines .github/skills/android-coroutines && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "android-coroutines" agent skill from https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/android-coroutines into .github/skills/android-coroutines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-coroutines", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Moustachauve/WLED-Android --skill android-coroutines -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Moustachauve/WLED-Android android-coroutines --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Moustachauve/WLED-Android.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/android-coroutines .opencode/skills/android-coroutines && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "android-coroutines" agent skill from https://github.com/Moustachauve/WLED-Android/tree/main/.github/skills/android-coroutines into .opencode/skills/android-coroutines/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-coroutines", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
android-coroutinesAuthoritative rules and patterns for production-quality Kotlin Coroutines onto Android.
Android Coroutines is an agent skill from Moustachauve/WLED-Android. Authoritative rules and patterns for production-quality Kotlin Coroutines onto Android. Covers structured concurrency, lifecycle integration, and reactive streams.
Its SKILL.md is about 1.4k 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. It works with Android and Kotlin. The repository describes itself as: Native Android application for WLED. The licence is Apache-2.0.
9 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 7e164a8. It shows what the files ask for, not the result of running them.
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.
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.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Android Coroutines loads about 1.4k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 443 words of instructions outside code blocks.
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.
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.
The full file from Moustachauve/WLED-Android at commit 7e164a8, republished under its Apache-2.0 licence (© Moustachauve). 443 words, ~1,385 tokens.
.claude/skills/android-coroutines/SKILL.md (or your agent's skills folder).This skill provides authoritative rules and patterns for writing production-quality Kotlin Coroutines code on Android. It enforces structured concurrency, lifecycle safety, and modern best practices (2025 standards).
Flow, StateFlow, SharedFlow, and callbackFlow.viewModelScope, lifecycleScope) and safe collection (repeatOnLifecycle).CoroutineExceptionHandler, SupervisorJob, and proper try-catch hierarchies.ensureActive().TestDispatcher and runTest.Activate this skill when the user asks to:
Dispatchers.IO, Dispatchers.Default) inside classes.CoroutineDispatcher via the constructor.Dispatchers.IO in the constructor argument for convenience, but allow it to be overridden.// CORRECT
class UserRepository(
private val ioDispatcher: CoroutineDispatcher = Dispatchers.IO
) { ... }
// INCORRECT
class UserRepository {
fun getData() = withContext(Dispatchers.IO) { ... }
}suspend functions.Flow.Dispatchers.Main without blocking the UI.withContext(dispatcher) inside the repository implementation to move execution to the background.lifecycleScope.launch or launchWhenStarted (deprecated/unsafe).repeatOnLifecycle(Lifecycle.State.STARTED) for collecting flows in Activities or Fragments.// CORRECT
viewLifecycleOwner.lifecycleScope.launch {
viewLifecycleOwner.repeatOnLifecycle(Lifecycle.State.STARTED) {
viewModel.uiState.collect { ... }
}
}viewModelScope for initiating coroutines in ViewModels.StateFlow or SharedFlow that the View observes.MutableStateFlow or MutableSharedFlow publicly.StateFlow or Flow using .asStateFlow() or upcasting.GlobalScope. It breaks structured concurrency and leads to leaks.applicationScope (a custom scope tied to the Application lifecycle).CancellationException in a generic catch (e: Exception) block without rethrowing it.runCatching only if you explicitly rethrow CancellationException.CoroutineExceptionHandler only for top-level coroutines (inside launch). It has no effect inside async or child coroutines.ensureActive() or yield() in tight loops (e.g., processing a large list, reading files) to check for cancellation.delay() and withContext() are already cancellable.callbackFlow to convert callback-based APIs to Flow.awaitClose at the end of the callbackFlow block to unregister listeners.class NewsRepository(
private val remoteDataSource: NewsRemoteDataSource,
private val externalScope: CoroutineScope, // For app-wide events
private val ioDispatcher: CoroutineDispatcher = Dispatchers.IO
) {
val newsUpdates: Flow<List<News>> = flow {
val news = remoteDataSource.fetchLatestNews()
emit(news)
}.flowOn(ioDispatcher) // Upstream executes on IO
}suspend fun loadDashboardData() = coroutineScope {
val userDeferred = async { userRepo.getUser() }
val feedDeferred = async { feedRepo.getFeed() }
// Wait for both
DashboardData(
user = userDeferred.await(),
feed = feedDeferred.await()
)
}@Test
fun testViewModel() = runTest {
val testDispatcher = StandardTestDispatcher(testScheduler)
val viewModel = MyViewModel(testDispatcher)
viewModel.loadData()
advanceUntilIdle() // Process coroutines
assertEquals(expectedState, viewModel.uiState.value)
}© 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
Just SKILL.md in .github/skills/android-coroutines of Moustachauve/WLED-Android.
Open the folder on GitHubat commit 7e164a8
We found 4 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 3 other GitHub owners. This page covers the copy in Moustachauve/WLED-Android, which our catalogue first saw on October 7, 2026.
Android Coroutines 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Android Coroutines this skillMoustachauve/WLED-Android | 169 | 3 repos | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Ha Android Concurrencyhome-assistant/android | 4k | — | ~1k | Automated safety check: Pass | Apache-2.0 | |
| Task Workflowikarenkov/Modo | 343 | — | ~2.4k | Automated safety check: Pass | None | |
| Release Changelogsk2andy/candy-browser | 508 | — | ~593 | Automated safety check: Pass | MPL-2.0 | |
| Ha Android Logging Errorshome-assistant/android | 4k | — | ~845 | Automated safety check: Pass | Apache-2.0 | |
| Composewebview Code Reviewparkwoocheol/compose-webview | 103 | — | ~2k | Automated safety check: Pass | MIT |
home-assistant/android
Home Assistant Android coroutine and threading guidance. An agent skill from home-assistant/android.
ikarenkov/Modo
Spec-driven workflow for non-trivial work. An agent skill from ikarenkov/Modo.
sk2andy/candy-browser
Create or update Candy Browser's English, image-rich, versioned release notes for the in-app What's New presentation and the matching GitHub release.
home-assistant/android
Home Assistant Android logging and error handling. An agent skill from home-assistant/android.
parkwoocheol/compose-webview
Performs code quality checks and reviews for ComposeWebView.
c5inco/compose-pokedexer
Handles Pokedexer Git and GitHub workflows: inspect changes, prepare commit messages, manage branches and pushes, and create or update issues and pull requests with safe file-based inputs.
Moustachauve/WLED-Android
Audit and improve Jetpack Compose runtime performance from code review and architecture.
Moustachauve/WLED-Android
Best practices for building UI with Jetpack Compose, focusing on state hoisting, detailed performance optimizations, and theming.
Moustachauve/WLED-Android
Debug and optimize Android/Gradle build performance. An agent skill from Moustachauve/WLED-Android.
Moustachauve/WLED-Android
Kotlin Coroutines review and remediation for Android. An agent skill from Moustachauve/WLED-Android.
Moustachauve/WLED-Android
Expert guidance on using Coil for image loading in Jetpack Compose.
Moustachauve/WLED-Android
Convert Android XML layouts to Jetpack Compose. An agent skill from Moustachauve/WLED-Android.
Categories
Authoritative rules and patterns for production-quality Kotlin Coroutines onto Android. Android Coroutines is an agent skill from Moustachauve/WLED-Android. Authoritative rules and patterns for production-quality Kotlin Coroutines onto Android.
Android Coroutines fits situations like: development work in your project.
Run `npx skills add Moustachauve/WLED-Android --skill android-coroutines -a claude-code`. Or copy the skill folder (.github/skills/android-coroutines in Moustachauve/WLED-Android) into .claude/skills/android-coroutines in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Moustachauve/WLED-Android --skill android-coroutines -a codex`. Or copy the skill folder (.github/skills/android-coroutines in Moustachauve/WLED-Android) into .agents/skills/android-coroutines in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Moustachauve/WLED-Android --skill android-coroutines -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/android-coroutines, .gemini/skills/android-coroutines, .github/skills/android-coroutines and .opencode/skills/android-coroutines in your project.
SKILL.md names no scripts, command-line tools or credentials: Android Coroutines is instructions for the agent only.
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.
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.
Android Coroutines 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.
About 1.4k tokens (SKILL.md is roughly 5.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Android Coroutines: Ha Android Concurrency (home-assistant/android, 4k stars), Task Workflow (ikarenkov/Modo, 343 stars), Release Changelog (sk2andy/candy-browser, 508 stars) and Ha Android Logging Errors (home-assistant/android, 4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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 9, 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.