before-and-after
Before-and-after screenshots and visual diffs for pull requests
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install before-and-after?โผ
Run `npx skills add vercel-labs/before-and-after --all -g -y` in your terminal to install the skill globally for your agent.
How to add before-and-after screenshots to a PR?โผ
Run `before-and-after <before-url> <after-url> --markdown` to capture both states, upload the images, and copy a ready-to-paste markdown table for your pull request.
Can it capture mobile or specific page elements?โผ
Yes. Use `--mobile` or `--tablet` for device viewports, `--size` for custom dimensions, and pass a CSS selector to screenshot a single element.
Does it work with Vercel preview deployments?โผ
Yes. It detects protected .vercel.app URLs and uses the Vercel CLI bypass token when available, or prompts you for one.
Can I compare existing images instead of URLs?โผ
Yes. Pass two local image paths instead of URLs, or mix an image with a URL, and it will still upload them and generate the comparison markdown.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core