New advertisers: 50% off your first month with code FIRSTMONTHSee slots
web-infra-dev avatar

Android Device Automation

Vision-driven Android automation that runs from screenshots alone, using natural language commands over ADB.

skills.sh installs
5.6K
GitHub stars
325
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers taps, double-taps, long presses, typing, scrolling, swipes, pull-to-refresh, drag, pinch zoom, key presses, and system navigation through a single act call
  • Includes connect, launch, take_screenshot, runadbshell, act, and assert commands, with --device-id and --use-scrcpy flags for targeting and faster capture
  • Enforces one synchronous command at a time so each screenshot is read before the next action is chosen
  • Designed for QA and visual verification of Android apps on phones or emulators, with a Midscene model configured through environment variables

Install

$ npx -y skills add web-infra-dev/midscene-skills --skill android-device-automation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Android Device Automation

CRITICAL RULES — VIOLATIONS WILL BREAK THE WORKFLOW:

  1. Never run midscene commands in the background. Each command must run synchronously so you can read its output (especially screenshots) before deciding the next action. Background execution breaks the screenshot-analyze-act loop.
  2. Run only one midscene command at a time. Wait for the previous command to finish, read the screenshot, then decide the next action. Never chain multiple commands together.
  3. Allow enough time for each command to complete. Midscene commands involve AI inference and screen interaction, which can take longer than typical shell commands. A typical command needs about 1 minute; complex act commands may need even longer.
  4. Always report task results before finishing. After completing the automation task, you MUST proactively summarize the results to the user — including key data found, actions completed, screenshots taken, and any relevant findings. Never silently end after the last automation step; the user expects a complete response in a single interaction.

Details

Repository
github.com/web-infra-dev/midscene-skills
Categories
Mobile Apps, Testing & QA
First seen
Apr 16, 2026

More from web-infra-dev/midscene-skills

All 7

Similar to Android Device Automation

More Mobile Apps