/aaronfc-skills:aa:create-pr:screenshotsfrom aaronfc-skills
Add visual proof to a pull request for UI changes. Use only while creating or updating a PR that needs screenshots, when aa:create-pr delegates UI evidence work, or when the user invokes "/aa:create-pr:screenshots". Do not use for code review, reviewing a pull request or diff, or general UI testing. Captures before/after screenshots with Playwright and links them into the PR body.
Ships in aaronfc-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Capture with the Playwright MCP (mcp__playwright__*) — an isolated, headless browser that
never touches your real Chrome windows or sessions. Its browser_take_screenshot writes a real
PNG straight to disk, so there is no download/GIF transport hack: pass a filename, read the
absolute path the tool returns, done.
Per shot:
browser_navigate to the page. The isolated browser starts logged-out, so if the screen
needs auth, sign in first (see below).browser_click / browser_type / browser_fill_form, using
browser_snapshot to get element refs; browser_wait_for to settle).browser_resize to the target viewport (exact — Playwright honours the size).browser_take_screenshot with an absolute filename in a working dir outside the repo
(e.g. filename:"/tmp/<shots>/<screen>-<viewport>-<state>.png"). It writes the PNG there and
returns the path — read it for the next steps. Never commit binaries to the branch.
filename ("shot.png") resolves against the MCP
server's cwd — usually the repo you launched in — so it can drop a stray PNG in the working
tree. Omitting filename lands it in the MCP output dir (with an auto name); an absolute
path is the reliable way to control location.That's the whole capture loop. No overlays to disable, no frame timing, no ~/Downloads hunt.
Reach authenticated states one of two ways:
CLAUDE.local.md / env:
browser_navigate to the login page → browser_fill_form → submit. (For this repo's Woo AI dev
site: https://aaronfc-wooai.jurassic.tube/wp-login.php, admin / aarontesting.)browser_storage_state to save cookies/localStorage,
then browser_set_storage_state at the start of later runs to skip the login.For an animated/behavioural change (e.g. an animation-timing tweak), don't split into two
stills: browser_start_video, perform the real interaction, browser_stop_video (saves a video
to the output dir). Attach the video to the PR, or convert it to a GIF (ffmpeg) and host it on
the gist like the stills below.
Driving the app to the same state twice (once per branch) is the slow, flaky part — especially for AI-agent flows whose tool availability is non-deterministic (a request that produces a card one minute returns "I don't have that tool" the next). Avoid re-driving:
cd <dir> && <build> can silently run in the
wrong working directory, leaving the served bundle stale while the build "succeeds". Use the
tool's explicit dir flag (e.g. pnpm --dir <path> …) and verify the emitted bundle changed —
grep it for a token from your diff and check the asset version/hash flipped — before reloading. A
matching ?ver= hash on the page's <script> confirms the new code is actually served.browser_resize → 4 shots per screen
(before/after × desktop/mobile). Playwright sets the viewport exactly, and can emulate any
width — including narrow mobile — so keep before and after identical for a fair comparison.<screen>-<viewport>-<state>.png (e.g. login-mobile-after.png).The shots are real local files, so hosting is the only remaining step for PR embedding.
main or the branch. Publish them with
scripts/publish-pr-media.sh --description "<PR media description>" <media>.... The script
creates a per-PR secret gist from a text placeholder, pushes the binaries through git,
verifies one upload, and prints revision-pinned raw URLs that survive PR force-pushes. A secret
gist is unlisted, not private: its media is public by URL, so do not publish sensitive screens.Before | After markdown tables, one pair per viewport,
grouped per screen. Edit non-destructively: fetch the current body
(gh pr view <n> --json body --jq .body), insert the screenshots section (e.g. before the
trailing generated-by footer), and write it back with gh pr edit <n> --body-file <file> —
don't clobber the existing description.Independent of the PR, the captured PNGs are real local files, so SendUserFile can surface them
inline (e.g. for a quick before/after look, or as a fallback if the user prefers to drag them into
the PR themselves).
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (aaronfc/skills) — no native marketplace selected
npx claudepluginhub p/aaronfc-aaronfc-skills10 skills in this plugin
/aa:afkWork a GitHub issue end-to-end on your own — use a supplied issue or find a ready unblocked task, then either implement it and open a PR or research it and post evidence-backed findings. Use when the user wants you to work autonomously, "grab a ready issue", "work while I'm afk", or says "/aa:afk"./aa:babysit-prWait read-only for pull-request events, triage new human feedback, propose evidence-backed actions, and require approval before changing code while never posting PR replies. Use when the user asks to babysit, watch, monitor, or wait on a GitHub pull request or invokes "/aa:babysit-pr"./aa:create-prCreate or update a GitHub PR only when explicitly requested or invoked with /aa:create-pr. Not for code review or review comments.Other plugins' skills for the same job