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 writing-espresso-testsgit 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/writing-espresso-tests)<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/writing-espresso-tests"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/writing-espresso-tests/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/writing-espresso-tests"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/writing-espresso-tests.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.05390 |
| Opus 5.5 | $0.00082 | $0.02156 |
| Sonnet 5.5 | $0.00041 | $0.01078 |
| Haiku 4.5 | $0.00020 | $0.00539 |
Grade A, and why
writing-espresso-tests 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 — 356 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Writing Espresso Tests — The Idle-Then-Act Model for Android Views
Espresso is the canonical instrumentation-time UI test framework for Android Views (not Compose — for Compose, use the compose/ skill set; for cross-Compose-View interop see ../../../compose/interop/testing-with-espresso-interop/SKILL.md). Each onView(...).perform(...).check(...) call internally pumps the main looper to idle, finds exactly one matching view, runs the action, and pumps to idle again before checking. This skill encodes the full matcher/action/assertion catalog, the RootMatchers.DEFAULT trap, and the per-version gotchas.
When to use this skill
- The user is testing an Activity, Fragment, or Dialog whose UI is built with Android Views (XML layouts, AppCompat, Material View components).
- A test fails with
NoMatchingViewException,AmbiguousViewMatcherException, orPerformException. - A click on an
AlertDialogbutton silently does nothing —RootMatchers.DEFAULTexcludes dialogs. - The user wants to stub
Intent.startActivityForResultfor camera, contacts, or share flows. - The user wants to register an
IdlingResourcefor a long-running task that Espresso can't see. - The user is debugging a
RecyclerViewinteraction. - The user mentions
BottomNavigationViewActionsand is surprised it isn't on the classpath in Espresso 3.7.0 contrib.
When NOT to use this skill
- The UI is Jetpack Compose — use
compose/skills (../../../compose/finders/finding-nodes-by-tag-text-content/SKILL.md, etc.). Mixed Compose+View hosts:../../../compose/interop/testing-with-espresso-interop/SKILL.md. - The test crosses app boundaries (Settings, dialer, system UI) —
InjectEventSecurityExceptionfrom Espresso. Use../../uiautomator/cross-app-tests-with-uiautomator/SKILL.md. - The runner stack is not yet set up — start with
../../runner/running-instrumented-tests-with-androidjunit4/SKILL.md. - The Activity has not been launched — pair with
../../scenarios/launching-activities-with-activityscenario/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 · 356 lines · 205 tokens per session scan A 06f901ae570b
writing-espresso-tests 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 5,390 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.
writing-espresso-tests compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| writing-espresso-testsskydoves/android-testing-skills | Skill | 351 | 6mo ago | Apache-2.0 | A | 205 | Claude Code, Codex |
| android-ui-journey-testingsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 27 | Claude Code |
| android_ui_verificationsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 22 | Claude Code |
| solopi-aialipay/SoloPi | Skill | 6.8k | today | Apache-2.0 | A | 82 | Codex |
| public-transitchromium/chromium | Skill | 25k | today | BSD-3-Clause | A | 53 | Claude Code, Codex |
| eas-simulatorexpo/skills | Skill | 4.3k | today | MIT | A | 251 | Claude Code, Codex |
| dogfoodcallstack/agent-device | Skill | 5.6k | today | MIT | A | 55 | Claude Code |