Ztx11 visual regression ci

From Realjustawall/Perfect-AI · View interactive version

Ztx11 visual regression ci is an AI agent skill from the GitHub repository Realjustawall/Perfect-AI. Perfect_AI local offline-first Codex integration: Navigator — Visual Regression and CI. Use for visual snapshots, CI screenshot baselines, Storybook, Percy/Chromatic/Backstop.

How to use this skill

Skill file

Navigator — Visual Regression and CI

Source: https://github.com/alekspetrov/navigator/blob/main/skills/visual-regression/SKILL.md

Upstream license / handling: MIT

Distribution: This is a newly authored Perfect_AI adaptation; no upstream SKILL.md text, binaries, fonts or models are redistributed.

Activation, authority and safeguards

Step-by-step implementation

  1. Pick the smallest stable units: story, route, component state.
  2. Fix font readiness, animation time, network data, locale, DPR and browser version.
  3. Capture baselines and document approval ownership.
  4. Compare images with threshold; save failure diff heatmaps and DOM snapshots.
  5. Integrate into CI as opt-in check with artifacts; avoid expensive full-site permutation explosion.
  6. Require human sign-off for intentional large visual changes.

Concrete scenarios and integration cues

Reference implementation / command

import { test, expect } from "@playwright/test";
test("hero visual", async ({ page }) => {
  await page.goto("/");
  await page.evaluate(() => document.fonts.ready);
  await expect(page.locator("main")).toHaveScreenshot("main.png", { animations: "disabled" });
});

Acceptance checks (verify, do not assume)

Common failure modes and corrective strategy

Contracts and outputs

Related Perfect_AI skills and stack

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.