Skillquality 0.45

visual-validate

Validate UI changes in a real browser using Chrome DevTools or Playwright MCP. Takes screenshots, compares before/after, exercises interactions, captures console errors. Use when user asks to "visual validate", "/hb:visual-validate", "check the UI", "screenshot before/after", or

Price
free
Protocol
skill
Verified
no

What it does

Visual Validate

Drive a real browser via MCP to verify a UI change works as intended. Auto-detects which browser MCP is available (chrome-devtools preferred, playwright fallback). Screenshots, interactions, and console capture confirm the change is real — not just type-checked.

Pre-loaded context

  • Available MCPs: !echo "Check via tool availability at runtime"
  • Branch: !git branch --show-current
  • Last-changed UI files: !git diff --name-only HEAD~1 -- '*.jsx' '*.tsx' '*.html' '*.css' 2>/dev/null | head -20

MCP Auto-Detection

At the start of the workflow, detect which MCP is available:

  1. Check for chrome-devtools MCP tools (mcp__chrome-devtools__*)
  2. If absent, check for playwright MCP tools (mcp__playwright__* or similar namespacing)
  3. If neither → STOP with clear message: "No browser MCP available. Install chrome-devtools or playwright MCP server to use this skill."

State the detected MCP at the start: "Using chrome-devtools MCP for visual validation."

Workflow

Phase 1 — Setup

  1. Confirm the dev server URL with the user (default to http://localhost:3000 if a Next.js/Vite project is detected; otherwise ask).
  2. If the dev server is not running, ask the user to start it. Do NOT start it automatically — port collisions are easy and dev servers are user state.
  3. Open the page via the detected MCP:
    • chrome-devtools: new_pagenavigate_page
    • playwright: equivalent navigate tool

Phase 2 — Capture baseline (before)

  1. Take a "before" screenshot of the relevant page/component. Save reference to it.
  2. Capture the initial console state.
  3. If the user provides a specific element or component to focus on, take an element-scoped screenshot via DOM snapshot.

Phase 3 — Exercise the change

  1. Ask the user what interactions to validate (e.g., "click the toggle", "submit form with X data", "resize to mobile width").
  2. Execute interactions via MCP:
    • chrome-devtools: click, fill, hover, press_key, resize_page
    • playwright: equivalent tools
  3. Wait for any animations / network requests to settle (wait_for or equivalent).

Phase 4 — Capture after

  1. Take "after" screenshot(s).
  2. Capture console messages and any new network errors via list_console_messages and list_network_requests.
  3. Run accessibility audit on the final state via lighthouse_audit (chrome-devtools) if available.

Phase 5 — Report

  1. Present findings in this structure:
## Visual Validation — <feature>

**MCP**: chrome-devtools (or playwright)
**URL**: <url>
**Interactions exercised**: <list>

### Screenshots
- Before: <path or reference>
- After: <path or reference>

### Console
- Errors: <count> — <summary>
- Warnings: <count>

### Network
- Failed requests: <count>
- Slow requests (>1s): <count>

### Accessibility (if lighthouse_audit ran)
- Score: <n>
- Critical issues: <list>

### Verdict
- PASS: change works as intended, no new console errors, no a11y regressions
- FAIL: console errors / a11y regressions / unexpected visual changes — list each issue with screenshot reference

Rules

  • Always auto-detect MCP at the start; never assume one is available
  • Always take before + after screenshots — single screenshot is not a comparison
  • Never start the dev server yourself; ask the user
  • Never modify files during validation; this is read-only browser interaction
  • Always close the browser page at the end (close_page) to free resources
  • Capture console messages even on PASS — silent regressions surface in console first

Error Handling

  • No MCP available → STOP with installation hint (chrome-devtools or playwright MCP server setup)
  • Dev server unreachable → ask user to confirm URL and start the server
  • Navigation timeout (>30s) → report and stop; likely a build error or wrong URL
  • MCP tool errors mid-flow → report which step failed, attempt cleanup (close_page), stop

Choosing chrome-devtools vs playwright

  • chrome-devtools preferred when: you need DevTools-specific features (lighthouse audit, network throttling, performance profiling, memory snapshots)
  • playwright preferred when: you need cross-browser testing (Firefox, Safari/WebKit) or are validating against an existing Playwright test setup

If both are installed, this skill defaults to chrome-devtools for the richer audit surface. Override by stating "use playwright" in the user prompt.

Capabilities

skillsource-helderbertoskill-visual-validatetopic-agent-skillstopic-ai-toolstopic-antigravitytopic-claude-codetopic-cursortopic-developer-toolstopic-gemini-clitopic-markdowntopic-plugintopic-sdlctopic-skillstopic-tracer-bullet

Install

Installnpx skills add helderberto/agent-skills
Transportskills-sh
Protocolskill

Quality

0.45/ 1.00

deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (4,423 chars)

Provenance

Indexed fromgithub
Enriched2026-05-18 19:09:15Z · deterministic:skill-github:v1 · v1
First seen2026-05-18
Last seen2026-05-18

Agent access