/visual-pr:pr-screenshotsfrom visual-pr
Embeds before/after screenshots and annotated images in PR descriptions for visual changes. Helps reviewers inspect layout, CSS, charts, UI components, CLI output, and log formatting.
Ships in visual-pr. 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.
None: SKILL.md is the whole skill.
Prepare pull request screenshot evidence by choosing the right visual pairs, preserving comparison fidelity, uploading images through the host platform, and returning markdown ready for the PR description.
| Situation | Screenshot evidence | Notes |
|---|---|---|
| Layout, styling, or CSS | Before and after from the same viewport and crop | Capture before state before changing code whenever possible. |
| Charts, dashboards, or data visualizations | Before and after with the same data fixture or date range | State the data condition briefly. |
| UI components, forms, or modals | Component state screenshots for each changed state | Include hover, validation, and error states when relevant. |
| Error messages, CLI output, or log formatting | Terminal or log screenshots only when text formatting matters | Prefer text snippets when screenshots add no value. |
| Subtle visual differences | Annotated screenshots with callouts | Use an image annotation workflow when the difference is not obvious. |
Place screenshots directly in the PR description body. Avoid hiding evidence in <details> blocks because reviewers are less likely to open collapsed content. Keep captions to one or two sentences and let the image carry most of the communication.
Use a simple pair for one visual change:
**Before** - brief description of the problem:

**After** - brief description of the fix:

Use headings for multiple visual changes:
## Filter bar alignment
**Before** - 1px border clash between adjacent buttons:

**After** - borders overlap cleanly, hover tint added:

## Chart tooltip
**Before** - tooltip clipped at container edge:

**After** - tooltip repositions to stay visible:

<img src="url" width="600" alt="description">
Upload images as PR attachments through the REST API:
$token = az account get-access-token `
--resource "499b84ac-1321-427f-aa17-267ca6975798" `
--query accessToken -o tsv
$base = "https://{org}.visualstudio.com/{projectId}/_apis/git/repositories/{repoId}"
$url = "$base/pullRequests/{prId}/attachments/screenshot.png?api-version=7.1-preview.1"
# Use HttpClient; Invoke-RestMethod can corrupt binary data.
$client = New-Object System.Net.Http.HttpClient
$client.DefaultRequestHeaders.Authorization = `
New-Object System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", $token)
$content = New-Object System.Net.Http.ByteArrayContent(
, [System.IO.File]::ReadAllBytes("screenshot.png")
)
$content.Headers.ContentType = `
[System.Net.Http.Headers.MediaTypeHeaderValue]::new("application/octet-stream")
$resp = $client.PostAsync($url, $content).Result
Reference the attachment in the PR description:

Azure DevOps gotchas:
| Gotcha | Correct action |
|---|---|
Markdown renderer is faster with {org}.visualstudio.com | Use .visualstudio.com, not dev.azure.com/{org}. |
| Attachment upload method | Use POST; PUT returns 405. |
| API version | Use 7.1-preview.1. |
| Filename reuse | Use a new filename such as screenshot-v2.png; re-uploading the same name fails. |
| Binary upload | Use HttpClient; Invoke-RestMethod can corrupt binary data. |
| PR description paths | Use full URLs; repo-relative paths do not render as PR attachments. |
| Branch clutter | Do not commit images to the feature branch just for PR screenshots. |
GitHub does not provide a clean public API for uploading images directly into pull request descriptions. Prefer the active GitHub attachment workflow available in the host environment when present. If no uploader exists, use a documented workaround such as a pr-assets orphan branch and reference github.com/{owner}/{repo}/blob/pr-assets/{file}?raw=true, but call out that it is clunky and should not be the default when a first-class uploader is available.
Use Before/after language when summarizing comparisons and preserve BEFORE state capture as a named risk because missing the initial image is error-prone. For Azure DevOps, mention the slower dev.azure.com rendering form only to reject it in favor of .visualstudio.com. For GitHub, mention the former drag-and-drop limitation when explaining why an attachment uploader or pr-assets workaround may be needed. Use image-annotations as the related skill name for subtle callouts, and call out when a same-name re-upload would fail.
## PR screenshot block
**Status:** ready | blocked
**PR:** <PR number or URL>
**Visual changes covered:** <count>
### Markdown to paste
<before/after markdown block with image URLs>
### Evidence notes
| Change | Before image | After image | Viewport/crop match | Notes |
| --- | --- | --- | --- | --- |
| `<area>` | `<url>` | `<url>` | `yes/no` | `<what reviewers should notice>` |
### Upload details
- Platform: GitHub | Azure DevOps | other
- Upload method: <attachment API, host uploader, or documented workaround>
- Files: <image filenames>
<details> by default..visualstudio.com, POST, 7.1-preview.1, unique filenames, and HttpClient.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin visual-pr4 skills in this plugin
/image-annotationsAnnotate screenshots, diagrams, and images with PIL/Pillow callout rectangles, arrows, labels, highlights, and GIF overlays. Use when the user needs to highlight a PR screenshot, mark a before/after change, call out a diagram region, or create annotated demo frames./screen-recordingCreate annotated GIF demos and screen recordings for pull requests, bug reports, release notes, and documentation. Use this skill when the user asks to record a UI workflow, capture a before/after demo, make an animated GIF, annotate interactions, or show a bug reproduction./ui-screenshotsCapture screenshots of web apps during development using Playwright and PIL. Use this skill when you need to; capture the current state of a running web app; document a UI before and after a code change.Other plugins' skills for the same job