pr-screenshot
Installation
SKILL.md
PR Screenshot Skill
Add before/after comparison screenshots to a pull request using browser automation and GitHub CDN. This captures the UI on the base branch (before) and the PR branch (after), then presents them in a side-by-side comparison table.
Arguments
$ARGUMENTS- PR number and optional description of what to screenshot (e.g. pages/routes to capture)
Execution Steps
1. Parse Arguments & Get Repo Info
# Get current repo info
REPO=$(gh repo view --json nameWithOwner -q .nameWithOwner)
# Get PR info (base branch, head branch, title, body)
gh pr view <PR_NUMBER> --json baseRefName,headRefName,title,body