
Midscene Skills
Skill基于 Midscene.js 视觉识别的跨平台 UI 自动化技能合集:用自然语言操控浏览器、桌面、Android、iOS 与鸿蒙设备,并可搭建 Vitest + Midscene E2E 测试。需自备视觉模型 API Key,Midscene 官方维护。
Midscene Skills
Vision-driven cross-platform automation
- Natural-language driven UI control
- Built on Midscene.js's vision-based automation capabilities — Operates entirely from screenshots, making cross-platform support reliable
- This repository contains Skills for the following platforms:
- Browser (Puppeteer, headless Chrome; also supports CDP connection):
skills/browser - Chrome Bridge (user's own Chrome browser):
skills/chrome-bridge - Desktop (macOS, Windows, Linux):
skills/computer-automation - Android (controlled via ADB):
skills/android-automation - iOS (controlled via WebDriverAgent):
skills/ios-automation - HarmonyOS (controlled via HDC):
skills/harmony-automation - Vitest + Midscene E2E (scaffold, convert, and manage AI-powered E2E tests for Web, Android, iOS):
skills/vitest-midscene-e2e
- Browser (Puppeteer, headless Chrome; also supports CDP connection):
Safety Warning
⚠️ AI-driven UI automation may produce unpredictable results since it can control EVERYTHING on the screen. Please evaluate the risks carefully before use.
Installation
Make sure you have Node.js installed.
Then install the skills:
# General installation
npx skills add web-infra-dev/midscene-skills
# Claude Code
npx skills add web-infra-dev/midscene-skills -a claude-code
# OpenClaw
npx skills add web-infra-dev/midscene-skills -a openclaw
Model Setup
Midscene requires models with strong visual grounding capabilities (accurate UI element localization from screenshots).
Because of this, you need to prepare model access and configuration separately from skill installation.
Make sure these environment variables are available in your system. You can also define them in a .env file in the current directory, and Midscene will load them automatically:
MIDSCENE_MODEL_API_KEY="your-api-key"
MIDSCENE_MODEL_NAME="model-name"
MIDSCENE_MODEL_BASE_URL="https://..."
MIDSCENE_MODEL_FAMILY="family-identifier"
Example: Gemini (Gemini-3-Flash)
MIDSCENE_MODEL_API_KEY="your-google-api-key"
MIDSCENE_MODEL_NAME="gemini-3-flash"
MIDSCENE_MODEL_BASE_URL="https://generativelanguage.googleapis.com/v1beta/openai/"
MIDSCENE_MODEL_FAMILY="gemini"
Example: Qwen3-VL
MIDSCENE_MODEL_API_KEY="your-openrouter-api-key"
MIDSCENE_MODEL_NAME="qwen/qwen3-vl-235b-a22b-instruct"
MIDSCENE_MODEL_BASE_URL="https://openrouter.ai/api/v1"
MIDSCENE_MODEL_FAMILY="qwen3-vl"
Example: Doubao Seed 1.6
MIDSCENE_MODEL_API_KEY="your-doubao-api-key"
MIDSCENE_MODEL_NAME="doubao-seed-1-6-250615"
MIDSCENE_MODEL_BASE_URL="https://ark.cn-beijing.volces.com/api/v3"
MIDSCENE_MODEL_FAMILY="doubao-vision"
Commonly used models: Doubao Seed 1.6, Qwen3-VL, Zhipu GLM-4.6V, Gemini-3-Pro, Gemini-3-Flash.
Model setup docs:
- Midscene model strategy: https://midscenejs.com/model-strategy
- Qwen3-VL: https://midscenejs.com/model-common-config#qwen3-vl
- Gemini-3-Flash: https://midscenejs.com/model-common-config#gemini-3-pro-and-gemini-3-flash
- Doubao Seed 1.6: https://midscenejs.com/model-common-config
Use
In your chatbot or coding agent, you can say:
Use Midscene computer skill to open the Keynote app and create a new presentation.
Use Midscene browser skill to open the Google search page and search for "Midscene".
Issues
For bug reports, feature requests, and discussions, please visit the main Midscene repository: https://github.com/web-infra-dev/midscene/issues
License
MIT
相關資源

Maestro MCP
MCP移动端 UI 测试框架 Maestro 的 CLI 内置 MCP(maestro mcp):让 agent 在 iOS / Android 模拟器、Android 真机或 Chromium 浏览器上查看屏幕、点击、滚动、断言,并编写和运行 YAML 端到端测试流程。需安装 Maestro CLI 与 Java 17+,官方维护。
mobile-dev-inc/maestro16.6k
Maestro
CLI用 YAML 编写 Android、iOS 与 Web 应用的端到端 UI 测试;CLI 内置 MCP 服务器(maestro mcp),编码 agent 可在模拟器上点击、断言并生成测试。需 Java 17+。
mobile-dev-inc/Maestro16.6k
Mobile MCP
MCP让 agent 操作 iOS / Android 的模拟器与真机:优先读取无障碍树,必要时按截图坐标点击,还能滑动、装卸应用、录屏和读取设备日志。本机需装好 Xcode 或 Android 平台工具。
mobile-next/mobile-mcp11k
agent-device
CLICallstack 出品,让编码 agent 通过无障碍快照操作并验证 iOS、Android、鸿蒙与桌面应用:点击、填表、截图、日志与性能采样,内置 MCP 服务器。需 Node.js 22.12+。
callstack/agent-device5.6k
MCP Appium
MCPAppium 官方 MCP 服务:让 agent 在 Android / iOS 模拟器与真机上创建会话、定位元素、点击输入与截图,并生成 Java/TestNG 测试代码。需准备 Android SDK 或 Xcode。
appium/appium-mcp523
agent-browser
Skillagent-browser 浏览器自动化 CLI 的配套技能:引导 agent 加载与已装版本匹配的用法,完成导航、填表、截图与探索式测试,也能操作 Electron 桌面应用。需先安装 agent-browser CLI,Vercel Labs 出品。
vercel-labs/agent-browser54.7k