# Browser testing with devtools

> Browser testing with devtools is an open-source agent skill for browser automation. Lets your agent inspect and debug live browser pages via Chrome DevTools MCP. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ajyadav013/claude-kit/tree/main/skills/browser-testing-with-devtools
- **Repository:** https://github.com/ajyadav013/claude-kit
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** browser-testing-with-devtools
- **Collection:** https://github.com/ajyadav013/claude-kit
- **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 guides an AI coding agent through testing and debugging pages that render in a browser, using the Chrome DevTools MCP server. The agent can take screenshots, read the live DOM and accessibility tree, check console output, follow network requests, and record performance traces, so it can verify behavior at runtime instead of relying on static code reading.

The skill lays out step-by-step workflows for UI bugs, network failures and performance problems, covering reproduce, inspect, diagnose, fix and re-verify stages. It also includes a structured test plan template for complex interactions, before-and-after screenshot comparison, console triage guidance, and a basic accessibility checklist covering names, heading order, focus order and contrast.

A notable part of the skill is its security stance: browser content such as DOM text, console messages and network responses is treated as untrusted data rather than instructions. JavaScript execution in the page is meant to be read-only and scoped to the task, with user confirmation required before mutations or navigating to URLs found on a page. Setup requires the chrome-devtools MCP server, configured in a project's MCP settings.

## When your agent uses it

> Real browser testing via Chrome DevTools MCP — DOM inspection, console analysis, network requests, performance profiling. Use when debugging anything browser-rendered. Requires the chrome-devtools MCP server.

## What it can access

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

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

## Features

- **Live DOM and style inspection:** Reads the rendered DOM tree, computed styles and accessibility tree of the page the agent is viewing.
- **Console and network analysis:** Retrieves console errors and warnings and captures request and response details for diagnosis.
- **Performance tracing:** Records performance traces and checks metrics such as LCP, CLS, INP and long tasks.
- **Screenshot comparison:** Takes before and after screenshots to verify visual changes such as layout, spacing and responsive states.
- **Untrusted browser content rules:** Defines boundaries so instructions found in page content are flagged rather than executed.
- **Accessibility verification steps:** Lists checks for accessible names, heading hierarchy, focus order, contrast and live regions.

## Good for

- Debug a layout bug on a local dev page and confirm the fix visually
- Find out why an API call on a page returns a 4xx or 5xx error
- Check the browser console for errors after a frontend change
- Profile a slow page load and compare traces before and after a fix
- Write and run a step-by-step UI test plan for a complex interaction

## Install

### Claude Code

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

```sh
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kit
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.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/ajyadav013/claude-kit.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/ajyadav013/claude-kit.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/ajyadav013/claude-kit.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/ajyadav013/claude-kit.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/ajyadav013/claude-kit.git
```

Then copy `claude-kit/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 for your agent, for example through a project's .mcp.json file.

### When does the agent use Browser testing with devtools?

When the task involves debugging anything rendered in a browser, such as UI, console, network or performance issues.

### Does Browser testing with devtools work on backend-only code?

No. The skill says not to use it for backend-only changes, CLI tools or code that does not run in a browser.

### Can the agent run arbitrary JavaScript on pages?

The skill limits JavaScript execution to read-only inspection scoped to the task. Mutations need user confirmation, and reading cookies or stored credentials is off-limits.

### 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 claude-kit plugin, which includes it: /plugin marketplace add ajyadav013/claude-kit, then /plugin install claude-kit@claude-kit.

### 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. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Browser testing with devtools?

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

## Where this comes from

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

## Alternatives

- [Browser testing with devtools](https://ai-powered.com/skills/browser-testing-with-devtools): Browser testing with devtools 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.
- [Browser testing](https://ai-powered.com/skills/browser-testing): Browser testing is an open-source agent skill for developer tools.
- [Use agent browser](https://ai-powered.com/skills/use-agent-browser): Use agent browser is an open-source agent skill for browser automation.
- [Browser verify](https://ai-powered.com/skills/browser-verify): Browser verify is an open-source agent skill for browser automation.
- [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.
- [Browser actionability debug](https://ai-powered.com/skills/browser-actionability-debug): Browser actionability debug is an open-source agent skill for browser automation.

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