Before/After Screenshot Capture
Captures before-and-after UI screenshot comparisons locally using Playwright MCP and git branch switching for pull requests.
Automates the process of capturing before and after UI screenshots across git branches using Playwright MCP on a single local dev server. This skill handles cookie persistence to avoid repetitive re-authentication, supports precise component-level cropping with sharp-cli or accessibility ref selectors, and formats clean markdown comparison tables for pull request descriptions without committing images to git history.
主要功能
01Precise component-level screenshots using Playwright MCP ref selectors and bounding box cropping
02Structured pull request preview formatting guidelines that keep binary screenshots out of git history
030 GitHub stars
04Streamlined before/after screenshot capture using branch switching on a single dev server port
05Configurable viewport sizing and arbitrary Playwright JavaScript execution for scroll and UI states
06Session cookie persistence across git checkouts to eliminate redundant logins
使用场景
01Capturing component-level visual regressions between a feature branch and the main branch
02Generating cropped visual evidence for design reviews, QA validations, and bug fix verification
03Documenting frontend UI changes in pull request descriptions with before/after comparison tables