
pr-screenshots
Capture screenshots of the Sentry UI in a web browser, lay them out in a pull request description as before/after tables, and upload them with gh --attach.
- Installs
- 268
- Last 24h
- +10
- Trending rank
- #8666
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/getsentry/skills --skill pr-screenshots- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads pr-screenshots automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
PR Screenshots
Screenshots in a PR are QA evidence. Each one shows what the real product renders at one location, framed so a reviewer who has never opened the page can tell what changed.
Step 1: List the Locations
List every place in the product that the diff reaches: each page, drawer, modal, or widget that renders a changed component, found by tracing its callers and consumers. Then add the states the change affects at each of them, such as loading, error, empty, hover, selected, menu open, expanded, scrolled, narrow viewport, and light or dark theme.
Never group surfaces into one row: for example, "GridEditable, as in Discover, dashboards and insights" is three rows.
Step 2: Capture From the Real Product
| Rule | Detail |
|---|---|
| Real build only | Screenshot the running app on the PR branch for "after" and on the base branch for "before". Never screenshot a story, mock page, or harness built for the PR, unless the change is to that story. |
| No injected changes | Never inject CSS or change the DOM to imitate the change. Stubbing API responses is fine; the frontend code must be the real code. |
| Seed missing data | If a state needs data no account has, create it in a local environment. Do not report a location as impossible to screenshot until seeding has been tried, and then say exactly what failed. |
| Identical framing | Capture the same region at the same dimensions for both shots of a pair, even when one state is taller. Emulate a fixed viewport instead of resizing the user's own browser window. |
| Context | Keep the heading or label that names the thing, nearby rows or controls, and a little padding on every side. For a hover, focus, or open-menu state, keep the trigger and the overlay in one frame. When the bug only makes sense in its page, show more of the page. |
| No empty bands | Crop out browser chrome, app navigation, and regions the change does not touch. For full-width layouts, shrink the viewport instead of leaving wide blank space beside short content. |
Step 3: Redact and Audit
- Blur only private values: emails, usernames, customer or organization names
and slugs, IDs, and internal hostnames. Keep keys, labels, and non-sensitive
values readable, such as
browser.name→chrome. - Paint over each region before blurring it so the blur can't be reversed. Never use solid black or dark boxes, and never blur whole tables or rows.
- Read every image before uploading it and check for credentials: tokens, auth headers, cookies, signed URLs, secret keys, and webhook endpoints. Remove real leaks. Do not treat a public client DSN as a leak.
Step 4: Choose the Table Shape
| Change | Shape |
|---|---|
| Visual change to existing UI | Changed table, plus an Unchanged table for locations the diff reaches that render the same. |
| New page or feature | No before/after. A few "after" screenshots, each introduced by a short sentence. When the new UI appears in several locations, use a Location | Screenshot table instead. |
| Alternatives with no "before", such as prototype treatments or design options | Treatment | Screenshot table, one row per alternative. |
| A change that differs by theme | Add a light and a dark row for each location, such as Explore › Logs, dark. For new UI, use Light | Dark columns instead. |
Pixel-diff every before/after pair. Move a pair with no visible difference, including anti-aliasing noise, to Unchanged with one image. Leave out a table that would be empty.
**Changed**
| Location | Before | After |
| --- | --- | --- |
| Explore › Logs |  |  |
| Explore › Logs, loading |  |  |
**Unchanged**
| Location | Before & After |
| --- | --- |
| Trace view › Logs |  |
Formatting rules:
- Name the first column
Location, orTreatmentfor alternatives. Never leave its header empty. - Write each location as a
›breadcrumb of what the reader clicks through, then a comma and the state:Monitors › cron monitor details › Check-Ins, loading. - Use only the columns shown above. Never add a "What changed" or notes column; the screenshots show the change.
- Give each image alt text naming its row and side, such as
Explore › Logs before. - Label the tables with bold
**Changed**and**Unchanged**lines. Do not add an intro sentence describing where or how the screenshots were taken. - Use Markdown tables by default, because
gh --attachrewrites only Markdown image references. Switch to an HTML table only when cells must span rows, such as a light and dark row under one location (Location | Theme | Before | Afterwithrowspan="2"on the location cell). Do not addalignattributes.
Step 5: Upload With gh
gh pr create, gh pr edit, gh pr comment, and the matching gh issue
commands accept --attach '<path>#<alt text>' (gh 2.99.0+). If gh rejects
the flag, ask the user to upgrade it. Do not push asset branches, commit
images, or upload through the browser's comment box.
Write the body file with relative Markdown image references, then pass the same
paths to --attach. gh uploads each file and rewrites the matching reference
to the uploaded URL in place:
gh pr edit 123 --body-file pr-body.md \
--attach './shots/logs-before.png' --attach './shots/logs-after.png'
| Behavior | Detail |
|---|---|
| Paths | Resolve against the current directory, and must match the body's references exactly. |
| Unreferenced attachments | Get appended to the end of the body as . |
| No body flag | gh pr edit --attach keeps the existing body and appends the images. |
| HTML tables | <img src="./x.png"> is not rewritten. Attach first, copy the appended URLs into the <img> tags, delete the appended lines, then write the final body with --body-file. |
Before writing a body the user may have edited, fetch it again and compare it with the version you last read. Keep the user's wording and table edits, swap in only your rows and URLs, and keep the body's line endings. Removing an image from the body does not delete the uploaded file.
Step 6: Keep Screenshots Current
When a later commit changes what a screenshot shows, retake the affected pairs, re-check which pairs belong in Changed and Unchanged, and update the body without waiting to be asked.
FAQ
What does the pr-screenshots skill do?
Capture screenshots of the Sentry UI in a web browser, lay them out in a pull request description as before/after tables, and upload them with gh --attach.
How do I install pr-screenshots?
Run npx skills add https://github.com/getsentry/skills --skill pr-screenshots in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/pr-screenshots/ (personal) or .claude/skills/pr-screenshots/ (project).
Which AI agents can use pr-screenshots?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is pr-screenshots safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains pr-screenshots?
It is published by getsentry in getsentry/skills. It has 268 recorded installs.
More from getsentry/skills
security-review
getsentry/skills
Security code review for vulnerabilities. Use when asked to "security review", "find vulnerabilities", "check for security issues", "audit security", "OWASP review", or review code for injection, XSS, authentication, authorization, cryptography issues. Provides systematic review with confidence-based reporting.
code-simplifier
getsentry/skills
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when asked to "simplify code", "clean up code", "refactor for clarity", "improve readability", or review recently modified code for elegance. Focuses on project-specific best practices.
agents-md
getsentry/skills
Creates and maintains concise AGENTS.md and CLAUDE.md project instruction files. Use when asked to create AGENTS.md, update AGENTS.md, maintain agent docs, set up CLAUDE.md, document repository agent conventions, or keep coding-agent instructions minimal and reference-backed.
find-bugs
getsentry/skills
Find bugs, security vulnerabilities, and code quality issues in local branch changes. Use when asked to review changes, find bugs, security review, or audit code on the current branch.
code-review
getsentry/skills
Perform code reviews following Sentry engineering practices. Use when reviewing pull requests, examining code changes, or providing feedback on code quality. Covers security, performance, testing, and design review.
gha-security-review
getsentry/skills
GitHub Actions security review for workflow exploitation vulnerabilities. Use when asked to "review GitHub Actions", "audit workflows", "check CI security", "GHA security", "workflow security review", or review .github/workflows/ for pwn requests, expression injection, credential theft, and supply chain attacks. Exploitation-focused with concrete PoC scenarios.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.