Android Hidden API and R8 Check
gkd-kit/gkd
Checks whether Android hidden-API implementations and system callbacks survive R8 minification, and diagnoses Release-only failures such as AbstractMethodError.
Comprehensive guidance for writing deterministic tests for Android code using Kotlin coroutines.
$ npx skills add timusus/Shuttle2 --skill android-coroutine-testing -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install timusus/Shuttle2 android-coroutine-testing --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/timusus/Shuttle2.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/android-coroutine-testing .claude/skills/android-coroutine-testing && 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-coroutine-testing" agent skill from https://github.com/timusus/Shuttle2/tree/main/.claude/skills/android-coroutine-testing into .claude/skills/android-coroutine-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-coroutine-testing", 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/timusus/Shuttle2/tree/main/.claude/skills/android-coroutine-testingType 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 timusus/Shuttle2 --skill android-coroutine-testing -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install timusus/Shuttle2 android-coroutine-testing --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/timusus/Shuttle2.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/android-coroutine-testing .agents/skills/android-coroutine-testing && 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-coroutine-testing" agent skill from https://github.com/timusus/Shuttle2/tree/main/.claude/skills/android-coroutine-testing into .agents/skills/android-coroutine-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-coroutine-testing", 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 timusus/Shuttle2 --skill android-coroutine-testing -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install timusus/Shuttle2 android-coroutine-testing --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/timusus/Shuttle2.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/android-coroutine-testing .cursor/skills/android-coroutine-testing && 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-coroutine-testing" agent skill from https://github.com/timusus/Shuttle2/tree/main/.claude/skills/android-coroutine-testing into .cursor/skills/android-coroutine-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-coroutine-testing", 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/timusus/Shuttle2.git --path .claude/skills/android-coroutine-testing--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 timusus/Shuttle2 --skill android-coroutine-testing -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install timusus/Shuttle2 android-coroutine-testing --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/timusus/Shuttle2.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/android-coroutine-testing .gemini/skills/android-coroutine-testing && 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-coroutine-testing" agent skill from https://github.com/timusus/Shuttle2/tree/main/.claude/skills/android-coroutine-testing into .gemini/skills/android-coroutine-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-coroutine-testing", 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 timusus/Shuttle2 android-coroutine-testingInstalls 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 timusus/Shuttle2 --skill android-coroutine-testing -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/timusus/Shuttle2.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/android-coroutine-testing .github/skills/android-coroutine-testing && 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-coroutine-testing" agent skill from https://github.com/timusus/Shuttle2/tree/main/.claude/skills/android-coroutine-testing into .github/skills/android-coroutine-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-coroutine-testing", 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 timusus/Shuttle2 --skill android-coroutine-testing -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install timusus/Shuttle2 android-coroutine-testing --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/timusus/Shuttle2.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/android-coroutine-testing .opencode/skills/android-coroutine-testing && 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-coroutine-testing" agent skill from https://github.com/timusus/Shuttle2/tree/main/.claude/skills/android-coroutine-testing into .opencode/skills/android-coroutine-testing/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-coroutine-testing", 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-coroutine-testingComprehensive guidance for writing deterministic tests for Android code using Kotlin coroutines.
Android Coroutine Testing is an agent skill from timusus/Shuttle2. Comprehensive guidance for writing deterministic tests for Android code using Kotlin coroutines. Use when testing suspending functions, coroutines, flows, ViewModels with coroutines, or when needing to handle test dispatchers, runTest, backgroundScope, testScope, or virtual time control.
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 Mobile. It works with Android and Kotlin. The repository describes itself as: Shuttle Music: a music player for Android and iOS. Plays local files and streams from Jellyfin, Emby, Plex and Navidrome/Subsonic, with Chromecast, Android Auto, EQ and replay… The licence is Apache-2.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 9cef5dd. 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 Coroutine Testing loads about 1.2k tokens when it runs. Until then it costs about 79 tokens; SKILL.md has 325 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 timusus/Shuttle2 at commit 9cef5dd, republished under its Apache-2.0 licence (© timusus). 325 words, ~1,165 tokens.
.claude/skills/android-coroutine-testing/SKILL.md (or your agent's skills folder).Write deterministic tests for coroutine-based Android code using runTest, test dispatchers,
and proper scope management.
The kotlinx-coroutines-test dependency (version 1.10.2, see gradle/libs.versions.toml) is
already on the test classpath via libs.kotlinx.coroutinesTest.
@Test
fun myCoroutineTest() = runTest {
// Arrange
val testDispatcher = StandardTestDispatcher(testScheduler)
val repository = MyRepository(testDispatcher)
// Act
val result = repository.fetchData()
// Assert
assertEquals("expected", result)
}= runTest { ... }StandardTestDispatcher (default)
advanceUntilIdle() to run pending workUnconfinedTestDispatcher
Always inject dispatchers for testability:
// Bad - Hardcoded dispatcher
class Repository {
suspend fun fetchData() = withContext(Dispatchers.IO) { ... }
}
// Good - Injectable dispatcher
class Repository(
private val ioDispatcher: CoroutineDispatcher = Dispatchers.IO
) {
suspend fun fetchData() = withContext(ioDispatcher) { ... }
}Replace the Main dispatcher using the repo's existing rule at
android/app/src/test/java/com/simplecityapps/testing/MainDispatcherRule.kt:
@get:Rule
val mainDispatcherRule = MainDispatcherRule()
@Test
fun viewModelTest() = runTest {
val viewModel = MyViewModel()
viewModel.loadData() // Uses test Main dispatcher
assertEquals(expected, viewModel.state.value)
}It defaults to UnconfinedTestDispatcher; pass a StandardTestDispatcher(testScheduler) if
a test needs precise execution order instead.
@Test
fun testWithBackgroundWork() = runTest {
// Use backgroundScope for work that outlives the test body
backgroundScope.launch {
// Long-running collection
repository.dataFlow.collect { ... }
}
// Test body completes, but waits for backgroundScope
repository.updateData("new")
advanceUntilIdle()
}class MyClass(private val scope: CoroutineScope) {
fun startWork() {
scope.launch { ... }
}
}
@Test
fun scopeInjectionTest() = runTest {
val myClass = MyClass(scope = this) // Pass TestScope
myClass.startWork()
advanceUntilIdle()
}Control virtual time in tests:
advanceUntilIdle() - Run all pending coroutinesadvanceTimeBy(millis) - Advance time and run scheduled workrunCurrent() - Run coroutines at current time onlytestScheduler.currentTime - Check current virtual timekotlinx-coroutines-test surfaces uncaught exceptions from backgroundScope and other test
dispatchers by failing the runTest block directly — no separate exception-handler utility
is needed. Assert with a standard assertThrows / try/catch around the failing call
instead.
Dispatchers.IO or Dispatchers.Default directlyThis repo does not depend on Turbine. Test Flow emissions by collecting into a list inside
runTest (e.g. via backgroundScope.launch { flow.toList(results) } or
flow.first()/flow.take(n).toList()) and asserting on the collected values.
MockK (libs.mockk) is on the test classpath if a mock is genuinely needed. Prefer a real
fake implementation over a mock where the collaborator is simple (e.g. an in-memory
repository).
© timusus, 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 .claude/skills/android-coroutine-testing of timusus/Shuttle2.
Open the folder on GitHubat commit 9cef5dd
Android Coroutine Testing 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 Coroutine Testing this skilltimusus/Shuttle2 | 229 | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Android Hidden API and R8 Checkgkd-kit/gkd | 43k | — | ~1.5k | Automated safety check: Pass | GPL-3.0 | |
| Compose Multiplatform Patternsmonta-app/ocpp-emulator | 180 | 5 repos | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Android Developmentdpconde/claude-android-skill | 336 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Ha Android Architecturehome-assistant/android | 4k | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Architecture Overclocknekomangaorg/Neko | 2.8k | — | ~1.4k | Automated safety check: Pass | Apache-2.0 |
gkd-kit/gkd
Checks whether Android hidden-API implementations and system callbacks survive R8 minification, and diagnoses Release-only failures such as AbstractMethodError.
monta-app/ocpp-emulator
Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.
dpconde/claude-android-skill
Create production-quality Android applications following Google's official architecture guidance and NowInAndroid best practices.
home-assistant/android
Home Assistant Android module and layer architecture. An agent skill from home-assistant/android.
nekomangaorg/Neko
Resolves deep, structural performance bottlenecks in the Kotlin Android codebase.
Drjacky/claude-android-ninja
Build and migrate Android apps with Kotlin, Jetpack Compose, MVVM, Hilt, Room 3 (KSP, SQLiteDriver, Flow/suspend DAOs), Navigation3, and multi-module Gradle.
timusus/Shuttle2
Drive the S2 debug build's playback and queue over ADB broadcasts — play the whole library, play/pause, skip, seek, remove a queue item, toggle shuffle/repeat, dump playback state as JSON, reimport…
timusus/Shuttle2
Deploy the Android app to the Play Store via GitHub Actions.
timusus/Shuttle2
Weekly Play Store review flow for S2: fetch new reviews, draft replies, get owner approval, then post.
timusus/Shuttle2
Run lint + unit tests, investigate and fix failures. An agent skill from timusus/Shuttle2.
timusus/Shuttle2
Analyse working tree changes, group them into logical atomic commits, and create well-structured conventional commits with module scopes.
timusus/Shuttle2
Run high-volume work in a subagent so its raw output never enters this conversation.
Categories
Comprehensive guidance for writing deterministic tests for Android code using Kotlin coroutines. Android Coroutine Testing is an agent skill from timusus/Shuttle2. Comprehensive guidance for writing deterministic tests for Android code using Kotlin coroutines.
Android Coroutine Testing fits situations like: testing suspending functions; viewModels with coroutines; needing to handle test dispatchers; backgroundScope.
Run `npx skills add timusus/Shuttle2 --skill android-coroutine-testing -a claude-code`. Or copy the skill folder (.claude/skills/android-coroutine-testing in timusus/Shuttle2) into .claude/skills/android-coroutine-testing in your project. Claude Code loads it when a task matches its description.
Run `npx skills add timusus/Shuttle2 --skill android-coroutine-testing -a codex`. Or copy the skill folder (.claude/skills/android-coroutine-testing in timusus/Shuttle2) into .agents/skills/android-coroutine-testing 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 timusus/Shuttle2 --skill android-coroutine-testing -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-coroutine-testing, .gemini/skills/android-coroutine-testing, .github/skills/android-coroutine-testing and .opencode/skills/android-coroutine-testing in your project.
SKILL.md names no scripts, command-line tools or credentials: Android Coroutine Testing 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 Coroutine Testing 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.2k tokens (SKILL.md is roughly 4.7k 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 Coroutine Testing: Android Hidden API and R8 Check (gkd-kit/gkd, 43k stars), Compose Multiplatform Patterns (monta-app/ocpp-emulator, 180 stars), Android Development (dpconde/claude-android-skill, 336 stars) and Ha Android Architecture (home-assistant/android, 4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
timusus (a GitHub user) maintains it in timusus/Shuttle2, which has 229 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on October 7, 2026.
Source: timusus/Shuttle2 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.