/sentry-skills:pr-screenshotsfrom sentry-skills
Captures before/after screenshots of the Sentry UI for PRs that modify the frontend, then lays them out in a PR description table and uploads with gh --attach.
Ships in sentry-skills. 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.
Read when SKILL.md points to them.
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.
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.
| 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. |
browser.name → chrome.| 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:
Location, or Treatment for alternatives. Never
leave its header empty.› breadcrumb of what the reader clicks through,
then a comma and the state: Monitors › cron monitor details › Check-Ins, loading.Explore › Logs before.**Changed** and **Unchanged** lines. Do not add
an intro sentence describing where or how the screenshots were taken.gh --attach rewrites 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 | After with rowspan="2" on the location cell).
Do not add align attributes.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.
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.
What SKILL.md sets; muted values are Claude Code's defaults
When a pull request intentionally modifies the frontend such that users would see a difference.
Three short reads, in order
31 skills in this plugin
/agents-mdCreates 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./blog-writing-guideWrite, review, and improve blog posts for the Sentry engineering blog following Sentry's specific writing standards, voice, and quality bar. Use this skill whenever someone asks to write a blog post, draft a technical article, review blog content, improve a draft, write a product announcement, create an engineering deep-dive, or produce any written content destined for the Sentry blog or developer audience. Also trigger when the user mentions "blog post," "blog draft," "write-up," "announcement post," "engineering post," "deep dive," "postmortem," or asks for help with technical writing for Sentry. Even if the user just says "help me write about [feature/topic]" — if it sounds like it could become a Sentry blog post, use this skill./brand-guidelinesWrite copy following Sentry brand guidelines. Use when writing UI text, error messages, empty states, onboarding flows, 404 pages, documentation, marketing copy, or any user-facing content. Covers both Plain Speech (default) and Sentry Voice tones./browse-local-sentryConnects an agent's browser to a local Sentry dev server (dev-ui on *.dev.getsentry.net or the full devserver)./claude-settings-auditAnalyze a repository to generate recommended Claude Code settings.json permissions. Use when setting up a new project, auditing existing settings, or determining which read-only bash commands to allow. Detects tech stack, build tools, and monorepo structure./code-reviewPerform 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.npx claudepluginhub getsentry/skills --plugin sentry-skillsOther plugins' skills for the same job