Agent skill

Visual Testing Advanced Skill: Baseline Screenshots and Pixel Diffs

The visual-testing-advanced skill has an AI coding agent capture baseline screenshots, diff them against new runs, mask dynamic content and check responsive viewports before a UI change ships.

Install
npm install -g agentic-qe
cd your-project
aqe init --auto
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the visual-testing-advanced skill?

The visual-testing-advanced skill is a SKILL.md in proffesor-for-testing/agentic-qe for visual regression testing. Your AI coding agent captures a baseline, compares new screenshots by pixel diff, masks dynamic content, checks three viewports and fails the run when similarity drops below the threshold.

The visual-testing-advanced skill teaches your agent visual regression testing: capture a baseline on the main branch, compare a feature branch against it, and fail the run when the screenshots differ more than the threshold allows.

It exists because functional tests do not catch visual bugs. Layout shifts, color changes, font rendering problems and clipped content pass functional checks while users still see them.

Five steps the agent follows

  1. Capture baseline screenshots, where the first run establishes the baseline.
  2. Compare new screenshots against the baseline, pixel by pixel or with AI.
  3. Mask dynamic content such as timestamps, ads and user counts.
  4. Test across desktop, tablet and mobile viewports.
  5. Review and approve intentional changes, and fail on regressions.

Visual bugs it targets

  • Layout shift, where elements move position.
  • Color change and font rendering issues.
  • Alignment and spacing problems.
  • Missing images from broken paths, and overflow that clips content.

Primary path and fallback

Most work goes through the qe-browser visual-diff script, which stores baselines in .aqe/visual-baselines/ and exits non-zero on a mismatch. Percy and Applitools are kept for AI comparison, and Playwright toHaveScreenshot for Firefox and WebKit or an existing Playwright suite.

Who the visual-testing-advanced skill is for

Best for

  • Teams changing CSS or components who need a CI gate against visual regressions.
  • Responsive design checks at 375x667, 768x1024 and 1920x1080.
  • Projects pairing screenshot diffs with the accessibility-testing skill from the same repository.

Not for