# Browser testing with devtools

> Browser testing with devtools is an open-source agent skill for browser automation. Lets your coding agent inspect and test live browser pages through Chrome DevTools. 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/addyosmani/agent-skills/tree/main/skills/browser-testing-with-devtools
- **Repository:** https://github.com/addyosmani/agent-skills
- **GitHub stars:** 122,283
- **License:** MIT
- **Skill name:** browser-testing-with-devtools
- **Collection:** https://github.com/addyosmani/agent-skills
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill teaches an AI coding agent to work with a running page through the Chrome DevTools MCP server. Instead of reasoning only from source files, the agent can open a page, take screenshots, read the DOM and accessibility tree, pull console output, and record network traffic and performance traces to confirm what actually happens at runtime.

The skill lays out repeatable workflows for common situations: reproducing and fixing UI bugs, tracing failed or slow API calls, and measuring Core Web Vitals before and after a change. It also includes a template for writing a structured browser test plan and a checklist for verifying accessibility, such as heading order, focus order and contrast.

Setup is done in an MCP configuration file that launches the chrome-devtools-mcp server, with an isolated profile recommended by default. The guidance also sets strict rules on how the agent treats page content as untrusted data and limits when it may run JavaScript in the page or attach to a logged-in browser profile.

## When your agent uses it

> Tests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured.

## What it can access

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

- [Instructions only, no scripts](https://github.com/addyosmani/agent-skills/tree/HEAD/skills/browser-testing-with-devtools)
- [License: MIT](https://github.com/addyosmani/agent-skills/tree/HEAD/skills/browser-testing-with-devtools)

## Features

- **Live page inspection:** Gives the agent screenshots, DOM reads, computed styles and accessibility tree access for a running page.
- **Console and network diagnosis:** Walks through reading console errors and warnings and classifying failed or misbehaving network requests.
- **Performance profiling workflow:** Records traces and checks LCP, CLS, INP and long tasks before and after a fix.
- **Visual regression checks:** Describes comparing before and after screenshots for layout, responsive and state changes.
- **Browser security guardrails:** Sets rules for treating page content as untrusted, limiting JavaScript execution and protecting logged-in sessions.
- **Accessibility verification steps:** Covers checking accessible names, heading hierarchy, focus order, contrast and live regions.

## Good for

- Reproduce a layout bug on localhost and confirm the fix with a screenshot
- Find out why an API call on a page returns an error
- Profile a slow page load and compare traces before and after an optimization
- Check a web form's console output and network payloads after a change
- Audit a page's accessibility tree for unlabeled buttons and heading gaps

## Install

### Claude Code

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

```sh
/plugin marketplace add chrisalehman/bionic
/plugin install agent-skills@bionic
```

Or copy only this skill to `~/.claude/skills/browser-testing-with-devtools`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/browser-testing-with-devtools &&
cp -R "$tmp/skills/browser-testing-with-devtools" ~/.claude/skills/browser-testing-with-devtools &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/browser-testing-with-devtools` inside it instead.

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/browser-testing-with-devtools &&
cp -R "$tmp/skills/browser-testing-with-devtools" ~/.agents/skills/browser-testing-with-devtools &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/browser-testing-with-devtools` inside it instead.

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/browser-testing-with-devtools &&
cp -R "$tmp/skills/browser-testing-with-devtools" ~/.cursor/skills/browser-testing-with-devtools &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/browser-testing-with-devtools` 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/addyosmani/agent-skills.git --path skills/browser-testing-with-devtools
```

Or copy the folder to `~/.gemini/skills/browser-testing-with-devtools` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/addyosmani/agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/browser-testing-with-devtools &&
cp -R "$tmp/skills/browser-testing-with-devtools" ~/.copilot/skills/browser-testing-with-devtools &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/browser-testing-with-devtools` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/addyosmani/agent-skills.git
```

Then copy `agent-skills/skills/browser-testing-with-devtools` into your agent's skills folder as `browser-testing-with-devtools`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Browser testing with devtools need to run?

It requires the chrome-devtools MCP server to be configured, typically through an mcpServers entry that launches chrome-devtools-mcp via npx.

### Which Chrome profile does the agent use?

By default the server uses its own dedicated profile. The skill recommends the --isolated option for most testing and advises against attaching to a real logged-in profile unless it is needed.

### Can the agent run JavaScript on the page?

Yes, but the skill limits this to read-only state inspection by default. Mutations need user confirmation, and reading cookies or tokens or making external requests from the page is not allowed.

### When should the skill trigger?

It is meant for work that runs in a browser, such as building or debugging front-end code. The skill says not to use it for backend-only changes or CLI tools.

### How do I install Browser testing with devtools in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/browser-testing-with-devtools to use it in all your projects, or to .claude/skills/browser-testing-with-devtools in one project. Or install the agent-skills plugin, which includes it: /plugin marketplace add chrisalehman/bionic, then /plugin install agent-skills@bionic.

### Does Browser testing with devtools 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 testing with devtools?

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 testing with devtools?

The closest alternatives to Browser testing with devtools are Chrome devtools, Browser testing, Webapp testing, Browser QA and Web perf.

## Where this comes from

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

## Alternatives

- [Chrome devtools](https://ai-powered.com/skills/chrome-devtools): Chrome devtools is an open-source agent skill for browser automation.
- [Browser testing](https://ai-powered.com/skills/browser-testing): Browser testing 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.
- [Browser QA](https://ai-powered.com/skills/browser-qa): Browser QA is an open-source agent skill for developer tools.
- [Web perf](https://ai-powered.com/skills/web-perf): Web perf is an open-source agent skill for developer tools.
- [Browser verify](https://ai-powered.com/skills/browser-verify): Browser verify 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.
- [Accessibility skill](https://ai-powered.com/skills/accessibility-skill): Accessibility skill is an open-source agent skill for browser automation.

---
Source: https://ai-powered.com/skills/browser-testing-with-devtools
