Skill library

Agent skill Review & testing

UI Test

Review the accessibility of visible web interface elements and interactions.

  • Accessibility

Install the skill

Installation method

Run the command from your project root with Node.js and npm.

npx skills@latest add browserbase/skills --skill ui-test --agent claude-code --yes

Check this file in your project.claude/skills/ui-test/SKILL.md

Other ways to install
  • Choose an assistant interactively

    npx skills@latest add browserbase/skills --skill ui-test

    Select your assistant and choose the project installation scope.

    Official instructions

The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. A change diff, a running localhost server, an approved test fixture, the Browse CLI and Chrome or Chromium.

View operation manual

What this skill helps with

  • Review the accessibility of visible web interface elements and interactions.

Good for

  • Accessible interfaces
Task
Test one UI diff with a planned local browser session
Inputs
A change diff, a running localhost server, an approved test fixture, the Browse CLI and Chrome or Chromium.
Output
A scoped report with PASS, FAIL and SKIPPED observations and a screenshot for any visual fault.
Skill name
ui-test

Start from a reproducible real case

A broad request

Browse around and tell me if the new UI is right.

An open-ended run can test unrelated paths and leave missing actions or viewport gaps invisible in its report.

A verifiable workflow

  1. The changed journey, expected outcomes and exact test inputs are known before opening a browser.
  2. A clean managed-local session supplies named controls, observable state and screenshots.
  3. The report points to each action, what actually happened, and what was skipped.

Browserbase UI Test operation manual

A scoped report with PASS, FAIL and SKIPPED observations and a screenshot for any visual fault.

A change diff, a running localhost server, an approved test fixture, the Browse CLI and Chrome or Chromium.

  1. Convert the diff into a bounded checklist

    The changed journey, expected outcomes and exact test inputs are known before opening a browser.

    Prompt · Step 1
    Use Browserbase ui-test on [git diff, localhost URL and fixture]. Apply the installed Skill’s planning rounds to outline the changed task, related states, widths and failure points. Decide which checks can use one local session and which require permission or data that is missing. Give each delegated group exact steps and its limit when supported.
  2. Run the planned local browser checks

    A clean managed-local session supplies named controls, observable state and screenshots.

    Prompt · Step 2
    Execute [approved checklist] against the running local route. Open it with browse open and --local using a named session. Check browse help for the local CLI version and unset project .env loading with BROWSE_LOAD_DOTENV=0 when you need a clean context. Use snapshots and browser interactions for labels, keyboard focus, long content and empty states. Screenshot any failure immediately. Stop the named session when done.
  3. Package outcomes with their supporting evidence

    The report points to each action, what actually happened, and what was skipped.

    Prompt · Step 3
    Create [QA report destination] from the installed Skill’s report-template.html when an artifact is requested. Attach relevant local screenshots and record PASS, FAIL and SKIPPED with exact action and expected result. Group browser widths and state fixtures with the relevant checks. Keep blocked or unexecuted checks explicit.

Look up testing conditions

Use your installed tooling and local evidence.

Do I need a Browserbase API key to test localhost?SKILL.md
Command or reference
browse open --local · browse snapshot · browse stop
Examples
A managed local session uses installed Chrome or Chromium and does not require a Browserbase API key. The hosted session option has a separate API key and account prerequisites.

Troubleshooting and FAQ

Do I need a Browserbase API key to test localhost?

A managed local session uses installed Chrome or Chromium and does not require a Browserbase API key. The hosted session option has a separate API key and account prerequisites.