From iamzhihuix-happy-claude-skills
Automates browser tasks via Chrome DevTools Protocol: launch Chrome, navigate pages, extract DOM, take screenshots, and pick elements interactively.
How this skill is triggered — by the user, by Claude, or both
Slash command
/iamzhihuix-happy-claude-skills:browserThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Minimal CDP tools for collaborative site exploration and scraping.
Minimal CDP tools for collaborative site exploration and scraping.
Credits: Based on Mario Zechner's article What if you don't need MCP?, adapted from Factory.ai.
Before first use, install dependencies:
npm install --prefix skills/browser
./skills/browser/scripts/start.js # Fresh profile
./skills/browser/scripts/start.js --profile # Copy your profile (cookies, logins)
Start Chrome on :9222 with remote debugging.
./skills/browser/scripts/nav.js https://example.com
./skills/browser/scripts/nav.js https://example.com --new
Navigate current tab or open new tab.
./skills/browser/scripts/eval.js 'document.title'
./skills/browser/scripts/eval.js 'document.querySelectorAll("a").length'
Execute JavaScript in active tab (async context).
IMPORTANT: The code must be a single expression or use IIFE for multiple statements:
'document.title''(() => { const x = 1; return x + 1; })()'./skills/browser/scripts/screenshot.js
Screenshot current viewport, returns temp file path.
./skills/browser/scripts/pick.js "Click the submit button"
Interactive element picker. Click to select, Cmd/Ctrl+Click for multi-select, Enter to finish.
start.js --profile to mirror your authenticated state.nav.js https://target.app or open secondary tabs with --new.eval.js for quick counts, attribute checks, or extracting JSON payloads.screenshot.js for visual proof or pick.js when you need precise selectors or text snapshots.--profile flag syncs your actual Chrome profile so you're logged in everywherenpx claudepluginhub iamzhihuix/happy-claude-skillsLaunches Chrome, navigates pages, executes JavaScript, captures screenshots, and picks DOM elements via CDP. Useful for browser automation without MCP server.
Interacts with a live Chrome browser session via the Chrome DevTools Protocol. Reads page content, clicks elements, executes JS, navigates, and takes screenshots. Requires explicit user approval.
Controls Chrome via DevTools Protocol for navigating, clicking, typing, multi-tab management, and content extraction with auto-screenshots.