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 mocking-with-mockitogit 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/mocking-with-mockito)<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/mocking-with-mockito"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/mocking-with-mockito/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/mocking-with-mockito"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/mocking-with-mockito.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.00205 | $0.04490 |
| Opus 5.5 | $0.00082 | $0.01796 |
| Sonnet 5.5 | $0.00041 | $0.00898 |
| Haiku 4.5 | $0.00020 | $0.00449 |
Grade A, and why
mocking-with-mockito 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 — 311 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Mocking with Mockito — The androidx-Native Mocking Stack
Mockito is the mocking framework androidx itself uses — 400+ test files import org.mockito across the AOSP checkout, while io.mockk returns zero hits. New Android code that wants to "match what Google does" picks Mockito + the mockito-kotlin Kotlin DSL. This skill documents the exact dependency matrix, the three setup styles, the Kotlin DSL surface, and the inline-mock-maker plumbing required for Kotlin final classes.
When to use this skill
- The user is starting a new test suite in a Kotlin Android module and asks "what mocking library should I use".
- The user reports
Cannot mock/spy class … final classfrom Mockito 4.x and needs themock-maker-inlineconfiguration. - The user reports
InvalidUseOfMatchersExceptionfrom mixing raw values withany()/eq(). - The user is wrestling with the
whenkeyword clash in Kotlin (`when`(mock.foo())) and wants thewheneverDSL. - The user wants
argumentCaptor<T>()withfirstValue/lastValue/allValuesinstead ofArgumentCaptor.forClass(...). - The user is migrating from
MockitoAnnotations.initMocks(this)toopenMocks(this)or theMockitoJUnit.rule()approach. - The user is mocking a
finalclass on an instrumented test on API < 28.
When NOT to use this skill
- The user wants
coEvery/coVerifyfor suspend functions, deep singleton mocking viamockkObject, or static mocking viamockkStatic— use../mocking-with-mockk/SKILL.md. - The user is choosing between fakes and mocks at the design level — use
../../../fundamentals/doubles/picking-test-doubles/SKILL.md. Per /test-doubles, fakes are preferred over mocks for behaviour-heavy collaborators. - The runner / Gradle matrix isn't set up yet — start with
../../runner/configuring-junit4-on-android/SKILL.md. - The user wants
runTest-aware testing for coroutines — see../../coroutines/testing-coroutines-with-runtest/SKILL.md.
Prerequisites
- The base test wiring from
../../runner/configuring-junit4-on-android/SKILL.mdis already in place (@RunWith(AndroidJUnit4::class),androidx.test.ext:junit:1.3.0, JUnit 4.13.2). - A Kotlin module on JDK 11+ (Mockito 5.x raised the JDK floor to Java 11).
- A
MainDispatcherRuleis installed if any code-under-test touchesDispatchers.Main— see the runner skill.
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 · 311 lines · 205 tokens per session scan A 963529bd7f3f
mocking-with-mockito is a skill published in the GitHub repository skydoves/android-testing-skills (351 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 205 tokens to every session and 4,490 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.
mocking-with-mockito compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mocking-with-mockitoskydoves/android-testing-skills | Skill | 351 | 6mo ago | Apache-2.0 | A | 205 | Claude Code, Codex |
| android-do-not-mockchromium/chromium | Skill | 25k | today | BSD-3-Clause | A | 96 | Claude Code, Codex |
| android-unit-testchromium/chromium | Skill | 25k | today | BSD-3-Clause | A | 36 | Claude Code, Codex |
| react-native-testingcallstack/react-native-testing-library | Skill | 3.4k | 9d ago | MIT | A | 134 | Claude Code, Codex |
| flutter-add-widget-testflutter/agent-plugins | Skill | 3.2k | 12d ago | BSD-3-Clause | A | 48 | Claude Code |
| mobiai-android-testingArisGuimera/MobiAI-Core | Skill | 496 | today | MIT | A | 30 | Claude Code |
| mobiai-ios-testingArisGuimera/MobiAI-Core | Skill | 496 | today | MIT | A | 31 | Claude Code |