agentleFS
jajupmochijajupmochi/agent-harness/skills/verify-visual/SKILL.md

verify-visual

Skill1 starsChanged 5 months agoMITView on GitHub

Visual verification for UI changes using Playwright screenshots and native model vision (GPT-5.5, Claude). For models without vision (DeepSeek), uses Playwright screenshot capture with pixel comparison for regression detection. BackstopJS available as optional regression tool.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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:

    When the model has vision capability, screenshots are captured and analyzed directly by the model.

    line 24
  2. Distinctive:

    No model needed. Good for CI regression testing.

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

verify-visual

Detection: vision capability

ModelVisionBackend
GPT-5, GPT-5.5✅ nativeModel-based screenshot analysis
Claude Opus 4+✅ nativeModel-based + chrome-devtools MCP
DeepSeek V3, DeepSeek R1❌ nonePlaywright screenshot capture + pixel comparison

Backend 1: Native model vision (GPT-5.5, Claude)

When the model has vision capability, screenshots are captured and analyzed directly by the model. No external API needed.

Backend 2: Playwright screenshots (always available)

The scripts/codex_visual_verify.sh script captures screenshots at specified viewports using Playwright or headless Chrome. Works with ANY model.

VISUAL_VERIFY_URL=https://localhost:3000 bash scripts/codex_visual_verify.sh

Output goes to .visual-verify/YYYY-MM-DD_HHMMSS/ with a results.json.

Backend 3: BackstopJS (pixel-level regression)

BackstopJS compares screenshots pixel-by-pixel against reference images. No model needed. Good for CI regression testing.

npx backstopjs init
# Configure backstop.json then:
npx backstopjs test

Workflow

graph TD
    START["/verify-visual &lt;url&gt;"] --> DETECT{"Model has<br/>vision?"}
    DETECT -->|"✅ GPT-5.5, Claude"| VISION["Native model vision<br/>analyze screenshots directly"]
    DETECT -->|"❌ DeepSeek"| SCREENSHOT["Playwright screenshot capture<br/>multiple viewports"]
    SCREENSHOT --> CHOOSE{"Need regression?"}
    CHOOSE -->|"Yes"| BACKSTOP["BackstopJS pixel comparison<br/>against reference images"]
    CHOOSE -->|"No"| REPORT["Return screenshot paths<br/>for manual review"]
    VISION --> REPORT2["Report visual issues<br/>layout, contrast, readability"]
    BACKSTOP --> REPORT2

Configuration

Optional ~/.config/agent-harness/visual-verify.json:

{
  "viewports": ["1280x720", "375x812", "1920x1080"],
  "reference_dir": "./.visual-verify/reference"
}

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.