visual-regression-guardian

Automate Playwright visual regression tests with baselines and CI integration.

Updated Feb 3, 2026
One-click install
npx skills add https://github.com/ricardohg1998-create/Plantilla-repo --skill visual-regression-guardian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: visual-regression-guardian
Source: https://github.com/ricardohg1998-create/Plantilla-repo/tree/main/.agent/skills/visual-regression-guardian
Command: npx skills add https://github.com/ricardohg1998-create/Plantilla-repo --skill visual-regression-guardian

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents visual drift in high-impact UIs by configuring Playwright-based visual regression tests, generating baselines, and enabling CI integration.

Core Features & Use Cases

  • Baseline management: capture and compare screenshots across routes and viewports.
  • Multi-viewport coverage: test desktop, tablet, and mobile layouts.
  • CI integration: integrate snapshots and tests into downstream CI pipelines.
  • Use case: On a new feature, set up initial baseline screenshots and run diffs on PRs.

Quick Start

Use this skill to scaffold a visual regression suite with Playwright, configure baselines, and wire it into CI.

Frequently Asked Questions about visual-regression-guardian

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Playwright visual regression tests to prevent UI drift?

Playwright visual regression tests prevent UI drift by automating baseline generation, capturing screenshots across key routes and states, and comparing diffs to enforce snapshot policies. This skill scaffolds the suite, configures multi-viewport coverage, and wires test execution artifacts into CI.

Can I run Playwright visual tests across desktop, tablet, and mobile viewports?

Playwright visual tests support multi-viewport coverage across desktop, tablet, and mobile layouts. The skill configures baseline screenshots for each viewport and compares them during test execution to detect responsive UI drift across different screen sizes.

How do I integrate visual regression baselines into my CI pipeline?

Visual regression baselines integrate into CI pipelines by enforcing Playwright configuration and snapshot policies during automated test execution. The skill generates baseline artifacts and wires them into downstream CI workflows to run visual diffs on pull requests.

What is the best way to manage Playwright screenshot baselines for new features?

Managing Playwright screenshot baselines involves capturing initial screenshots across routes and viewports, then comparing subsequent changes against them. This skill automates baseline generation and enforces snapshot policies to track visual changes when adding new features.

Do I need Playwright installed to configure visual regression testing for UI drift?

Playwright is required to configure visual regression testing for UI drift. The skill automates Playwright configuration, snapshot policies, and test execution artifacts, relying on the framework to capture and compare screenshots across multiple viewports and routes.

Why does visual regression testing fail when UI components change unexpectedly?

Visual regression testing fails when UI components change unexpectedly because the captured screenshots no longer match the stored baselines. This skill uses Playwright to generate baselines and enforce snapshot policies, detecting visual drift across key routes and states.