pr-screenshots
What it does
This tool helps show how something changed visually in a code project. You can add 'before' and 'after' images to code update descriptions so others can understand the changes more easily.
When to use it
- βWhen you change the appearance of a website (colors, buttons, etc.).
- βWhen you create a chart or display data visually.
- βWhen you fix an error that appears on the screen.
Skill link
https://github.com/github/awesome-copilot/blob/main/skills/pr-screenshots/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 images to show the layout change for this button.β
5 new skills a week. 1 minute to read.
How it works
You insert the images directly into the code update description. For platforms like Azure DevOps, there's a specific way to upload images using code. For GitHub, the easiest way is to add the images to a separate location and reference them.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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).Result
Reference 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 slower - Use
POSTnotPUT(PUT returns 405) - API version must be
7.1-preview.1 - Can't re-upload with the same filename β use a new name (e.g.
screenshot-v2.png) - Use
HttpClientnotInvoke-RestMethodβ IRM can corrupt binary data - Repo-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 skip - Annotate when the change is subtle β use the
image-annotationsskill to add callouts when the difference isn't immediately obvious - Match viewport and crop between before/after pairs so the comparison is meaningful
Limitations
β¦
FAQ
Why is it important to show 'before' and 'after'?
It helps code reviewers see exactly what changed without having to test everything themselves, making the review faster and more efficient.
What happens if the images are too large?
Very large images might not display correctly on some platforms. It's good to control the size so they fit well on the screen.
Can I use any filename for images in Azure DevOps?
No, you cannot reuse the same filename to upload images again. You need to use a new name each time.
Details
Original description by the author
Embed before/after screenshots and annotated images in pull request descriptions. Covers PR description patterns, image upload for Azure DevOps and GitHub, and sizing best practices.
repo: github/awesome-copilot
Popularity
- GitHub stars
- 40k
- Ranking position
- #7342
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
acquire-codebase-knowledge
40kHelps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.
acreadiness-assess
40kEnables your agent to assess a project's readiness for AI and generate a report. It's useful for understanding how well a project is prepared to use AI tools.
acreadiness-generate-instructions
40kHelps your agent create instructions for AI tools based on an assessment. It's useful for improving how AI interacts with code and closing identified gaps.
acreadiness-policy
40kEnables your agent to help define or apply policies for AI project assessment. It's useful for standardizing how projects are evaluated and ensuring compliance.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.