К основному содержанию
скилл CX Codex

pr-screenshots · getsentry — скилл для Claude Code: установка и функции

Скилл pr-screenshots для Claude Code снимает скриншоты интерфейса Sentry для описания pull request. Запускается, когда PR меняет видимые пользователям элементы фронтенда.

Apache-2.0 232 установок ★ 1 193 обновлён 2026-10-23

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add getsentry/skills --skill pr-screenshots -a claude-code
Открыть на GitHub

Что делает pr-screenshots

Скилл собирает скриншоты изменённых экранов Sentry и оформляет их в описании pull request. Для визуальных изменений он сопоставляет снимки до и после, а неизменившиеся места выносит в отдельную таблицу. Агент учитывает разные состояния интерфейса и темы оформления.

Снимки делают в работающем приложении на ветке PR и базовой ветке; подменять интерфейс CSS или изменять DOM нельзя. Перед загрузкой изображения проверяются на секреты, а личные значения маскируются. Для отправки файлов через --attach нужна gh версии 2.99.0 или новее; если команда отклоняет этот флаг, требуется обновить gh.

Какие задачи решает

  • показать визуальные изменения интерфейса до и после правки
  • разнести изменённые и неизменившиеся экраны по таблицам
  • сопоставить состояния загрузки, ошибки и пустого экрана
  • проверить снимки на секреты перед публикацией

Примеры запросов агенту

  • Подготовь скриншоты до и после для изменений интерфейса Sentry в этом pull request.
  • Добавь в описание PR таблицы со снимками изменённых и неизменившихся мест.
  • Обнови снимки для затронутых экранов после нового коммита.

Как установить pr-screenshots

1Через Skills CLI (Vercel)

npx skills add getsentry/skills --skill pr-screenshots -a claude-code

2Вручную: положить файлы

~/.claude/skills/pr-screenshots/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/pr-screenshots/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о pr-screenshots

Как установить pr-screenshots в Claude Code?

Выполни npx skills add getsentry/skills --skill pr-screenshots -a claude-code. Файл скилла устанавливается по пути ~/.claude/skills/pr-screenshots/SKILL.md.

Что делает pr-screenshots?

Скилл снимает реальные экраны приложения до и после изменения фронтенда, проверяет изображения и добавляет их в описание pull request таблицами.

Что нужно для работы pr-screenshots?

Нужны работающая версия приложения для ветки PR и базовой ветки, а для загрузки снимков через --attach — gh версии 2.99.0 или новее.

Исходный текст

SKILL.md · Apache-2.0
---
name: pr-screenshots
description: 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`.
when_to_use: When a pull request intentionally modifies the frontend such that users would see a difference.
---

# 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

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

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

```markdown
**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:

```bash
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 `![alt](url)`. |
| 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.

© getsentry · Apache-2.0 · getsentry/skills

Похожие скиллы

Все скиллы по теме «Фронтенд и UI» →

Сначала — pr-screenshots от других авторов.

pr-screenshots официальный github Скилл pr-screenshots для GitHub Copilot, который встраивает скриншоты «до/после» прямо в описание pull request. Работает на PR, где меняется интерфейс: вёрстка, графики, формы, сообщения об ошибках. CX Codex +1 141установок sentry-pr-code-review getsentry Скилл sentry-pr-code-review выгружает замечания Seer Bug Prediction из комментариев к пуллреквестам GitHub, проверяет код на ошибки и сразу вносит исправления. CX Codex +1 642установок sentry-setup-releases getsentry Скилл sentry-setup-releases для Claude Code. Настраивает отслеживание релизов и деплоев в Sentry, связывая коммиты с ошибками в коде. Определяет, почему версия или виновные коммиты не видны в событиях. CX Codex +1 1 700установок workflow-progress-screenshots MengTo Скилл workflow-progress-screenshots обязывает агента присылать реальные скриншоты интерфейса по ходу работы, а не в конце задачи. Пригодится при правках фронтенда, анимаций, 3D-сцен и вёрстки. CX Codex +1 682установок ui-screenshots официальный github Скилл ui-screenshots снимает скриншоты веб-приложений и десктопных окон, чтобы показать изменения интерфейса до и после правок кода. CX Codex +1 209установок before-and-after vercel-labs Скилл before-and-after собирает готовые скриншоты и записи экрана в блок «до/после» и вставляет его в описание GitHub PR. CX Codex +1 3 200установок deslop davila7 Скилл deslop очищает ветку от типичного мусора нейросетей перед мерджем в основную кодовую базу. Находит лишние проверки, комментарии и костыли с типами через сравнение с main. CX Codex +1 437установок

Из того же набора27

Весь набор →
sred-project-organizer Скилл sred-project-organizer структурирует годовой отчёт по проектам для программы SRED и создаёт карточки с подтверждениями в Notion. CX Codex +1 2 200установок sred-work-summary Скилл sred-work-summary для Claude Code собирает PR, документы Notion и задачи Linear за рабочий период, группирует ссылки по проектам и создаёт приватный документ Notion со сводкой SRED. CX Codex +1 2 200установок typing-exclusion-worker Скилл typing-exclusion-worker убирает модули Python из списка исключений mypy в pyproject.toml, чинит типы и проверяет код тестами. Пригодится при параллельном закрытии долга по типизации. CX Codex +1 1 700установок pr-link-issue Скилл pr-link-issue для Claude Code и других платформ добавляет в описание PR раздел с ссылками на GitHub issue и тикет Linear. Связывает задачу с уже открытым PR. CX Codex +1 1 400установок triage-frontend-issues Скилл triage-frontend-issues разбирает новые issue в проекте sentry/javascript: архивирует шум и оставляет настоящие баги человеку. CX Codex +1 1 400установок document-api-endpoint Скилл document-api-endpoint документирует и типизирует эндпоинты Sentry через drf-spectacular. Помогает устранить расхождения между схемой OpenAPI и реальным ответом API. CX Codex +1 1 300установок secret-serialization Скилл secret-serialization ищет токены, пароли и API-ключи, утекающие через repr, asdict, model_dump или JSON.stringify в логи и трейсинг. CX Codex +1 494установок security-model Помогает определять, проверять и обновлять файлы SECURITY_MODEL.md для инструментов анализа безопасности. С его помощью настраиваются границы доверия и модель угроз. CX Codex +1 236установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой