Skip to content
Skill

Browser testing with devtools

Lets your coding agent inspect and test live browser pages through Chrome DevTools

Browser testing with devtools 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
122K
Last commit
License
MIT
Listing updated

Similar skills

About Browser testing with devtools

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.

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 (14 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

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

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/addyosmani/agent-skills.git --path skills/browser-testing-with-devtools

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Browser testing with devtools 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.

More from addyosmani/agent-skills

  1. Audits interfaces against WCAG 2.2 AA and guides fixing the violations found

    • Open source
    • 122K GitHub stars
    • Developer tools
  2. Guides designing stable, hard-to-misuse APIs, REST endpoints and module contracts

    • Open source
    • 122K GitHub stars
    • Design and media
  3. Sets up CI/CD quality gates, deployment strategies and rollback plans for agents

    • Open source
    • 122K GitHub stars
    • Developer tools
  4. Guides an agent through multi-axis code review before changes are merged

    • Open source
    • 122K GitHub stars
    • Developer tools
  5. Guides an agent to simplify working code for clarity without changing behavior

    • Open source
    • 122K GitHub stars
    • Developer tools
  6. Turns a project's quality bar into a written, checkable contract for coding agents

    • Open source
    • 122K GitHub stars
    • Developer tools