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 injecting-mouse-and-keyboardgit 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/injecting-mouse-and-keyboard)<a href="https://agentmods.dev/skills/skydoves/android-testing-skills/injecting-mouse-and-keyboard"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/injecting-mouse-and-keyboard/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/injecting-mouse-and-keyboard"><img src="https://agentmods.dev/badge/skills/skydoves/android-testing-skills/injecting-mouse-and-keyboard.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.00250 | $0.04408 |
| Opus 5.5 | $0.00100 | $0.01763 |
| Sonnet 5.5 | $0.00050 | $0.00882 |
| Haiku 4.5 | $0.00025 | $0.00441 |
Grade A, and why
injecting-mouse-and-keyboard 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 — 262 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Injecting Mouse and Keyboard — performMouseInput, performKeyInput, performMultiModalInput
Mouse and keyboard input are first-class modalities in Compose tests. Each has its own injection scope and entry point, plus a shared performMultiModalInput that combines all of them inside one batched gesture (touch, mouse, key, rotary, trackpad, indirect pointer). Coordinates remain node-local — the same rules as touch — and the entire injection state survives across perform.*Input blocks on the same node.
When to use this skill
- The test exercises a desktop or Compose Multiplatform UI that responds to clicks, hover, right-click, scroll wheel, or modifier keys.
- The test must drive a keyboard shortcut (e.g.
Ctrl+S,Shift+Tab, arrow-key navigation). - The test must verify hover-only behaviour: tooltip pop, color change on
Modifier.hoverable, mouse-only ripple state. - The test simulates a drag-and-drop with a mouse pointer.
- The test must combine modalities — for example "hover at (x, y) then click and hold while pressing
Shift".
When NOT to use this skill
- The interaction is a finger tap or drag — use
../injecting-touch-gestures/SKILL.md. Mouse is not interchangeable with touch on Android device tests. - A simple
performClick()already routes through the right modality per platform — use../clicking-and-scrolling/SKILL.md. - The test types into a
TextField— use../entering-text/SKILL.md. Key input here is for shortcuts, not text entry. - The test waits for a hover-driven animation to settle — pause the clock first per
../../synchronization/testing-animations-deterministically/SKILL.md.
Prerequisites
androidx.compose.ui:ui-test-junit4(orui-testforrunComposeUiTest) configured per../../setup/configuring-test-dependencies/SKILL.md.- For mouse hover events on Android: API level that supports hover (typically API 23+) — Robolectric host tests work but check
@Config(minSdk = …). - For key input that targets a focusable node: the node must be focusable (e.g. wrapped in
Modifier.focusable()orModifier.focusRequester(...)). Otherwise key events route to the focused root.
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 · 262 lines · 250 tokens per session scan A 5054fc863acf
injecting-mouse-and-keyboard is a skill published in the GitHub repository skydoves/android-testing-skills (351 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 250 tokens to every session and 4,408 once invoked, about $0.0010 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.
injecting-mouse-and-keyboard compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| injecting-mouse-and-keyboardskydoves/android-testing-skills | Skill | 351 | 6mo ago | Apache-2.0 | A | 250 | 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 |