Pr Screenshots
GitHubOfficialFirst committed by nohwndDistributed by GitHub
- Skill
- Guidelines
- Software development
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured approach to documenting visual changes in pull requests. By embedding before-and-after screenshots directly into PR descriptions, developers can provide reviewers with immediate context, reducing the need for local branch checkout. The guide covers best practices for image capture, sizing, and layout, alongside specific technical implementation details for uploading images to Azure DevOps and handling GitHub limitations.
What it does
- Defines a standardized markdown pattern for presenting visual changes in PRs
- Provides best practices for image resolution, sizing, and viewport consistency
- Offers a PowerShell implementation for uploading images to Azure DevOps via REST API
- Suggests workarounds for managing images in GitHub PR descriptions
- Outlines guidelines for effective visual communication in code reviews
When to use it
- When a PR includes changes to UI components, CSS, or layout
- When updating data visualizations, charts, or dashboards
- When modifying error messages, CLI output, or log formatting
- When you want to ensure reviewers can evaluate visual changes without checking out the code
Advantages
- Enables faster and more accurate visual reviews
- Reduces the need for reviewers to build or run the application locally
- Ensures consistent and professional documentation of UI changes
- Helps reviewers identify subtle changes through standardized before/after comparisons
Usage examples
- “How should I format my PR description when I have changed the alignment of a filter bar?”
- The skill recommends using clear headings for each change, followed by a brief description and a pair of before/after images, ensuring the images are visible without needing to click collapse tags.
- “What is the best way to upload a screenshot to an Azure DevOps PR description?”
- The skill provides a PowerShell script using the HttpClient class to upload images as attachments via the Azure DevOps REST API, noting that you must use unique filenames for each upload.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/github/pr-screenshots/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip pr-screenshots.zip -d .agents/skills
Documentation by nohwnd
PR Screenshots
Embed before/after screenshots in pull request descriptions so reviewers can see the visual change without checking out the branch.
When to Use This Skill
Use this skill when a PR changes something visible:
Layout, styling, CSS
Charts, dashboards, data visualizations
UI components, forms, modals
Error messages, CLI output, log formatting
PR Description Pattern
Place screenshots directly in the PR description body. Avoid wrapping them in <details> collapse — reviewers are more likely to look at images they can see without clicking.
**Before** — brief description of the problem:

**After** — brief description of the fix:
Keep the text brief. A sentence or two per image describing what the reader should notice. Let the image carry most of the communication.
Multiple changes
For PRs with several visual changes, use separate before/after pairs with headings:
## 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:
Image Sizing
Take screenshots at native 1x resolution — don't resize with PIL (creates artifacts)
Control display size in HTML when images are too large:
<img src="url" width="600" alt="description">Before/after pairs must use the same viewport width and crop — otherwise the comparison is meaningless
Uploading Images
Azure DevOps
Upload images as PR attachments via 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).ResultReference in the PR description:
Azure DevOps gotchas:
Use
{org}.visualstudio.comNOTdev.azure.com/{org}— AzDO's markdown renderer uses.visualstudio.com. Thedev.azure.comformat loads noticeably slowerUse
POSTnotPUT(PUT returns 405)API version must be
7.1-preview.1Can't re-upload with the same filename — use a new name (e.g.
screenshot-v2.png)Use
HttpClientnotInvoke-RestMethod— IRM can corrupt binary dataRepo-relative paths don't work in PR descriptions — must use full URLs
Don't commit images to the branch just for PR screenshots
GitHub
⚠️ Work in progress. GitHub's drag-and-drop image upload uses internal endpoints that require browser cookies. There's no clean public API for uploading images to PR descriptions yet.
Current workaround: Commit images to a pr-assets orphan branch and reference via blob URLs (github.com/{owner}/{repo}/blob/pr-assets/{file}?raw=true). It works but is clunky — contributions for a better approach are welcome.
Guidelines
Capture before state BEFORE making changes — it's easy to forget, and reconstructing the original state later is slow and error-prone
Keep descriptions brief — a sentence or two per image pointing out what changed is enough
Prefer visible images over collapsed sections — screenshots behind
<details>tags are easy to skipAnnotate when the change is subtle — use the
image-annotationsskill to add callouts when the difference isn't immediately obviousMatch viewport and crop between before/after pairs so the comparison is meaningful
Limitations
GitHub image upload requires workarounds (no public API for PR description images)
Azure DevOps attachment filenames can't be reused — plan naming ahead
Very large images (>10MB) may not render inline on some platforms
Files
- ATTRIBUTION.mdAdded by AutoGineer857 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md4.8 KiB
Requirements and compatibility
Written for: GitHub Copilot
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- First committed by
nohwnd
- Publisher
- GitHub (Official)
- Distributed by
- GitHub
- Source
- github/awesome-copilot · skills/pr-screenshots · commit 797337f
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Contributors
- nohwnd
AutoGineer is not affiliated with or endorsed by nohwnd or GitHub.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download pr-screenshots.zip