browser-automation
Vision-driven browser automation using Midscene. Operates from screenshots — no DOM or accessibility labels needed. Runs in headless Puppeteer — does NOT take over the user's mouse or keyboard. Also supports CDP mode and Bridge mode to connect to an existing Chrome. Use this skill when the user wants to: - Browse, navigate, or open web pages - Scrape, extract, or collect data from websites - Fill out forms, click buttons, or interact with web elements - Verify, validate, test, or QA frontend U
Security Assessment
Detected risks:
About browser-automation
The browser-automation skill provides vision-driven automation for web browsers using Midscene.js. Unlike traditional browser automation that relies on DOM elements or accessibility labels, this skill operates directly from screenshots, allowing it to interact with web pages without any prior structural knowledge. It executes commands in a headless Puppeteer environment by default, ensuring that the user's mouse and keyboard remain unaffected. Additionally, it supports CDP mode and Bridge mode, enabling connections to existing Chrome instances for tasks that require login persistence or direct control of a user's browser. This skill addresses the challenges of automating complex web interactions while maintaining a seamless and non-intrusive execution.
FAQ
What can I automate with this skill?
You can automate browsing, navigation, data scraping, form filling, button clicking, UI testing, screenshot capturing, and multi-step web workflows. The skill can also connect to existing Chrome instances via CDP or Bridge mode for tasks that require login states.
Does this skill require my browser to be open?
No, by default it launches a headless Chrome via Puppeteer, which operates independently of your browser. Only CDP or Bridge modes connect to your existing Chrome session if specified.
Are there any limitations or prerequisites?
Commands must be executed synchronously, one at a time, and allowed sufficient time to complete. For CDP mode, remote debugging must be enabled in Chrome. Bridge mode requires the Midscene Chrome Extension. Tasks can take longer than typical shell commands due to AI inference and screen interactions.
Which mode should I use for my task?
Use Puppeteer (default) for isolated headless automation, CDP mode to connect to your Chrome with preserved login sessions, and Bridge mode if the Midscene Chrome Extension is installed. CDP mode is preferred if no specific mode is mentioned.
Can it interact with touch-based pages?
Yes, when touch input is enabled, the skill can perform swipe- and pinch-style interactions in addition to standard mouse and keyboard actions.
Install browser-automation
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
web-infra-dev/midscene-skills