# Browser testing

> Browser testing is an open-source agent skill for developer tools. Guides an agent to capture live browser console, network and page state for tests. 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/JasGujral/mokata-oss/tree/main/src/mokata/skills/browser-testing
- **Repository:** https://github.com/jasgujral/mokata-oss
- **GitHub stars:** 19
- **License:** Apache-2.0
- **Skill name:** browser-testing
- **Collection:** https://github.com/JasGujral/mokata-oss
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill frames browser work as runtime evidence: behaviour that only shows up in a running page, such as console errors, failed requests or state reached after a click, is exercised during the test phase rather than inferred from source. It directs the agent to read that signal through a browser-automation MCP server the session already has connected, and it states that it adds no new server. Captured output is treated as untrusted data to assert on or surface, not as instructions to follow.

The skill also covers debugging. When a failure only reproduces in a browser, the agent is pointed to the live console, network and DOM state instead of guessing from the symptom. It references the Chrome DevTools panels, the Chrome DevTools Protocol and the W3C WebDriver specification as the underlying standards, and a reference file gathers those sources with links. Exact tool names depend on the connected server and are not specified by the skill.

The skill ships as Markdown only, with no scripts. It expects a browser-automation MCP server to be connected; without one, the run falls back to a manual, stated-conditions check. Recorded run results go through the mokata pipeline's human approval step.

## When your agent uses it

> mokata · Browser testing (DevTools) — live runtime captured via the existing MCP surface, fed to the test gate.

## What it can access

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

- [Instructions only, no scripts](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/browser-testing)
- [License: Apache-2.0](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/browser-testing)

## Features

- **Live runtime signal capture:** Reads console messages, network requests and rendered page state from the browser through the connected MCP tools.
- **Runtime-based test assertions:** Asserts on what the browser showed, such as a clean console, expected requests or the reached UI state.
- **Browser failure debugging:** Investigates bugs that only reproduce in a running page by inspecting live console, network and DOM data.
- **Untrusted browser output handling:** Treats page and log text as data to surface rather than instructions to obey, guarding against injected prompts.
- **DevTools and WebDriver references:** Points to Chrome DevTools, the DevTools Protocol and W3C WebDriver documentation for the underlying capabilities.

## Good for

- Check the browser console for errors after a login flow
- Find out why a button click fails to update the page
- Confirm that a form submission sends the expected network request
- Debug a rendering bug that appears only after scrolling
- Add an end-to-end assertion for the final page state

## Install

### Claude Code

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

```sh
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostack
```

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

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/browser-testing` 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/JasGujral/mokata-oss.git --path src/mokata/skills/browser-testing
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git
```

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

## FAQ

### Does Browser testing install a new browser automation server?

No. It uses the browser-automation MCP surface already connected to the session and explicitly adds no new server.

### When does the skill engage?

When work touches an end-to-end or browser test, a page's runtime behaviour, a DevTools-observable surface, or a failure that only reproduces in a running browser. It does not engage for pure unit-test or backend changes with no browser runtime.

### What happens if no browser MCP server is connected?

The skill says the run degrades to a manual check under stated conditions instead of automated capture.

### Are scripts or extra files included?

No scripts are included. The skill has a SKILL.md and one reference file that lists the DevTools, protocol and WebDriver sources.

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

Copy the skill folder from GitHub to ~/.claude/skills/browser-testing to use it in all your projects, or to .claude/skills/browser-testing in one project. Or install the mokata plugin, which includes it: /plugin marketplace add JasGujral/mokata-oss, then /plugin install mokata@mostack.

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

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?

The closest alternatives to Browser testing are Chrome devtools, Browser QA, Webapp testing, Capybara skill and Browserstack migration skill.

## 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 QA](https://ai-powered.com/skills/browser-qa): Browser QA 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.
- [Capybara skill](https://ai-powered.com/skills/capybara-skill): Capybara skill is an open-source agent skill for developer tools.
- [Browserstack migration skill](https://ai-powered.com/skills/browserstack-migration-skill): Browserstack migration skill is an open-source agent skill for browser automation.
- [Playwright skill](https://ai-powered.com/skills/playwright-skill): Playwright skill is an open-source agent skill for browser automation.
- [Selenium skill](https://ai-powered.com/skills/selenium-skill): Selenium skill is an open-source agent skill for browser automation.
- [Web perf](https://ai-powered.com/skills/web-perf): Web perf is an open-source agent skill for developer tools.

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