Claude Skill

visual-regression-lab

Compare captures; stitch lazy/animated pages.

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download thegoat395-agent-skills-skills_visual-regression-lab-293ef94.zip · 11 KB

Install

skills CLI npx skills add https://github.com/TheGoat395/Agent-Skills/tree/main/skills/visual-regression-lab
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install thegoat395-agent-skills@llmmart
Git git clone https://github.com/TheGoat395/Agent-Skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole thegoat395/agent-skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Visual Regression Lab

Use this skill to capture comparable browser evidence and inspect visual regressions. Scope routes, viewports and states to the requested comparison; a capture alone does not prove quality.

Required Checks

  1. Start or identify the local server.
  2. Open the relevant route in a browser or Playwright.
  3. Capture the relevant supported viewports and states, using the same conditions for baseline and candidate.
  4. Check console errors, failed requests, layout overflow, missing media, and text clipping.
  5. Inspect first viewport composition, hierarchy, spacing, typography, image crops, and CTA visibility.
  6. Test key interactions: nav, forms, menus, tabs, accordions, hover states, focus states, and modals.
  7. For animation-heavy work, test reduced-motion behavior and watch for jank.
  8. For canvas/WebGL/video, verify nonblank rendered pixels and stable framing.
  9. Report observed differences with evidence. Repair only when authorized, then recapture affected states; no fixed polish-pass or edit quota applies.

Read baseline contract. When a project has Playwright installed, run node "<skill-root>/scripts/capture-settled-baseline.mjs" <url> <output-dir> to capture settled desktop/mobile/reduced-motion states and a machine-readable inspection manifest.

When native full-page capture is blank, sparse, incomplete, or inconsistent with real scrolling, read stitched full-page capture and run node "<skill-root>/scripts/capture-stitched-full-page.mjs" --url <url> --output <image>. Treat the stitched image as evidence only after visual inspection.

Output

Report:

  • routes/viewports checked
  • screenshots or saved paths when available
  • issues found and fixed
  • commands run
  • anything not tested

Resolve <skill-root> to this skill folder's actual absolute location; preserve project-local module resolution for Node capture tools.

Files (agent-skills)
  • agents
    • openai.yaml 250 B
      Loading…
  • references
    • baseline-contract.md 1.2 KB
      Loading…
    • stitched-full-page-capture.md 3.4 KB
      Loading…
  • scripts
    • capture-settled-baseline.mjs 6.2 KB · in bundle
    • capture-stitched-full-page.mjs 15.6 KB · in bundle
  • SKILL.md 2 KB
    ---
    name: visual-regression-lab
    description: "Compare captures; stitch lazy/animated pages."
    ---
    
    # Visual Regression Lab
    
    Use this skill to capture comparable browser evidence and inspect visual regressions. Scope routes, viewports and states to the requested comparison; a capture alone does not prove quality.
    
    ## Required Checks
    
    1. Start or identify the local server.
    2. Open the relevant route in a browser or Playwright.
    3. Capture the relevant supported viewports and states, using the same conditions for baseline and candidate.
    4. Check console errors, failed requests, layout overflow, missing media, and text clipping.
    5. Inspect first viewport composition, hierarchy, spacing, typography, image crops, and CTA visibility.
    6. Test key interactions: nav, forms, menus, tabs, accordions, hover states, focus states, and modals.
    7. For animation-heavy work, test reduced-motion behavior and watch for jank.
    8. For canvas/WebGL/video, verify nonblank rendered pixels and stable framing.
    9. Report observed differences with evidence. Repair only when authorized, then recapture affected states; no fixed polish-pass or edit quota applies.
    
    Read [baseline contract](references/baseline-contract.md). When a project has Playwright installed, run `node "<skill-root>/scripts/capture-settled-baseline.mjs" <url> <output-dir>` to capture settled desktop/mobile/reduced-motion states and a machine-readable inspection manifest.
    
    When native full-page capture is blank, sparse, incomplete, or inconsistent with real scrolling, read [stitched full-page capture](references/stitched-full-page-capture.md) and run `node "<skill-root>/scripts/capture-stitched-full-page.mjs" --url <url> --output <image>`. Treat the stitched image as evidence only after visual inspection.
    
    ## Output
    
    Report:
    
    - routes/viewports checked
    - screenshots or saved paths when available
    - issues found and fixed
    - commands run
    - anything not tested
    
    Resolve `<skill-root>` to this skill folder's actual absolute location; preserve project-local module resolution for Node capture tools.
    

Comments

Sign in to join the conversation.

No comments yet. Start the conversation.

Reviews (0)

No reviews yet.