build-and-test

build-and-test is a skill for Claude Code, Codex from iksnerd/adb-mcp. It costs 62 tokens per session (2,238 once invoked), scanned A, original, MIT.

A guide for building and testing Android projects that use Gradle, a tool that automates project builds and tests.

In plain words
What is it for?
It helps map the project, choose build variants, run tests, inspect JaCoCo coverage reports, and identify specific lines that still need tests.
Why use it?
It helps identify the correct task in a multi-module project and separates ordinary JVM tests from tests that run on an Android device.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps map the project, choose build variants, run tests, inspect JaCoCo coverage reports, and identify specific lines that still need tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iksnerd/adb-mcp/build-and-test
Install

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.

Any agent
npx skills add iksnerd/adb-mcp --skill build-and-test
Clone the repo
git clone --depth 1 https://github.com/iksnerd/adb-mcp

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for build-and-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/iksnerd/adb-mcp/build-and-test/github.svg)](https://agentmods.dev/skills/iksnerd/adb-mcp/build-and-test)
Your own site
<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.

agentmods 80×15 button for build-and-test

Your own site · 80×15
<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>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,238 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured today against content hash 4fa740b78dec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugin/adb-mcp-codex/skills/build-and-test/SKILL.md · 198 lines

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.

Read the full file on GitHub · 198 lines

Changes

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.

  1. today Changed · +1 lines 4fa740b78dec
  2. 6d ago Changed · +190 lines 4fe56a04c76d
  3. 2mo ago First seen · 7 lines · 62 tokens per session scan A e620e72a8f0f

Subscribe to this mod's changes

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.

Related

build-and-test compared with skills from other repositories

build-and-test next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
build-and-testiksnerd/adb-mcpSkill18todayMITA62Claude Code, Codex
simvynpranshuchittora/simvynSkill44210d agoMITA63Codex
android-qawillbytee-sudo/android-qa-kitSkill33mo agoMITA80Claude Code
scrcpy-mcp1999AZZAR/scrcpy-mcpSkill015d agononeA71Claude Code, Codex
opik-diagnosecomet-ml/opik-mcpSkill225yesterdayApache-2.0A187Claude Code
cortex-explore-memorycdeust/CortexSkill76todayMITA91Claude Code
qmclaw-workbenchxi-zhao/OpenQuantumSkill72yesterdayMITA124Codex