Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add rabee-elkholy/android-harness-kit --skill kotlin-coroutines-expertgit clone --depth 1 https://github.com/rabee-elkholy/android-harness-kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/rabee-elkholy/android-harness-kit/kotlin-coroutines-expert)<a href="https://agentmods.dev/skills/rabee-elkholy/android-harness-kit/kotlin-coroutines-expert"><img src="https://agentmods.dev/badge/skills/rabee-elkholy/android-harness-kit/kotlin-coroutines-expert/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/rabee-elkholy/android-harness-kit/kotlin-coroutines-expert"><img src="https://agentmods.dev/badge/skills/rabee-elkholy/android-harness-kit/kotlin-coroutines-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00030 | $0.00450 |
| Opus 5 | $0.00015 | $0.00225 |
| Sonnet 5 | $0.00006 | $0.00090 |
| Haiku 4.5 | $0.00003 | $0.00045 |
Grade A, and why
kotlin-coroutines-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Kotlin Coroutines Expert
Overview
Authoritative guide for asynchronous programming, reactive data streams, and cancellation/exception safety in this Android app.
1. Structured Concurrency
- Always launch coroutines within a defined
CoroutineScope(e.g.,viewModelScopewithapplicationExceptionHandler). - Use
coroutineScopeorsupervisorScopeto group concurrent tasks. - Never use
GlobalScope(causes memory leaks and uncontrollable lifetimes).
suspend fun loadDashboardData(): DashboardData = supervisorScope {
val userDeferred = async { userRepo.getUser() }
val stepsDeferred = async { stepsRepo.getTodaySteps() }
DashboardData(
user = userDeferred.await(),
steps = stepsDeferred.await()
)
}
2. Exception & Cancellation Safety
- Top-level scopes should use
CoroutineExceptionHandler. - Never swallow
CancellationException— if caught, rethrow it to allow proper cancellation propagation. - For network calls, catch specific domain exceptions (
IOException,HttpException) instead of a generic emptycatch (e: Exception).
3. Reactive Streams (Flow & StateFlow)
- Expose read-only
StateFlow<T>orSharedFlow<T>from ViewModels; keepMutableStateFlowprivate. - For One-Shot UI events (navigation, toast, dialog), use
Channel<Event>withreceiveAsFlow()orSharedFlow<Event>(replay = 0). Never use sticky MutableLiveData. - Use
flowOn(Dispatchers.IO)for heavy data transformations before collecting on the Main thread.
4. Testing Coroutines
- Use
runTestfromkotlinx-coroutines-test. - Inject
TestDispatcher(e.g.StandardTestDispatcherorUnconfinedTestDispatcher) into ViewModels/UseCases instead of hardcodingDispatchers.IO.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 49 lines · 30 tokens per session scan A e09b043a2d1f
kotlin-coroutines-expert is a skill published in the GitHub repository rabee-elkholy/android-harness-kit (3 stars, last pushed 11d ago), licensed MIT. It adds 30 tokens to every session and 450 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
compose-navigation
Jetpack Compose Navigation for Android AI agents. Use this skill whenever implementing navigation, NavHost, NavController, back stack, deep links, navigation arguments, routes, type-safe navigation, @Serializable routes, navController.navigate, popBackStack, navigateUp, bottom navigation, tab navigation, nested…
kotlin-patterns
Idiomatic Kotlin patterns for Android AI agents. Use this skill whenever writing Kotlin code for Android, especially: coroutines, Flow, StateFlow, SharedFlow, viewModelScope, lifecycleScope, Dispatchers, withContext, suspend functions, sealed classes, sealed interfaces, data classes, extension functions, scope…
hilt-di
Hilt dependency injection for Android AI agents. Use this skill whenever setting up Hilt, writing @HiltViewModel, @AndroidEntryPoint, @HiltAndroidApp, @Module, @InstallIn, @Provides, @Binds, @Singleton, @ViewModelScoped, @ActivityScoped, @EntryPoint, @AssistedInject, @HiltWorker, @HiltAndroidTest, @BindValue, or…
kotlin-android-architecture
Expert guidance on a modern Kotlin-first Android application architecture using Clean Architecture, Gradle module separation, version catalogs, and Hilt DI. Use this when asked about project structure, module layout, or dependency injection.
kotlin-flow
Expert guidance on Kotlin Flow — cold vs hot flows, StateFlow / SharedFlow, common operators, combining, back-pressure, and testing with Turbine. Use this for any reactive data stream work.
livedata-to-flow
Expert guidance on migrating LiveData to StateFlow / SharedFlow, including lifecycle-aware collection, Transformations replacements, and Java interop. Use this when modernizing a ViewModel or removing the lifecycle-livedata dependency.