# Browser

> Browser is an open-source agent skill for browser automation. Lets your agent drive a browser: open pages, read elements, fill forms and capture results. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/richardgill/nix/tree/main/built/ai-agents/ampcode/skills/browser
- **Repository:** https://github.com/richardgill/nix
- **GitHub stars:** 39
- **License:** MIT
- **Skill name:** browser
- **Collection:** https://github.com/richardgill/nix
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/richardgill/nix/tree/HEAD/built/ai-agents/ampcode/skills/browser)
- [License: MIT](https://github.com/richardgill/nix/tree/HEAD/built/ai-agents/ampcode/skills/browser)

## Features

- **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

## Install

### Claude Code

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Agent browser](https://ai-powered.com/skills/agent-browser-chachamaru127-2): Agent browser is an open-source agent skill for browser automation.
- [Agent browser](https://ai-powered.com/skills/agent-browser-melandlabs): Agent browser is an open-source agent skill for browser automation.
- [Agent browser](https://ai-powered.com/skills/agent-browser-maxwell2732): Agent browser is an open-source agent skill for browser automation.
- [Agent browser](https://ai-powered.com/skills/agent-browser-scaledockhq): Agent browser is an open-source agent skill for browser automation.
- [Browser use](https://ai-powered.com/skills/browser-use-kripu77): Browser use is an open-source agent skill for developer tools.
- [Webapp testing](https://ai-powered.com/skills/webapp-testing-github): Webapp testing is an open-source agent skill for browser automation.
- [Puppeteer skill](https://ai-powered.com/skills/puppeteer-skill): Puppeteer skill is an open-source agent skill for browser automation.
- [Chrome devtools](https://ai-powered.com/skills/chrome-devtools): Chrome devtools is an open-source agent skill for browser automation.

---
Source: https://ai-powered.com/skills/browser-richardgill
