Skip to content
Skill

Use agent browser

Guides an AI agent through browser automation, screenshots and debugging

Use agent browser is an open-source agent skill for browser automation. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About Use agent browser

This skill sets working discipline for the agent-browser CLI and its MCP tools, which drive Chrome over CDP and operate on accessibility snapshots with element references. It covers installation and doctor checks, the open, snapshot and reference workflow, waiting and viewport rules, and session and namespace isolation so parallel agents do not interfere with each other.

It also lays out fallback paths: Windows launch failures are handled by retrying with no-sandbox, attaching to a manually started Chrome over CDP, or using headless connect, and MCP transport timeouts are triaged by reading state files, probing the CLI and then falling back to direct CDP. Evidence rules require screenshots of target elements in the viewport, screenshots stored in a temp folder with task-based names, and cleanup of ports, processes and profiles after a session ends.

The skill expects the agent-browser CLI installed and a Chromium-based browser available, with Node.js used for a direct CDP fallback. Reference files in the skill folder cover the command cookbook, verification templates and case studies.

When your agent uses it

规范化使用 agent-browser(AI 浏览器自动化 CLI/MCP)完成页面打开、元素交互、截图取证与 Web 调试: 安装与 doctor 诊断、open/snapshot/@ref 工作流、等待与视口策略、Windows 启动失败降级链 (--no-sandbox、CDP 接管、headless 连接)、MCP 传输层故障三岔口分流(只读取证 → CLI 探活 → CDP 兜底)、 四层超时模型、并发会话与 namespace 隔离、浏览器复用与版本核查、截图证据规范与进程收口、 可视化默认(config headed 有头)、仿人指针 --input-mode human、highlight 元素高亮、 tab 聚合(--pin-tab 单窗口多 tab / session=窗口)。 当需要打开网页、浏览器自我验收、视觉验证、E2E 冒烟、前端页面调试、登录态操作、 想让 agent 的浏览器「可见、光标会动、元素高亮、标签聚合」, 或用户提到 agent-browser、agent browser、浏览器自动化、snapshot 截图取证、可视化有头浏览器, 或遇到 MCP 浏览器工具全线超时、agent-browser 连接失败时使用。 Use when driving the agent-browser CLI/MCP for browser acceptance, visual verification, headed/visible defaults, human-like pointer movement, tab aggregation, web debugging, Windows startup-failure fallbacks, or MCP transport-failure triage.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 11 files (123 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the dev-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add ruan-cat/monorepo
/plugin install dev-skills@ruan-cat-tools

Or copy only this skill to ~/.claude/skills/use-agent-browser:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/use-agent-browser &&
cp -R "$tmp/ai-plugins/dev-skills/skills/use-agent-browser" ~/.claude/skills/use-agent-browser &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/use-agent-browser inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/use-agent-browser to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/use-agent-browser &&
cp -R "$tmp/ai-plugins/dev-skills/skills/use-agent-browser" ~/.agents/skills/use-agent-browser &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/use-agent-browser inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/use-agent-browser to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/use-agent-browser &&
cp -R "$tmp/ai-plugins/dev-skills/skills/use-agent-browser" ~/.cursor/skills/use-agent-browser &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/use-agent-browser inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/ruan-cat/monorepo.git --path ai-plugins/dev-skills/skills/use-agent-browser

Or copy the folder to ~/.gemini/skills/use-agent-browser yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/use-agent-browser:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/use-agent-browser &&
cp -R "$tmp/ai-plugins/dev-skills/skills/use-agent-browser" ~/.copilot/skills/use-agent-browser &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/use-agent-browser inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/ruan-cat/monorepo.git

Then copy monorepo/ai-plugins/dev-skills/skills/use-agent-browser into your agent's skills folder as use-agent-browser. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Setup and health checks
Covers installing agent-browser, running doctor diagnostics and checking the minimum version before acceptance work.
Snapshot-driven interaction
Explains the open, snapshot and element reference workflow for clicking, filling and reading pages.
Windows launch fallbacks
Lists a degradation chain for startup failures, including no-sandbox, CDP attach and headless connection.
Transport failure triage
Provides a decision order for MCP timeouts that checks state files, probes the CLI and then falls back to CDP.
Session and namespace isolation
Shows how to keep concurrent agent sessions separate and avoid sharing the default session.
Screenshot evidence rules
Sets standards for viewport screenshots, temp file naming and recording production acceptance details.

Good for

  • Open a local dev server page and check that it renders correctly
  • Run an end-to-end smoke test on a web app with screenshots
  • Debug a frontend page by reading console output and network requests
  • Take a screenshot of a specific element after scrolling it into view
  • Recover browser automation when Windows Chrome fails to launch

Use agent browser FAQ

Does Use agent browser need any scripts or extra files installed?

It is a documentation-only skill with no bundled scripts. It relies on the agent-browser CLI being installed, and it points to its own reference files for detailed command recipes.

Where should screenshots be saved?

By default screenshots go to the system temp directory with a task prefix and source label, not into the repository. Versioned evidence needs user confirmation first.

Does the skill tell the agent to avoid parallel sessions sharing one browser?

Yes. It requires using a named session or namespace for concurrent work so that the shared default session is not used by multiple agents at once.

How do I install Use agent browser in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/use-agent-browser to use it in all your projects, or to .claude/skills/use-agent-browser in one project. Or install the dev-skills plugin, which includes it: /plugin marketplace add ruan-cat/monorepo, then /plugin install dev-skills@ruan-cat-tools.

Does Use agent browser run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Use agent browser?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Use agent browser?

The closest alternatives to Use agent browser are Agent browser, Agent browser, Agent browser, Agent browser and Browser testing with devtools.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from ruan-cat/monorepo

  1. Works through an OpenSpec change's task list, implementing and checking off each task

    • Open source
    • 5 GitHub stars
    • Developer tools
  2. Finalizes a completed OpenSpec change, syncing its specs and moving it to the archive

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Generates all OpenSpec planning artifacts for a change in one pass

    • Open source
    • 5 GitHub stars
    • Developer tools
  4. Starts a new OpenSpec change and shows its first artifact template for review

    • Open source
    • 5 GitHub stars
    • Developer tools
  5. Checks and normalizes package.json, tsup and tsconfig setup for monorepo Node packages

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Turns incident reports and repeated failures into durable, verifiable agent skill rules

    • Open source
    • 5 GitHub stars
    • Developer tools