pr-visual-writeup
What it does
Captures screenshots and short scrolling clips of the pages a change affects, then places them in the pull request description. It is for developers who want reviewers to see a change without running it.
When to use it
- βWhen you want a pull request description that includes screenshots of the changed pages.
- βWhen a reviewer needs to see a visual change before the pull request is merged.
- βWhen you want before and after images in the pull request description.
Skill link
https://github.com/hexclave/hexclave/blob/dev/.agents/skills/pr-visual-writeup/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βAdd before and after screenshots of the new dashboard layout to my pull request description.β
5 new skills a week. 1 minute to read.
How it works
The skill inspects the code changes, captures the pages from a running dev server in several themes and screen sizes, uploads the images to a GitHub gist and sets the pull request description to the result.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
pr-visual-writeup
Turn a PR into a visual writeup: inspect the diff, capture screenshots + scroll animations from a local dev server across themes and viewports in parallel, host everything in a GitHub gist (PAT-only, no browser cookies), compose a rich markdown body, and set it as the PR description.
When this triggers
- "make me a pr description with screenshots / gifs / videos"
- "pr writeup with visuals"
- "generate pr body from the running dev server"
- "screenshot all the pages this PR changes and put them in the description"
If the user only wants a text-only PR description, don't use this skill β it's for visual-heavy writeups.
The shape of the work
Six phases. Phases 2 and 3 are the parallel-heavy ones β lean on subagents there. Phase 6 is the cleanup that puts the user's working tree back.
- Scope β figure out which PR, which routes, which dev server, which auth, which selectors are new UI
- Capture β "after" pass first (parallel: page Γ theme Γ viewport, red borders on new UI), then stash + checkout base + capture "before" pass against the same dev server.
- Process (parallel) β convert scroll videos β GIFs (inline-playable), prep gist
- Upload β one gist, one commit, all files; get raw URLs
- Compose + set β markdown body with before/after tables, then
gh pr edit --body-file - Restore β
git checkout <orig-branch>+git stash popso the user's working tree is exactly where they left it
Phase 1 β Scope
Before you capture anything, know:
- PR number + repo β
gh pr view <N> --json baseRefName,headRefName,title,url - Changed UI routes β
gh pr diff <N> --name-onlyand filter for page/route files. For Next.js look for**/page*.tsx/**/*page-client.tsx. Map route files to URL paths based on the app router convention. Ignore changes purely in backend / shared components unless they have an obvious UI surface. - Dev server port β
lsof -iTCP -sTCP:LISTEN -P -n | grep nodeandcurl -s http://localhost:<port>/ | grep -oE '<title>[^<]+</title>'to identify which port is the dashboard vs. API vs. docs vs. mock-OAuth. - Auth flow β if the app requires login, inspect the sign-in page for the OAuth provider to use, and ask the user (or infer from context) which dev account to sign in as. Mock OAuth servers typically accept any email.
- New-UI selectors β for each changed route, derive a list of CSS selectors that point to the UI elements added or visibly modified in this PR. Read the diff for that route's component file(s), pick stable selectors (
data-testid, semantic role, unique class, or a:has()text match) for each new/changed block. These selectors drive the red-border highlight pass on "after" captures. If a route has no visually changed elements (only behavior/copy refactor), record[]and skip highlighting for that route. - Base ref for "before" β
gh pr view <N> --json baseRefNamegives you the base branch (usuallydevormain). The "before" pass swaps the working tree to that ref under the same dev server β see Phase 2. Skip the before pass entirely if the user says "after only" or if every route is greenfield. - Working-tree state β
git status --porcelain. If there are uncommitted changes, they need to be stashed before the base checkout. Record whether a stash will be needed and the current branch name so you can restore exactly.
Record all of these in /tmp/pr-<N>-visuals/scope.md β the Phase 2 subagents need them.
Phase 2 β Capture
Two ordered passes against a single dev server. The "after" pass runs first while the head branch is checked out; then we swap the working tree to the base ref (same server, same port, HMR rebuilds) and run the "before" pass.
Pass 1 β "after" (parallel)
The head branch is already checked out and the dev server is already running, so this is just the parallel matrix you started with.
Spawn one subagent per (theme, viewport) combination. Each owns a named agent-browser session, authenticates once, captures every page in its slice with red borders injected on new-UI selectors, and returns the output directory.
after-light-standard(1920Γ1200, theme=light, red borders on)after-dark-standard(1920Γ1200, theme=dark, red borders on)after-light-wide/after-dark-wide(2560Γ1440, flagship pages only)
Issue all Agent calls in one assistant message so they run concurrently. Unique --session-name per agent.
**Red borders.
FAQ
Does it use my browser login?
No. The skill uses a GitHub token only and does not use browser cookies.
Does it change my working files?
The skill restores your working tree at the end, returning you to the branch you started on.
Can it capture pages that need a sign-in?
The skill plans for authentication when it sets up the capture, so pages behind a login can be included.
Details
Original description by the author
Generate a rich GitHub PR description with dashboard/web-UI screenshots and scrolling animations captured from a running dev server, hosted as a GitHub gist, and pushed to the PR via `gh pr edit`. Use this skill whenever the user asks to "make a PR description with screenshots", "write up a PR with visuals", "add screenshots to my PR", "PR description with GIFs / demo / scroll animations", or anything involving turning a code PR into a visual-heavy writeup. Also triggers on phrases like "ship a PR writeup", "PR body with light and dark mode screenshots", "visual PR review", "generate PR body f
repo: hexclave/hexclave
Popularity
- GitHub stars
- 6.9k
- Ranking position
- #13725
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
roids
6.9kLets your agent show two to five layout options in a browser preview, so you can compare them side by side and pick a winner.
hexclave
6.9kLets your agent fetch Hexclave's current instructions for user accounts, sign-in, payments, email, analytics and its command-line tool.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.