SkillAgentSearch skills...

before-and-after

Captures before/after screenshots of web pages or elements for visual comparison

Install / Use

npx skills add michaelshimeles/skills --skill before-and-after

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

84/100

Supported Platforms

Universal

Our assessment of before-and-after

before-and-after scores 84/100 on our quality scale, 868th of 1,153 Content & Media skills we index.

Its SKILL.md is 3.9 KB long, well organised into 20 sections with 3 code examples: a solid amount of guidance for an agent.

With 1,076 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
26/30
Structure
18/20
Description
12/15
Adoption
13/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated about 2 months ago, so before-and-after is actively maintained.
  • Our last check on 2026-11-06 found the source still online.
  • No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
  • Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-10-06. Automated pattern scan on 2026-10-06. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

before-and-after compared with similar skills

All 4 of these similar skills score higher than before-and-after; compare them before choosing.

SkillScoreStarsUpdatedFormat
before-and-after (this skill)by michaelshimeles841.1k2mo agoSKILL.md
taste-skillby Leonxlnx100116.8k8d agoCLAUDE.md
LocalAIby mudler10050.4ktodayMCP Server
siyuanby siyuan-note10047.3ktodayMCP Server
x402by browser-use100121.0k3d agoSKILL.md

Frequently asked questions

How do I install before-and-after?
Run npx skills add michaelshimeles/skills --skill before-and-after. The install tabs above show the steps for each supported agent.
Which AI agents does before-and-after work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is before-and-after safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is before-and-after still maintained?
The repository was last updated about 2 months ago, so before-and-after is actively maintained.

name: before-and-after description: Captures before/after screenshots of web pages or elements for visual comparison. Use when user says "take before and after", "screenshot comparison", "visual diff", "PR screenshots", "compare old and new", or needs to document UI changes. Accepts two URLs (file://, http://, https://) or two image paths. allowed-tools:

  • Bash(npx @vercel/before-and-after *)
  • Bash(before-and-after *)
  • Bash(which before-and-after)
  • Bash(npm install -g @vercel/before-and-after)
  • Bash(*/upload-and-copy.sh *)
  • Bash(curl -s -o /dev/null -w *)
  • Bash(gh pr view *)
  • Bash(gh pr edit *)
  • Bash(vercel inspect *)
  • Bash(vercel whoami)
  • Bash(which vercel)
  • Bash(which gh)

Before-After Screenshot Skill

Package: @vercel/before-and-after Never use before-and-after (wrong package).

Agent Behavior Rules

DO NOT:

  • Switch git branches, stash changes, start dev servers, or assume what "before" is
  • Use --full unless user explicitly asks for full page / full scroll capture

DO:

  • Use --markdown when user wants PR integration or markdown output
  • Use --mobile / --tablet if user mentions phone, mobile, tablet, responsive, etc.
  • Assume current state is After
  • If user provides only one URL or says "PR screenshots" without URLs, ASK: "What URL should I use for the 'before' state? (production URL, preview deployment, or another local port)"

Execution Order (MUST follow)

  1. Pre-flight — which before-and-after || npm install -g @vercel/before-and-after
  2. Protection check — if .vercel.app URL: curl -s -o /dev/null -w "%{http_code}" "<url>" (401/403 = protected)
  3. Capture — before-and-after "<before-url>" "<after-url>"
  4. Upload — ./scripts/upload-and-copy.sh <before.png> <after.png> --markdown
  5. PR integration — optionally gh pr edit to append markdown

Never skip steps 1-2.

Quick Reference

# Basic usage
before-and-after <before-url> <after-url>

# With selector
before-and-after url1 url2 ".hero-section"

# Different selectors for each
before-and-after url1 url2 ".old-card" ".new-card"

# Viewports
before-and-after url1 url2 --mobile    # 375x812
before-and-after url1 url2 --tablet    # 768x1024
before-and-after url1 url2 --full      # full scroll

# From existing images
before-and-after before.png after.png --markdown

# Via npx (use full package name!)
npx @vercel/before-and-after url1 url2

| Flag | Description | |------|-------------| | -m, --mobile | Mobile viewport (375x812) | | -t, --tablet | Tablet viewport (768x1024) | | --size <WxH> | Custom viewport | | -f, --full | Full scrollable page | | -s, --selector | CSS selector to capture | | -o, --output | Output directory (default: ~/Downloads) | | --markdown | Upload images & output markdown table | | --upload-url <url> | Custom upload endpoint (default: 0x0.st) |

Image Upload

# Default (0x0.st - no signup needed)
./scripts/upload-and-copy.sh before.png after.png --markdown

# GitHub Gist
IMAGE_ADAPTER=gist ./scripts/upload-and-copy.sh before.png after.png --markdown

Vercel Deployment Protection

If .vercel.app URL returns 401/403:

  1. Check Vercel CLI: which vercel && vercel whoami
  2. If available: vercel inspect <url> to get bypass token
  3. If not: Tell user to provide bypass token, take manual screenshots, or disable protection

PR Integration

# Check for gh CLI
which gh

# Get current PR
gh pr view --json number,body

# Append screenshots to PR body
gh pr edit <number> --body "<existing-body>

## Before and After
<generated-markdown>"

If no gh CLI: output markdown and tell user to paste manually.

Error Reference

| Error | Fix | |-------|-----| | command not found | npm install -g @vercel/before-and-after | | could not determine executable | Use npx @vercel/before-and-after (full name) | | 401/403 on .vercel.app | See Vercel protection section | | Element not found | Verify selector exists on page |

Related Skills

View on GitHub
GitHub Stars1.1k
CategoryContent
Updated2mo ago
Forks181

Languages

Python

Trust signals

88/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

1 medium