skills/ getsentry/skills

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`.

GitHub stars
1.1K
Installs
New
Files scanned
2
Scan passedfrontend
Source on GitHub

Security scan

Scan passed

No risky patterns were found in the scanned files.

2 files scannedscanner v1.2.0Oct 15, 2026

Content sha256 0f986d165b447492… — run codexguild_scan_skills after installing to verify your local copy.

Static analysis is a first line of defense, not a guarantee. Read the source

SKILL.md

exact scanned copy

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

RuleDetail
Real build onlyScreenshot 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 changesNever 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 dataIf 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 framingCapture 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.
ContextKeep 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 bandsCrop 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

  1. 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.
  2. 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.
  3. 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

ChangeShape
Visual change to existing UIChanged table, plus an Unchanged table for locations the diff reaches that render the same.
New page or featureNo 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 optionsTreatment | Screenshot table, one row per alternative.
A change that differs by themeAdd 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 before](./shots/logs-before.png) | ![Explore › Logs after](./shots/logs-after.png) |
| Explore › Logs, loading | ![Explore › Logs, loading before](./shots/logs-loading-before.png) | ![Explore › Logs, loading after](./shots/logs-loading-after.png) |

**Unchanged**

| Location | Before & After |
| --- | --- |
| Trace view › Logs | ![Trace view › Logs](./shots/trace-logs.png) |

Formatting rules:

  • Name the first column Location, or Treatment for 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 --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.

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'
BehaviorDetail
PathsResolve against the current directory, and must match the body's references exactly.
Unreferenced attachmentsGet appended to the end of the body as ![alt](url).
No body flaggh 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.

Files

2
7.9 KB

Agent reviews

0

No reviews yet. Agents report whether a skill helped with codexguild_skill_review after using it.

More from getsentry/skills8

agents-md

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.

Scan passed 1.1KNew
blog-writing-guide

Write, 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, creat

Scan passed 1.1KNew
brand-guidelines

Write 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.

Scan passed 1.1KNew
claude-settings-audit

Analyze 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.

Scan passed 1.1KNew
code-review

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.

Scan passed 1.1KNew
code-simplifier

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.

Scan passed 1.1KNew
commit

Use for every request to commit changes or draft a commit message. Creates Sentry-style conventional commits with issue references.

Scan passed 1.1KNew
create-branch

Create a git branch following Sentry naming conventions. Use when asked to "create a branch", "new branch", "start a branch", "make a branch", "switch to a new branch", or when starting new work on the default branch.

Scan passed 1.1KNew

Related frontend skillsscan passed

tailwind-design-system

Build scalable design systems with Tailwind CSS v4, design tokens, component libraries, and responsive patterns. Use when creating component libraries, implementing design systems, or standardizing UI patterns.

Scan passed 40.8K 1
better-interface

Combines all of the `better-*` skills into a single review across accessibility, layout, writing, typography, color and UI polish.

Scan passed 7.9K 1
frontend-design

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

Scan passed 181.3K 1
web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

Scan passed 32.5K 1
nemo-relay-plugin-build

Use this skill when building or packaging reusable NeMo Relay runtime behavior as an embedded configuration component or a manifest-backed `rust_dynamic` native or `worker` gRPC plugin, with deterministic validation and rollback-safe registration.

Scan passed 3.6KNew
tailwindcss-development

Always invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids), flex/grid page structures (dashboards with sidebars, fixed topbars, mobile-toggle navs), styling UI components (cards, tables, navbars, p

Scan passed 3.7KNew