
Harmonyos Device Automation
Vision-driven HarmonyOS NEXT automation via Midscene and HDC, operating purely from screenshots and natural language.
- skills.sh installs
- 2.4K
- GitHub stars
- 325
- last updated
- Aug 21, 2026
What it does
- Covers device connection, app or URL launch, screenshots, raw
hdc shellcommands, and natural-languageactandassertsteps - Includes
connect,launch,runhdcshell,take_screenshot,act, andassertcommands, with optional--imagereference checks onassert - Requires a visually grounded model configured through
MIDSCENE_MODEL_*variables and HDC installed or set viaHDC_HOME - Designed for QA and visual verification of HarmonyOS apps on phones and tablets, running one command at a time
Install
$ npx -y skills add web-infra-dev/midscene-skills --skill harmonyos-device-automation -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
HarmonyOS Device Automation
CRITICAL RULES — VIOLATIONS WILL BREAK THE WORKFLOW:
- 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.
- 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.
- 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
actcommands may need even longer.
Automate HarmonyOS NEXT devices using npx -y @midscene/harmony@1. Each CLI command maps directly to an MCP tool — you (the AI agent) act as the brain, deciding which actions to take based on screenshots.
What act Can Do
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 7Similar to Harmonyos Device Automation
More Mobile Apps
ios-device-automationSkillweb-infra-dev/midscene-skills3.2K installsVision-driven iOS automation via Midscene CLI, operating from screenshots without DOM or accessibility labels.
android-device-automationSkillweb-infra-dev/midscene-skills5.6K installsVision-driven Android automation that runs from screenshots alone, using natural language commands over ADB.
Mobile McpMCP servermobile-next10.8K starsAutomates iOS and Android simulators, emulators, and real devices through accessibility trees and screenshots.
phonedriverMCP serverhridaya423344 starsLets an AI agent see and control Android phones and iOS simulators through numbered screen snapshots.
electronSkillvercel-labs/agent-browser16.8K installsAutomate Electron desktop apps by connecting agent-browser to their Chrome DevTools Protocol port.
open-autoglm-phone-agentSkillreason-machines/trending-skills1.3K installsOpen-AutoGLM is an AI phone agent framework that drives Android, HarmonyOS, and iOS devices from natural language.