LE MÉDIA DE L’IA QUI SERT VRAIMENT.Édition française · Comprendre & passer à l’action
Sentry

Ajouter des captures à une PR Sentry

pr-screenshots

En bref

La skill prend des captures de l’interface Sentry dans un navigateur, les dispose dans la description d’une pull request sous forme de tableaux avant/après, et les joint avec gh --attach. Chaque image est une preuve de recette : elle montre ce que le produit réel rend, à un endroit précis, de façon qu’un relecteur qui n’a jamais ouvert la page comprenne le changement. On dresse d’abord la liste de toutes les surfaces touchées (page, tiroir, modal, widget), en remontant appelants et consommateurs, plus les états concernés (chargement, erreur, vide, survol, sélection, menu, expanded, défilement, viewport étroit, thème clair ou sombre). On ne regroupe pas plusieurs surfaces dans une seule ligne. Les captures « après » viennent du build de la branche de la PR, les « avant » de la branche de base : jamais d’une story, d’une page factice ou d’un harnais, sauf si le changement porte précisément sur cette story. On n’injecte ni CSS ni DOM pour imiter le changement ; bouchonner une API est permis, le code frontal doit rester le vrai. Si un état exige des données absentes, on les sème en local avant de déclarer l’impossible, en expliquant alors l’échec. Les deux clichés d’une paire ont le même cadrage et les mêmes dimensions ; on émule un viewport plutôt que de redimensionner la fenêtre de l’utilisateur. Les zones sensibles sont masquées, et les captures restent à jour si l’UI évolue encore.

Ce que ça fait

  • Qualifie le produit réel, branche PR contre branche de base, sans maquette ni bidouille de DOM.
  • Dédie une ligne de tableau à chaque surface, avec les états réellement affectés.
  • Tente de semer les données manquantes avant d’abandonner une capture.
  • Téléverse ensuite avec gh --attach et maintient les images si le diff change encore.

Pour qui, et un exemple

Auteurs de PR d’interface Sentry qui doivent donner à la revue une preuve visuelle fidèle, pas une storybook de démonstration.

Exemple de demande : Un changement touche une grille et un tiroir, en thème clair et sombre : la skill en fait quatre paires cadrées à l’identique, issues du vrai build, puis les attache à la PR.

Quand on doit illustrer une pull request Sentry par des captures avant/après, posées en tableaux et jointes avec gh. Exemple rédigé par iadujour.fr à partir du SKILL.md, non testé.

Installer

npx skills add getsentry/skills ou, dans Claude Code, claude plugin marketplace add getsentry/skills puis claude plugin install sentry-skills@sentry-skills.

npx skills add getsentry/skills
claude plugin marketplace add getsentry/skills
claude plugin install sentry-skills@sentry-skills

Fonctionne avec

  • Claude Code
  • Cursor
  • Cline
  • GitHub Copilot

Source : README : installation Claude Code, et skills.sh « Works with Claude Code, Cursor, Cline, GitHub Copilot, and other compatible agents ».

Niveau : Intermédiaire

Suppose un projet déjà en place chez l’éditeur et les outils décrits dans le SKILL.md.

À savoir

Dépôt officiel Sentry ; le README précise que ces skills sont destinées aux employés Sentry.

Extrait du SKILL.md

La description d’origine, celle que l’agent lit pour décider de charger la skill (en anglais) :

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

Citée depuis le SKILL.md au commit c153d1c . Le dossier contient aussi 1 fichier annexe.

Le SKILL.md compte 118 lignes et 6 sections principales :

  • Step 1: List the Locations
  • Step 2: Capture From the Real Product
  • Step 3: Redact and Audit
  • Step 4: Choose the Table Shape
  • Step 5: Upload With gh
  • Step 6: Keep Screenshots Current

Licence : Apache 2.0

Vérifiée le 10 novembre 2026 sur : fichier LICENSE du dépôt .

La licence autorise la reprise : le texte intégral du SKILL.md est reproduit ci-dessous, sans modification, avec sa mention de licence.

Texte intégral du SKILL.md

Reproduit sans modification depuis getsentry/skills (commit c153d1c) , © Sentry, sous licence Apache 2.0 (fichier de licence d’origine ).

Afficher le SKILL.md original (118 lignes, en anglais)
---
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.
Source. Fiche rédigée par iadujour.fr à partir de : Frontmatter, sections et corps du SKILL.md, README du dépôt. Consultée le 10 novembre 2026. Dépôt : getsentry/skills .
MÊME ÉDITEUR

Autres skills Sentry : Observabilité et supervision

Toute la catégorie
SentryObservabilité et supervision

Recommander les permissions Claude Code

claude-settings-audit

La skill analyse un dépôt pour proposer des permissions Claude Code (settings.json) adaptées aux commandes en lecture seule.

Outils : Claude Code, Cursor, Cline +1Niveau : Intermédiairemàj 05/11/2026
SentryObservabilité et supervision

Parcourir un Sentry local dans le navigateur

browse-local-sentry

La skill connecte le navigateur d’un agent à un serveur de développement Sentry local : soit dev-ui (pnpm run dev-ui) sur une URL du type org-slug.dev.getsentry.net et un port, soit le devserver complet (devservices serve) en http://dev.getsentry.net:8000/.

Outils : Claude Code, Cursor, Cline +1Niveau : Intermédiairemàj 26/10/2026
SentryObservabilité et supervision

Démarrer avec Sentry

sentry-get-started

Point d’entrée guidé pour utiliser Sentry via un agent : on oriente d’abord selon la configuration déjà en place, puis, pour un projet nouveau, on installe Sentry de bout en bout avec des réglages raisonnables (provisionner un projet, installer le SDK, confirmer l’arrivée d’une vraie télémétrie).

Outils : Non précisé par l’éditeurNiveau : Intermédiairemàj 23/10/2026
ÉCHANGES

Commentaires.

Un retour d’expérience, une question, une précision sur cette skill ? Les commentaires sont relus avant publication.

Commentaires publiés

Chargement des commentaires…

    Laisser un commentaire

    Charte de modération. Chaque commentaire est relu avant publication. Sont refusés : l’incitation à la haine, les propos injurieux ou discriminatoires, la publicité, le spam et les liens promotionnels, le hors-sujet et les données personnelles d’autrui.