Skip to content
Skill

Browser

Lets your agent drive a browser: open pages, read elements, fill forms and capture results

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
39
Last commit
License
MIT
Listing updated

Similar skills

About Browser

This skill teaches the agent to operate a headless or headed browser through the agent-browser command-line tool. It keeps page state between commands, so the agent can open a page, take an accessibility snapshot that lists interactive elements with reference IDs, then click, type, select or upload against those references. After navigation or large DOM changes, the workflow calls for a fresh snapshot before acting again.

Beyond clicking and typing, the reference covers reading text, attributes, values and URLs, checking visibility and state, waiting for text, URLs or network idle, handling tabs, frames and dialogs, and running JavaScript. It also documents saving and loading login state so a session can be reused, named parallel sessions, screenshots, PDFs and video recording, and debugging aids such as console output, page errors and traces. A separate request-capture companion tool is described for recording the network traffic caused by browser actions.

The skill expects the agent-browser CLI to be installed and available in the shell. Output can be requested as JSON for parsing. The instructions are written as shell commands, so the agent needs permission to run them.

When your agent uses it

Browser automation with persistent page state. Use when the assistant needs to inspect, automate, or interact with a page: click, fill, login, scrape, extract data, test UI, take screenshots, or report what is visible. Do not use this skill for plain link opening; use `open <url>` instead. Trigger phrases include "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website", "log into", "inspect this page", or any browser interaction request.

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 1 file (9 KB) on GitHub on 3 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

Copy the skill folder to ~/.claude/skills/browser to use it in all your projects:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/browser &&
cp -R "$tmp/built/ai-agents/ampcode/skills/browser" ~/.claude/skills/browser &&
rm -rf "$tmp"

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

Claude Code docs on skills

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

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/browser &&
cp -R "$tmp/built/ai-agents/ampcode/skills/browser" ~/.agents/skills/browser &&
rm -rf "$tmp"

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

Codex docs on skills

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

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/browser &&
cp -R "$tmp/built/ai-agents/ampcode/skills/browser" ~/.cursor/skills/browser &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/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/richardgill/nix.git --path built/ai-agents/ampcode/skills/browser

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

Gemini CLI docs on skills

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

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/richardgill/nix.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/browser &&
cp -R "$tmp/built/ai-agents/ampcode/skills/browser" ~/.copilot/skills/browser &&
rm -rf "$tmp"

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

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/richardgill/nix.git

Then copy nix/built/ai-agents/ampcode/skills/browser into your agent's skills folder as browser. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Page snapshots with refs
Lists interactive elements with reference IDs so the agent can act on them precisely.
Form and element interaction
Covers clicking, typing, filling, selecting, checking, dragging and uploading files.
Saved login state
Saves cookies and storage to a file so later sessions can reuse an authenticated browser.
Screenshots and recordings
Captures page screenshots, PDFs and video recordings of browser sessions.
Waits and assertions
Waits for elements, text, URLs or network idle and checks visibility and state.
Network and debugging tools
Intercepts or mocks requests and exposes console output, errors and traces.

Good for

  • Log into a website and save the session for later use
  • Fill out and submit a web form, then confirm the result
  • Scrape text or data from a page into structured output
  • Take a screenshot of a page or record a short demo video
  • Test whether a UI element is visible and enabled
  • Inspect console errors and network requests while a page loads

Browser FAQ

What does the skill need to run?

It relies on the agent-browser command-line tool being available in the shell, and the instructions are written as shell commands.

When does the agent use Browser?

When a task involves inspecting, automating or interacting with a page, such as clicking, filling forms, scraping or taking screenshots. It says not to use it for simply opening a link.

Can Browser keep login sessions between runs?

Yes. The workflow shows saving browser state to a file and loading it in later sessions.

Can it run several browsers at once?

Yes, named sessions are supported so separate browsers can run in parallel.

How do I install Browser in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/browser to use it in all your projects, or to .claude/skills/browser in one project.

Does 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 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 Browser?

The closest alternatives to Browser are Agent browser, Agent browser, Agent browser, Agent browser and Browser use.

Where this comes from

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

More from richardgill/nix

  1. Updates NixOS flake.lock to newest input commits without changing the release

    • Open source
    • 39 GitHub stars
    • Developer tools
  2. Guides an agent through upgrading a NixOS flake to a new stable release

    • Open source
    • 39 GitHub stars
    • Developer tools
  3. Proposes short, durable additions to AGENTS.md and CLAUDE.md files after a lesson is

    • Open source
    • 39 GitHub stars
    • Developer tools
  4. Builds a JSON-driven guided code tour and opens it in your running Neovim

    • Open source
    • 39 GitHub stars
    • Developer tools
  5. Shows all uncommitted git changes, staged, unstaged and untracked, in one view

    • Open source
    • 39 GitHub stars
    • Developer tools
  6. Guides an agent through creating, editing, syncing and merging stacked GitHub pull

    • Open source
    • 39 GitHub stars
    • Developer tools