skills/visual-validate/SKILL.md
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 finishes a UI change. Don't use for unit tests (use `tdd`), E2E user flows (use `e2e`), or backend changes.
npx skillsauth add helderberto/skills visual-validateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
echo "Check via tool availability at runtime"git branch --show-currentgit diff --name-only HEAD~1 -- '*.jsx' '*.tsx' '*.html' '*.css' 2>/dev/null | head -20At the start of the workflow, detect which MCP is available:
chrome-devtools MCP tools (mcp__chrome-devtools__*)playwright MCP tools (mcp__playwright__* or similar namespacing)chrome-devtools or playwright MCP server to use this skill."State the detected MCP at the start: "Using chrome-devtools MCP for visual validation."
http://localhost:3000 if a Next.js/Vite project is detected; otherwise ask).new_page → navigate_pageclick, fill, hover, press_key, resize_pagewait_for or equivalent).list_console_messages and list_network_requests.lighthouse_audit (chrome-devtools) if available.## 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
close_page) to free resourcesIf both are installed, this skill defaults to chrome-devtools for the richer audit surface. Override by stating "use playwright" in the user prompt.
testing
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
documentation
Compact the current conversation into a handoff doc so a fresh agent can continue the work. Use when user asks to "handoff", "/handoff", "hand this off", or wants to end a session mid-task. Don't use for summarising completed work, writing PRDs/plans/ADRs, or committing changes.
development
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill, or asks "make a skill for X".
development
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.