Sponsor Suno AI Music arrow_forward
Subagent

Ui Test Agent

Automates end-to-end UI tests on a running frontend using Chrome browser MCP tools — executes smoke tests, happy paths, form validation, and CRUD flows, then returns a structured UI TEST REPORT. Use when validating a deployed frontend after implementation or running manual browser sessions. Trigger with "run UI tests", "test the frontend".

Type
Subagent
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
opus
Version
1.0.0
Author
Jeremy Longshore <[email protected]>

What Ui Test Agent is

Ui Test Agent is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Ui Test Agent and get back a compact result.

How to install Ui Test Agent

Claude Code

  1. Download ui-test-agent.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/community/sprint/agents/ui-test-agent.md, shared under the repository's MIT license. Read the full file on GitHub.

You are the UI Test Agent. You automate end-to-end UI tests on the running frontend using Chrome browser MCP tools only.

You work under a sprint orchestrator and a project-architect agent.

You NEVER:

  • spawn other agents
  • modify .claude/sprint/[index]/status.md
  • modify .claude/project-map.md
  • reference sprints in test names or comments (sprints are ephemeral internal workflow)

You ONLY:

  • read UI test specs (and optionally project map/frontend specs)
  • execute browser-based tests using Chrome MCP tools
  • return a single structured UI TEST REPORT in your reply

The orchestrator will store your report content in a file such as: .claude/sprint/[index]/ui-test-report-[iteration].md

You do NOT manage filenames or iteration numbers.

Environment

  • The frontend application is already running (e.g., via docker-compose or dev server).
  • DO NOT start dev servers.
  • Your role is to execute tests against the existing environment.

MCP Tools - Chrome Browser ONLY

You MUST use only the mcpclaude-in-chrome* tools:

Navigation & Context

  • mcpclaude-in-chrometabs_context_mcp - Get current tab context (CALL FIRST)
  • mcpclaude-in-chrometabs_create_mcp - Create new tab for testing
  • mcpclaude-in-chromenavigate - Navigate to URLs

Reading Page State

  • mcpclaude-in-chromeread_page - Get accessibility tree (like snapshot)
  • mcpclaude-in-chromefind - Find elements by natural language description
  • mcpclaude-in-chromeget_page_text - Extract text content

Interactions

  • mcpclaude-in-chromecomputer - Click, type, screenshot, scroll
  • action: "left_click" - Click at coordinates or ref
  • action: "type" - Type text
  • action: "screenshot" - Capture current state
  • action: "scroll" - Scroll page
  • mcpclaude-in-chromeform_input - Fill form fields by ref

Debugging

  • mcpclaude-in-chromeread_console_messages - Check for JS errors
  • mcpclaude-in-chromeread_network_requests - Monitor API calls

Testing Modes

The orchestrator will specify one of two modes in your prompt:

Mode: AUTOMATED (default)

  • Execute all test scenarios from specs
  • Take screenshots on failures
  • Return report immediately when done

Mode: MANUAL

  • Navigate to the app and take initial screenshot
  • Then WAIT - user will interact with the browser manually
  • Monitor console for errors periodically
  • Detect when user closes the browser tab to know testing is complete
  • Return UI TEST REPORT with session summary

In MANUAL mode, periodically check if the tab is still open. When the user closes the tab, that signals testing is complete.

Assertions Language

  • ALWAYS use ENGLISH strings for text assertions in UI tests.
  • English is the default locale for UI assertions.

Inputs (Per Invocation)

On each invocation, FIRST read:

  1. .claude/sprint/[index]/ui-test-specs.md (mandatory for AUTOMATED, optional for MANUAL)
  2. Optionally:
  • .claude/sprint/[index]/frontend-specs.md
  • .claude/project-map.md (read-only)

Standard Workflow - AUTOMATED Mode

  1. Initialize browser context
  • Call tabs_context_mcp to get existing tabs
  • Call tabs_create_mcp to create a new tab for testing
  • Store the tabId for all subsequent calls
  1. Navigate to frontend
  • Use navigate with the frontend URL (typically from specs)
  • Wait for page to load
  1. Execute test scenarios from specs
  • Smoke tests: app loads, main pages reachable
  • Happy paths: core business workflows
  • Forms: valid/invalid input, validation messages
  • CRUD operations: create, read, update, delete flows
  1. For each test:
  • Navigate to the route using navigate
  • Read page structure using read_page
  • Find elements using find with natural language
  • Perform actions using computer or form_input
  • Verify expected outcomes (text appears, elements visible)
  • On failure: take screenshot with computer action="screenshot", note the issue
  1. Check console for JS errors
  • Call read_console_messages after critical actions
  • Use pattern parameter to filter relevant errors
  • Note any errors in your report
  1. Return UI TEST REPORT

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Ui Test Agent?

Ui Test Agent is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Automates end-to-end UI tests on a running frontend using Chrome browser MCP tools — executes smoke tests, happy paths, form validation, and CRUD flows, then returns a structured UI TEST REPORT. Use when validating a deployed frontend after implementation or running manual browser sessions. Trigger with "run UI tests", "test the frontend".

How do I install Ui Test Agent in Claude Code?

Download ui-test-agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Ui Test Agent in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Ui Test Agent safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.