Agent skill

Android

by yang1ming in yang1ming/android-harness

Direct Android device control through ADB. An agent skill from yang1ming/android-harness.

MITAuto-check passedMobile

Install Android

skills CLI
$ npx skills add yang1ming/android-harness --skill android -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yang1ming/android-harness android --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
android
GitHub stars
175
Token cost
~259 tokens
SKILL.md length
103 words
Files
88
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Direct Android device control through ADB. An agent skill from yang1ming/android-harness.

  • Works in 5 steps: Take a screenshot. → Inspect current app and UI tree if needed. → Act with tap, swipe, type, or key events. → …
  • Authorized device automation
  • SKILL.md covers Usage and Safety
  • Runs Python scripts from its folder

What it does

Android is an agent skill from yang1ming/android-harness. Direct Android device control through ADB. Use for authorized device automation, testing, screenshots, UI inspection, and app interaction.

Its SKILL.md is about 260 tokens, which your agent loads only when the skill is triggered. The skill folder holds 91 other files (for example `.github/ISSUE_TEMPLATE/bug_report.yml`, `.github/ISSUE_TEMPLATE/feature_request.yml` and `.github/ISSUE_TEMPLATE/safety_boundary.yml`).

It sits in Mobile, covering Mobile testing and debugging. It works with Android. The repository describes itself as: A lightweight, ADB-first Android harness for agents, exposing stable primitives for authorized device automation, screenshots, UI inspection, input events, diagnostics, and… The licence is MIT.

When your agent uses it

  • Authorized device automation
  • App interaction

Example prompts

  • “/android”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Take a screenshot.
  2. Inspect current app and UI tree if needed.
  3. Act with tap, swipe, type, or key events.
  4. Wait for screen/app/text change.
  5. Capture the result.

What it can do on your machine

Read from SKILL.md and the folder at commit fe4a40f. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python, from the files we listed), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Android loads about 259 tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 103 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~259

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from yang1ming/android-harness at commit fe4a40f, republished under its MIT licence (© yang1ming). 103 words, ~259 tokens.

Download SKILL.mdSave it as .claude/skills/android/SKILL.md (or your agent's skills folder). This skill also uses 87 other files; get the full folder from GitHub.
name
android
description
Direct Android device control through ADB. Use for authorized device automation, testing, screenshots, UI inspection, and app interaction.

android-harness

Direct Android device control through ADB. For task-specific edits, use agent-workspace/agent_helpers.py. For app-specific knowledge, use agent-workspace/app-skills/<package>/.

Usage

bash
android-harness <<'PY'
print(device_info())
print(current_app())
print(page_info())
PY

Helpers are pre-imported. Prefer this loop:

  1. Take a screenshot.
  2. Inspect current app and UI tree if needed.
  3. Act with tap, swipe, type, or key events.
  4. Wait for screen/app/text change.
  5. Capture the result.

Screenshots are the primary observation source. uiautomator XML is an auxiliary source and may be incomplete for WebView, games, canvas, or custom-rendered UI.

Safety

Use this harness only on devices and apps where automation is authorized. The core does not hide ADB, root, accessibility, emulator, or automation signals.

© yang1ming, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 87 other files in the repository root of yang1ming/android-harness.

  • SKILL.md
  • .github/ISSUE_TEMPLATE/bug_report.yml
  • .github/ISSUE_TEMPLATE/feature_request.yml
  • .github/ISSUE_TEMPLATE/safety_boundary.yml
  • .github/pull_request_template.md
  • .github/workflows/ci.yml
  • .github/workflows/release-build.yml
  • .gitignore
  • CHANGELOG.md
  • CONTRIBUTING.md
  • LICENSE
  • Makefile
  • NOTICE.md
  • README.md
  • README.zh.md
  • ROADMAP.md
  • agent-workspace/agent_helpers.py
  • … and 71 more

Open the folder on GitHubat commit fe4a40f

Compare with similar skills

Android next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Android compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Android this skillyang1ming/android-harness175—~259Automated safety check: PassMIT
Phone HarnessShawnPana/phone-harness3.2k—~4.3kAutomated safety check: PassMIT
Mobile QAtloncorp/tlon-apps107—~2.4kAutomated safety check: PassMIT
Debug Receiverstimusus/Shuttle2229—~1.9kAutomated safety check: PassApache-2.0
Debug Bridgegetknit/knit130—~2.2kAutomated safety check: PassGPL-3.0
Capturing Screenshots And Screenrecordskydoves/android-testing-skills333—~3.7kAutomated safety check: PassApache-2.0

Similar skills

  • Phone Harness

    ShawnPana/phone-harness

    Control the user's phone — an iPhone through the Mac's iPhone Mirroring window, an Android over adb, or a rented cloud Android: open apps, tap, type, swipe, read the screen.

    3.2k GitHub stars~4.3k tokensUpdated 9 days ago
    MobileAuto-check passed
  • Mobile QA

    tloncorp/tlon-apps

    Run a mobile QA checklist on a physical Android device over adb for tlon-apps, then triage what fails into fixes.

    107 GitHub stars~2.4k tokensUpdated today
    MobileAuto-check passed
  • Debug Receivers

    timusus/Shuttle2

    Drive the S2 debug build's playback and queue over ADB broadcasts — play the whole library, play/pause, skip, seek, remove a queue item, toggle shuffle/repeat, dump playback state as JSON, reimport…

    229 GitHub stars~1.9k tokensUpdated yesterday
    MobileAuto-check passed
  • Debug Bridge

    getknit/knit

    Drive and verify Knit on a device or emulator through the headless debug bridge (am broadcast to app.getknit.knit.debug.<ACTION, replies as JSON) — send a message on one phone and confirm it landed…

    130 GitHub stars~2.2k tokensUpdated 3 days ago
    MobileAuto-check passed
  • Capturing Screenshots And Screenrecord

    skydoves/android-testing-skills

    A skill your agent uses to capture visual artefacts from a device for test failures, golden image generation, QA repro, and demo videos.

    333 GitHub stars~3.7k tokensUpdated 4 mo ago
    MobileAuto-check passed
  • Android Emulator Skill

    Moustachauve/WLED-Android

    Production-ready scripts for Android app testing, building, and automation.

    169 GitHub starsUsed in 1 repo~911 tokens
    MobileAuto-check passed

Works with

Categories

Questions about Android

What does Android do?

Direct Android device control through ADB. An agent skill from yang1ming/android-harness. Android is an agent skill from yang1ming/android-harness. Direct Android device control through ADB.

When should I use Android?

Android fits situations like: authorized device automation; app interaction.

How do I install Android in Claude Code?

Run `npx skills add yang1ming/android-harness --skill android -a claude-code`. Or copy the skill folder (the yang1ming/android-harness repository) into .claude/skills/android in your project. Claude Code loads it when a task matches its description.

How do I install Android in Codex?

Run `npx skills add yang1ming/android-harness --skill android -a codex`. Or copy the skill folder (the yang1ming/android-harness repository) into .agents/skills/android in your project. Codex loads it when a task matches its description.

Can I use Android in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yang1ming/android-harness --skill android -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/android, .gemini/skills/android, .github/skills/android and .opencode/skills/android in your project.

What does Android need to run?

Going by SKILL.md and its folder, Android needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Android access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Android safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Android use?

Android is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Android use?

About 259 tokens (SKILL.md is roughly 1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Android?

Skills that share tags, products or a category with Android: Phone Harness (ShawnPana/phone-harness, 3.2k stars), Mobile QA (tloncorp/tlon-apps, 107 stars), Debug Receivers (timusus/Shuttle2, 229 stars) and Debug Bridge (getknit/knit, 130 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Android?

yang1ming (a GitHub user) maintains it in yang1ming/android-harness, which has 175 GitHub stars. The repository was last updated on July 21, 2026.

Source: yang1ming/android-harness on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.