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 iksnerd/adb-mcp --skill build-and-testgit clone --depth 1 https://github.com/iksnerd/adb-mcpWrote 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/iksnerd/adb-mcp/build-and-test)<a href="https://agentmods.dev/skills/iksnerd/adb-mcp/build-and-test"><img src="https://agentmods.dev/badge/skills/iksnerd/adb-mcp/build-and-test/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/iksnerd/adb-mcp/build-and-test"><img src="https://agentmods.dev/badge/skills/iksnerd/adb-mcp/build-and-test.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.00062 | $0.02238 |
| Opus 5.5 | $0.00025 | $0.00895 |
| Sonnet 5.5 | $0.00012 | $0.00448 |
| Haiku 4.5 | $0.00006 | $0.00224 |
Grade A, and why
build-and-test 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 today.
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 — 198 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Building, testing, and measuring coverage with Gradle
These tools run on the host, not on a device. Only run_instrumented_tests
and build_and_run need a booted device. project_dir must be the directory
holding the Gradle wrapper (gradlew), not a module inside it.
Pin project_dir once instead of repeating it on every call:
session_set_defaults {project_dir: "/path/to/project"}
Every Gradle tool below then takes it from there. An explicit project_dir on a
single call still wins.
If a build fails with "SDK location not found", the server could not resolve
an Android SDK to hand Gradle. Run doctor — it prints the location it resolved
and flags a path with no platform-tools/ in it. The fix is on the client side:
set ANDROID_HOME, or launch the server with --sdk /path/to/sdk.
Map the project before you build it
The single biggest time-waster is guessing a task name. Two calls remove the guessing:
list_gradle_projects → :app, :core, :feature:login (empty = single-module)
list_gradle_variants → debug, release, prodDebug, …
In a multi-module build the root project usually has no variants of its own —
the Android plugin is applied in :app, not at the root. list_gradle_variants
with no arguments will tell you it found none and to point at the module that
builds APKs. That is not an error to route around; it means scope the call:
list_gradle_variants {task: ":app:tasks"}
The same applies to list_gradle_tasks, which lists the root project's tasks
by default. Anywhere you can name a task you can qualify it with a module path:
:app:assembleDebug, :feature:login:testDebugUnitTest.
Build
gradle_build → assembleDebug
gradle_build {task: "assembleRelease"} → a specific variant
gradle_build {background: true} → returns a job id at once; poll build_status
build_and_run {package: "com.example"} → build → install → launch, one call
gradle_build returns a summary, not Gradle's output: status, duration,
error count, the first few errors, the APKs under build/outputs (newest first,
so a stale one from an earlier build can be in the list), and the path of the
full log. Read the log file only if the summary does not explain the failure.
Credential-shaped values (passwords, tokens, user:pass@ URLs) are redacted
from both the summary and the log, so a --info run is safe to read.
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.
- today Changed · +1 lines 4fa740b78dec
- 6d ago Changed · +190 lines 4fe56a04c76d
- 2mo ago First seen · 7 lines · 62 tokens per session scan A e620e72a8f0f
build-and-test is a skill published in the GitHub repository iksnerd/adb-mcp (18 stars, last pushed today), licensed MIT. It adds 62 tokens to every session and 2,238 once invoked, about $0.0002 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-31.
build-and-test compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| build-and-testiksnerd/adb-mcp | Skill | 18 | today | MIT | A | 62 | Claude Code, Codex |
| simvynpranshuchittora/simvyn | Skill | 442 | 10d ago | MIT | A | 63 | Codex |
| android-qawillbytee-sudo/android-qa-kit | Skill | 3 | 3mo ago | MIT | A | 80 | Claude Code |
| scrcpy-mcp1999AZZAR/scrcpy-mcp | Skill | 0 | 15d ago | none | A | 71 | Claude Code, Codex |
| opik-diagnosecomet-ml/opik-mcp | Skill | 225 | yesterday | Apache-2.0 | A | 187 | Claude Code |
| cortex-explore-memorycdeust/Cortex | Skill | 76 | today | MIT | A | 91 | Claude Code |
| qmclaw-workbenchxi-zhao/OpenQuantum | Skill | 72 | yesterday | MIT | A | 124 | Codex |