agentleFS
adymireadymire/CraftLayer/skills/visual-regression/SKILL.md

visual-regression

Skill0 starsChanged 3 days agoMITView on GitHub

Detect unintended visual changes with stable, representative screenshots and human review of meaningful differences.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use for shared components, design-system changes, high-value pages, or layouts where unintended visual shifts are costly.

    line 10
  2. Distinctive:

    Do not add screenshot tests for every page when they create noisy, expensive maintenance without meaningful coverage.

    line 15
  3. Distinctive:

    Update snapshots only with an explained, reviewed product change.

    line 31
  4. Distinctive:

    Do not mask broad regions to make tests pass.

    line 37
  5. Distinctive:

    Keep dynamic content deterministic and masks narrow.

    line 38

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Visual Regression

When to use

Use for shared components, design-system changes, high-value pages, or layouts where unintended visual shifts are costly.

When not to use

Do not add screenshot tests for every page when they create noisy, expensive maintenance without meaningful coverage.

Inputs and assumptions

Identify representative routes, viewports, states, fonts, data fixtures, browser environment, and acceptable dynamic differences.

Workflow

  1. Select high-risk pages and states with a reason for inclusion.
  2. Make test data, fonts, viewport, browser, and animation behavior deterministic.
  3. Capture baseline and candidate screenshots under matching conditions.
  4. Review diffs in context; distinguish intentional design changes from clipping, missing content, font shifts, and state regressions.
  5. Update snapshots only with an explained, reviewed product change.
  6. Pair screenshots with behavior, accessibility, and responsive tests.

Decision rules

  • Pixel diffs are signals, not proof of a defect.
  • Do not mask broad regions to make tests pass.
  • Keep dynamic content deterministic and masks narrow.
  • Preserve keyboard and interaction checks; a screenshot cannot test them.

Example

For a navigation redesign, capture desktop and mobile layouts plus open-menu state; test focus order and Escape behavior separately.

Common failures

  • Unreviewed snapshot refreshes.
  • Flaky fonts, time, data, or animation.
  • Testing only one viewport or static state.

Validation

Confirm determinism, representative coverage, intentional diff review, separate interaction/accessibility checks, and actionable failure output.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.