d-wwei/browser-control-skill/browse
Claude Code and agent skill by d-wwei/browser-control-skill
- community
Checking that the SKILL.md file is still in the repository.
Browser control with mode routing. /browse = auto-detect, /browse here = foreground (operate on the page user is looking at), /browse bg = background (CDP, no user disruption). Supports parallel sub-agent dispatch in bg mode.
Install
npx vskill@latest install d-wwei/browser-control-skill/browseSKILL.md
/browse — Browser Control Router
Usage
Mode Resolution
Parse the first argument. If it is here or bg, use that mode explicitly. Otherwise, auto-detect.
Explicit Modes
`/browse here` — Foreground Mode
- Use macOS AppleScript to operate on the user's current visible page
- Target:
front window→active tab - User can see every action in real time
- Requires: macOS + Chrome + "Allow JavaScript from Apple Events"
- Best for: "帮我在这个页面上..." / "当前页面" / user is watching and supervising
`/browse bg` — Background Mode
- Use CDP Proxy to operate in background tabs
- Agent creates its own tabs, user's tabs are untouched
- User continues browsing normally, zero disruption
- Supports sub-agent parallel dispatch (multiple tabs simultaneously)
- Requires: Node.js 22+ + Chrome remote debugging enabled
- Best for: "帮我去查..." / "同时调研..." / bulk research / parallel tasks
Auto-Detection (/browse without mode)
When no explicit mode is given, infer from context:
On macOS, the default is `here` because:
- Zero setup cost (AppleScript is built-in)
- Most natural UX for single-page operations
- User gets immediate visual feedback
- If AppleScript hits a limitation (value doesn't stick, isTrusted check, file upload), auto-escalate to CDP within the session — no need to restart with
/browse bg
Escalation Within Foreground Mode
When operating in here mode, if a basic AppleScript operation fails:
el.value = "..."doesn't stick (React/Vue) → try React-compatible event dispatch (still AppleScript)- Still fails → auto-escalate: start CDP Proxy, switch to CDP helper for that operation
- Report to user: "AppleScript 基础模式无法完成此操作,已切换到 CDP 增强模式。"
The escalation is per-operation, not per-session. Simple reads can stay on AppleScript even after one operation escalated to CDP.
Execution
After mode resolution, load the full browser-control skill and execute:
- Run platform detection and preflight for the resolved mode
- Follow the browser-control SKILL.md instructions using the resolved mode's commands
- Apply all safety rules (three-layer security) regardless of mode
- In
bgmode: if task has multiple independent targets, consider sub-agent parallel dispatch
Foreground Mode Quick Reference
Background Mode Quick Reference
CDP Helper (Advanced Write Operations, Both Modes)
Full Reference
For complete documentation (DOM-to-Markdown, element indexer, virtual scroll, console/network interception, screenshots, sub-agent dispatch, site experience memory, safety system), see:
skills/browser-control/SKILL.md
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/browse/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 1
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/d-wwei/browser-control-skill/browse)