web-infra-dev avatar

Android Device Automation

If you need to automate Android UI testing but don't have access to the DOM or accessibility tree, this handles it with computer vision instead. It works directly from screenshots, which means you can test apps where traditional automation tools can't hook in, or where the UI hierarchy is a mess. The approach is straightforward: you tell it what to do, it looks at the screen, finds the elements visually, and interacts with them. It's from the Midscene project (223 stars, 1.6K installs), so there's some community validation. The tradeoff is obvious: vision-based automation is inherently less precise than DOM-based, but when you literally can't access the structure, this gives you an option that actually works.

skills.sh installs
5.5K
GitHub stars
321
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/web-infra-dev/midscene-skills
Categories
Frontend Development, Testing & QA, DevOps & CI/CD, Automation & Workflows, Mobile Development, Design & UI/UX, CLI & Terminal
First seen
Apr 16, 2026

More from web-infra-dev/midscene-skills

All 8
1max-sixty avatarworktrunkmax-sixty/worktrunkGuidance for Worktrunk (the `wt` CLI) — git worktree management, hooks, and config. Load when editing .config/wt.toml or ~/.config/worktrunk/config.toml; adding5.5Kskills.sh installs
2ghostsecurity avatarghost-scan-codeghostsecurity/skillsGhost Security - SAST code scanner. Finds security vulnerabilities in source code by planning and executing targeted scans for issues like SQL injection, XSS, B5.5Kskills.sh installs
3wondelai avatarscorecard-marketingwondelai/skillsBuild quiz and assessment funnels that generate qualified leads at 30-50% conversion. Use when the user mentions "quiz funnel", "scorecard", "lead magnet", "sco5.5Kskills.sh installs
4affaan-m avataragent-sortaffaan-m/eccBuild an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel5.5Kskills.sh installs
5affaan-m avatarrepo-scanaffaan-m/eccCross-stack source code asset audit — classifies every file, detects embedded third-party libraries, and delivers actionable four-level verdicts per module with5.5Kskills.sh installs
6affaan-m avatarnutrient-document-processingaffaan-m/eccProcess, convert, OCR, extract, redact, sign, and fill documents using the Nutrient DWS API. Works with PDFs, DOCX, XLSX, PPTX, HTML, and images.5.4Kskills.sh installs