visual-diff
Skill123 starsChanged 8 months agoMITView on GitHub
Visual Regression Testing — screenshot comparison before and after changes. Use when user wants to check for visual regressions, compare UI changes, or verify CSS/layout changes didn't break anything.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- aditya-deokar/software-factorytheir own version, first seen Sep 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- aditya-deokar/software-factory★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- a11ySkill
- architectureSkill
- brainstormingSkill
- canarySkill
- clone-patternsSkill
- code-reviewSkill
- competeSkill
- costSkill
- demoSkill
- deploySkill
- dispatching-parallel-agentsSkill
- evalsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- growSkill
- guardSkill
- index-fixSkill
- investigateSkill
- launchSkill
- learnSkill
- onboardSkill
- pentestSkill
- perf-auditSkill
- receiving-code-reviewSkill
- releaseSkill
- requesting-code-reviewSkill
- rescueSkill
- retroSkill
- revise-claude-mdSkill
- security-auditSkill
- seo-auditSkill
- seo-strategySkill
- ship-gateSkill
- sprintSkill
- staying-currentSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- using-ultrashipSkill
- verification-before-completionSkill
- writing-plansSkill
- writing-skillsSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
If the user already described what changed, skip asking.
- Distinctive: line 22
If comparing against the current state (before making changes):
- Distinctive: line 24
Use the Playwright MCP to capture screenshots:
- Very specific: line 27
Use browser_navigate to go to the target URL
- Very specific: line 30
Use browser_take_screenshot to capture the current state
- Very specific: line 58
Use browser_snapshot to get the accessibility tree and compare DOM structure between before/after.
- Distinctive: line 88
When the user doesn't specify pages, test these by default:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
Visual Regression Testing
Automated screenshot comparison using Playwright. Catch visual bugs before they ship.
Process
Phase 1: Determine Test Scope
Ask the user:
- What URL(s) to test? (localhost, staging, or production)
- What changed? (CSS update, component refactor, dependency upgrade, etc.)
If the user already described what changed, skip asking.
Phase 2: Take "Before" Screenshots
If comparing against the current state (before making changes):
Use the Playwright MCP to capture screenshots:
- Navigate to the URL:
- Use
browser_navigateto go to the target URL
- Use
- Take full-page screenshot:
- Use
browser_take_screenshotto capture the current state
- Use
- Capture key viewports:
- Desktop (1920x1080):
browser_resizethenbrowser_take_screenshot - Tablet (768x1024):
browser_resizethenbrowser_take_screenshot - Mobile (375x812):
browser_resizethenbrowser_take_screenshot
- Desktop (1920x1080):
- Save screenshots with descriptive names noting they are "before" state.
Phase 3: Make Changes
Let the user make their changes, or make them yourself if that's the task.
Phase 4: Take "After" Screenshots
Repeat the same screenshot process for the same URLs and viewports.
Phase 5: Visual Comparison
Compare before and after screenshots:
- Layout shifts — did any elements move unexpectedly?
- Color changes — did colors, gradients, or shadows change?
- Typography — did font sizes, weights, or spacing change?
- Responsive issues — does it look correct on all viewports?
- Missing elements — did anything disappear?
- Overflow issues — is content clipping or overflowing?
Use browser_snapshot to get the accessibility tree and compare DOM structure between before/after.
Phase 6: Report
Present findings in a clear format:
No Visual Regressions Found:
- "All pages look identical across desktop, tablet, and mobile viewports."
Regressions Detected: For each regression:
- Page: URL where the issue appears
- Viewport: Which screen size is affected
- What changed: Description of the visual difference
- Severity: Critical (broken layout), High (noticeable shift), Medium (minor difference), Low (pixel-level)
- Suggested fix: How to resolve the regression
Phase 7: Targeted Testing
For specific component changes, also test:
- Hover states (use
browser_hover) - Click interactions (use
browser_click) - Form states (use
browser_fill_form) - Dark mode (if applicable)
- Loading states
- Error states
- Empty states
Key Pages to Always Test
When the user doesn't specify pages, test these by default:
- Homepage / Landing page (/)
- Login/signup page (if exists)
- Main app page (dashboard, etc.)
- Any page the user recently modified
Key Principle
Trust screenshots, not assumptions. CSS changes cascade unpredictably. A "small tweak" in one component can break layouts across the entire app. Always verify visually.
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
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.

