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 skydoves/android-testing-skills --skill using-robolectric-correctlygit clone --depth 1 https://github.com/skydoves/android-testing-skillsWrote 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/skydoves/android-testing-skills/using-robolectric-correctly)<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/using-robolectric-correctly"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/using-robolectric-correctly/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/skydoves/android-testing-skills/using-robolectric-correctly"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/using-robolectric-correctly.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00208 | $0.05394 |
| Opus 5.5 | $0.00083 | $0.02158 |
| Sonnet 5.5 | $0.00042 | $0.01079 |
| Haiku 4.5 | $0.00021 | $0.00539 |
Grade A, and why
using-robolectric-correctly 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 414 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Using Robolectric Correctly — Android On The JVM, Without The Footguns
Robolectric simulates Android on the JVM by swapping in pure-Java reimplementations of system classes ("shadows"). It is fast (10-100x vs an emulator) but not an emulator: no real RenderThread, no real Binder, no real GPU. This skill locks down the runner choice, the @Config matrix, the looper draining ritual, and the AGP 7.2+ sharedTest gotcha. Compose-on-Robolectric specifics live in ../../../compose/synchronization/controlling-the-test-clock/SKILL.md.
When to use this skill
- The class under test imports
android.*(Context, Resources, View, PackageManager, Looper) and the developer wants to test it on the JVM in seconds, not on an emulator in minutes. - A unit test fails with
RuntimeException: Method ... not mocked(the bare-Android-jar default) — the developer needs Robolectric's shadows. - A unit test fails with
Resources$NotFoundException—testOptions.unitTests.includeAndroidResourcesis missing. - The developer asks "AndroidJUnit4 vs RobolectricTestRunner — which?".
- A
Handler.postDelayed/Looperqueue does not advance under Robolectric's defaultLooperMode.PAUSED. - The developer asks how to run the same test source on JVM and on a device (
sharedTest/androidHostTest+androidDeviceTest). - Build error after AGP 7.2+: "Source directory ... already added to source set", caused by the classic
sharedTestsrcDirsharing pattern.
When NOT to use this skill
- The class under test has zero
android.*imports. Robolectric pays a 1-3 s class-load tax for nothing — use plain JUnit4. See../../runner/configuring-junit4-on-android/SKILL.md. - The test verifies pixel correctness, ripple animations, screenshot diffs, accessibility services, or
RenderThreadtiming. Run on an emulator/device. See../../../instrumentation/runner/running-instrumented-tests-with-androidjunit4/SKILL.md. - The test is about coroutines +
runTestand does not need framework Android. Use../../coroutines/testing-coroutines-with-runtest/SKILL.md. - The test is about Compose UI rendering. The host-test environment is set up by
../../../compose/setup/configuring-test-dependencies/SKILL.mdand the clock semantics live in../../../compose/synchronization/controlling-the-test-clock/SKILL.md.
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.
- 3mo ago First seen · 414 lines · 208 tokens per session scan A 7d8cf8ce32b2
using-robolectric-correctly is a skill published in the GitHub repository skydoves/android-testing-skills (351 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 208 tokens to every session and 5,394 once invoked, about $0.0008 per session on Opus 5.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-30.
using-robolectric-correctly compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| using-robolectric-correctlyskydoves/android-testing-skills | Skill | 351 | 6mo ago | Apache-2.0 | A | 208 | Claude Code, Codex |
| java-affected-testsopen-metadata/OpenMetadata | Skill | 16k | today | Apache-2.0 | A | 120 | Claude Code |
| java-unit-testhashgraph-online/awesome-codex-plugins | Skill | 1.6k | today | Apache-2.0 | A | 113 | Codex |
| test-qualitydecebals/claude-code-java | Skill | 780 | 1mo ago | MIT | A | 45 | Claude Code, Codex |
| testng-skillLambdaTest/agent-skills | Skill | 398 | 13d ago | MIT | A | 75 | Claude Code, Codex |
| 111-java-maven-dependenciesjabrena/plinth | Skill | 470 | today | Apache-2.0 | A | 133 | Claude Code, Codex |
| 130-java-testing-strategiesjabrena/plinth | Skill | 470 | today | Apache-2.0 | A | 96 | Claude Code, Codex |