
Chrome Automation
Wire your coding agent to real Chrome via CDP so it can open pages, click, and scrape without a separate headless-only stack.
Install
npx skills add https://github.com/zc277584121/marketing-skills --skill chrome-automationWhat is this skill?
- Global or npx install for agent-browser with version verification
- Two Chrome remote-debug paths: chrome://inspect UI toggle (136+) or --remote-debugging-port=9222
- Auto-connect on default port 9222 via agent-browser --auto-connect
- Explicit CDP endpoint when Chrome listens on a non-default host or port
- Notes Chrome 136+ profile restrictions and --user-data-dir workaround for CLI launch
Adoption & trust: 859 installs on skills.sh; 1/3 security scanners passed (skills.sh audits).
Recommended Skills
Lark Drivelarksuite/cli
Lark Sharedlarksuite/cli
Lark Minuteslarksuite/cli
Tzstxixu-me/skills
Runcomfy Cliagentspace-so/runcomfy-agent-skills
Caveman Helpjuliusbrussee/caveman
Journey fit
Primary fit
Browser control is agent infrastructure you set up while building automated workflows, not a launch or growth tactic. agent-tooling is the shelf for skills that connect Claude/Cursor-style agents to external runtimes like Chrome DevTools Protocol.
Common Questions / FAQ
Is Chrome Automation safe to install?
skills.sh reports 1 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Chrome Automation
# agent-browser CLI — Setup Guide This guide covers installing agent-browser and connecting it to your Chrome browser. --- ## Installation ```bash npm install -g agent-browser ``` Or use npx without installing globally: ```bash npx agent-browser --help ``` Verify installation: ```bash agent-browser --version ``` --- ## Enabling Remote Debugging in Chrome agent-browser connects to your real Chrome via the Chrome DevTools Protocol (CDP). You need to enable remote debugging first. ### Option A: Via Chrome UI (Chrome 136+, recommended) 1. Open Chrome normally 2. Go to `chrome://inspect/#remote-debugging` 3. Enable **"Allow remote debugging for this browser instance"** 4. Wait until status shows **"Server running at: 127.0.0.1:9222"** ### Option B: Via Command Line ```bash # macOS /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 # Linux google-chrome --remote-debugging-port=9222 # Windows "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 ``` > **Note**: Chrome 136+ blocks `--remote-debugging-port` with the default profile. Use the UI toggle (Option A) instead, or add `--user-data-dir=/tmp/chrome-debug` when using the CLI approach. --- ## Connecting agent-browser to Chrome ### Auto-connect (recommended) ```bash agent-browser --auto-connect open https://example.com ``` This auto-discovers a Chrome instance with remote debugging enabled on the default port (9222). ### Explicit CDP port ```bash agent-browser --cdp 9222 open https://example.com ``` --- ## Verifying the Connection ```bash # List all open tabs — if this works, you're connected agent-browser --auto-connect tab ``` --- ## Troubleshooting ### Connection refused / timeout - Chrome's remote debugging is not enabled, or is using a different port - Ensure Chrome is running with remote debugging enabled (see above) - Check that no firewall is blocking port 9222 ### `snapshot -i` returns empty - The page may be loading — try `agent-browser --auto-connect wait --load networkidle` first - The page may render content inside iframes — see the skill's iframe section ### `fill` does not work - The target element may be a `contenteditable` div (rich text editor) rather than a standard input - Use `keyboard inserttext "text"` instead # Dev.to — Platform Reference Background knowledge for automating Dev.to (DEV Community) tasks via agent-browser. --- ## Page Structure ### Home Feed (`dev.to/`) Dev.to is a Forem-based Ruby on Rails application. The page structure is straightforward HTML with minimal JavaScript framework overhead. - **Top navigation bar**: - `link "DEV Community Home"` — logo/home link - `textbox "Search..."` — search box + `button "Search"` - `link "Create Post"` — navigate to post editor - `link "Notifications"` — notification center - `button "Navigation menu"` — hamburger menu (profile/settings) - **Left sidebar**: - `link "Home"`, `link "DEV++"`, `link "Reading List"`, `link "Videos"` - `link "DEV Education Tracks"`, `link "DEV Challenges"`, `link "DEV Help"` - `link "Advertise on DEV"`, `link "Organization Accounts"`, `link "DEV Showcase"` - `link "About"`, `link "Contact"`, `link "Forem Shop"` - Social links: Twitter, Facebook, Github, Instagram, Twitch, Mastodon, Bluesky - `link "Customize tag priority"` — customize feed algorithm - Partner links: Google AI, Neon, Algolia - **Feed area**: - `textbox "What's on your mind?"` — quick post prompt (links to editor) - Feed tabs: `link "Discover"` / `link "Following"` - `button "Toggle dropdown menu"` — feed sort options - **Article cards**: Each is a simple `link` with title and comment count, e.g.: - `link "I Run a Solo Company with AI Agent Departments 8 comments"` - Cards also contain tag links like `link "#discuss"`, `link "#ai"` - **Right sidebar**: - Active discussions list with links - Sponsor/partner content - Listings ### Article Detail Page (`dev