Intentional changes detected: Button padding increased from 8px to 12px
Unintended regressions: Button outline color changed from gray to blue (unexpected)
Root cause: Removed .button:focus { color: blue } CSS line
Fix: Restore focus color CSS, re-snapshot
Impact: High (focus state critical for accessibility)
1---2name: visual-regression-tester3description: Visual Regression Tester4---5# Visual Regression Tester67## When to activate89User runs `/test-visual-regression` or requests visual regression testing to detect unintended style changes.1011## When NOT to use1213- Responsive design testing (use `/test-responsive` instead)14- Performance profiling (use `/profile-performance` instead)15- Accessibility reviews (use `/review-a11y` instead)1617## Instructions18191. **Establish baseline snapshots**20 - Capture current visual state (Chromatic, Percy, or local snapshots)21 - Generate snapshots for all component variants22 - Store baseline for comparison23 - Document baseline creation date and environment24252. **Implement snapshot capture**26 - Use Storybook addon (Chromatic, Percy) or Jest snapshots27 - Capture at consistent viewport size (1280x1024 standard)28 - Include hover, focus, active states29 - Capture light and dark modes (if supported)30313. **Run visual regression test**32 - Generate new snapshots after code change33 - Compare new snapshots to baseline34 - Identify pixel-level differences35 - Flag unintended changes (colors, spacing, fonts, etc.)36374. **Triage visual changes**38 - **Intentional:** Document approved changes (new design, refactor)39 - **Unintended:** Identify root cause (CSS, component change, dependency update)40 - **Edge cases:** Unexpected rendering in specific browsers/devices41425. **Report findings**43 - Before/after visual comparison44 - List of changed components45 - Impact assessment (user-visible, critical, cosmetic)46 - Root cause analysis for each change47486. **Approve or reject changes**49 - Approve intentional visual changes with justification50 - Reject unintended regressions51 - Require fix before merge52 - Update baseline for approved changes5354## Example5556User: "Check for visual regressions after updating Button styles."5758Response:59- **Changed components:** 3 (Button primary, Button secondary, ButtonGroup)60- **Intentional changes detected:** Button padding increased from 8px to 12px61- **Unintended regressions:** Button outline color changed from gray to blue (unexpected)62- **Root cause:** Removed `.button:focus { color: blue }` CSS line63- **Fix:** Restore focus color CSS, re-snapshot64- **Impact:** High (focus state critical for accessibility)
Run npx skillmds@latest add uitbreidenos/visual-regression-tester in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Visual Regression Tester It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
UitbreidenOS (@uitbreidenos) published this skill. Their other Agent Skills are listed on their SkillMD profile.