All skills
browserbase avatar

/ui-test

@b2ae728 official
by browserbasebrowserbase/skills3.7k stars
240

AI-powered adversarial UI testing via the browse CLI. Analyzes git diffs to test only what changed, or explores the full app to find bugs. Tests functional correctness, accessibility, responsive layout, and UX heuristics. Use when the user asks to test UI changes, QA a pull request, audit accessibility, or run exploratory testing. Supports local browser (localhost) and remote Browserbase (deployed sites).

Use this Skill: https://skilld.dev/gh/browserbase/skills/ui-test

This session only. Nothing lands on disk.

referencesdesign-consistency.md

≈645 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Design Consistency

Check whether changed UI is visually consistent with the rest of the app. This catches "it works but looks wrong" — mismatched spacing, colors, border radii, component styles.

If references/design-system.md exists

The user has documented their design tokens and conventions. Use it as ground truth. (See references/design-system.example.md for the expected format.)

# Read the design system
cat references/design-system.md
# or: cat .claude/skills/ui-test/references/design-system.md

# Then screenshot the changed page and check against documented patterns
browse screenshot
# Compare: does spacing match the grid? Are colors from the palette? Correct font weights?

Flag any deviation from the documented system as a STEP_FAIL:

STEP_FAIL|design-spacing|design system specifies 8px grid → new modal uses 6px gap
STEP_FAIL|design-button|design system: destructive buttons use outline style → new delete button uses filled red

If no design system exists — learn from the app

Before testing the changed page, screenshot 2-3 unchanged pages to establish a baseline:

# Step 1: Capture baseline from existing pages
browse open http://localhost:3000/
browse screenshot
# Note: spacing rhythm, border radii, font sizes, button styles, color palette

browse open http://localhost:3000/settings  # or any other established page
browse screenshot
# Note: same patterns — confirm consistency

# Step 2: Now visit the changed page
browse open http://localhost:3000/changed-page
browse screenshot
# Compare against baseline: does it match the established patterns?

Look for:

  • Spacing rhythm — does the new UI use the same gaps/padding as existing pages?
  • Border radius — rounded-sm vs rounded-md vs rounded-lg consistency
  • Button styles — same primary/secondary/destructive patterns?
  • Typography — same heading sizes, font weights, body text size?
  • Color usage — same palette? Same semantic colors (red=error, green=success)?
  • Component patterns — if other pages use inline confirms, does the new page use a modal instead?

Report as structured findings:

STEP_PASS|design-consistency|new sidebar uses same border-l, bg-white, and shadow pattern as existing sidebar on /sessions
STEP_FAIL|design-inconsistency|existing pages use rounded-lg on cards → new component uses rounded-sm

Design consistency is a visual judgment — the weakest assertion type. Always be specific about what you're comparing (which page, which element, which property).

Source: SKILL.md on GitHub

1 warning16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill provides automated user interface testing scripts and recipes using the `browse` CLI tool. The dependencies and remote script sources specified are well-known and reputable technology entities, and the operations described strictly relate to its core purpose of visual and functional interface verification.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: MEDIUM · 2 issues

  • ZeroLeaks5mo

    2 findings · Score: 80/100

Signed by skilld at b2ae728. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Activeupdated 5 months ago
metadata
{
  "author": "browserbase",
  "version": "0.4.0"
}
All 1 allowed tools
Bash Read Glob Grep Agent
Other metadata
compatibility
Requires the browse CLI (`npm install -g browse`). For remote testing: BROWSERBASE_API_KEY and cookie-sync skill.

README badge

README badge for browserbase/skills/ui-test