Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

sideshot

/sideshot

Robi zrzuty ekranu przed i po zmianie w pull requeście, tylko dla zmienionego fragmentu strony, i wstawia tabelę do opisu PR.

Repozytorium
sideshot ↗
Licencja
MIT
Ostatnia zmiana repozytorium
09.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
6
Skrypty
4
Komentarze HTML
0
Adresy URL w SKILL.md
5
Przestarzałość

Brak sygnałów. Repozytorium zmienione 09.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 4 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/draw.mjs, scripts/hook.mjs, scripts/lib.mjs, scripts/sideshot.mjs

Co robi i kiedy

Robi zrzuty ekranu przed i po zmianie w pull requeście, tylko dla zmienionego fragmentu strony, i wstawia tabelę do opisu PR.

Wyzwalacze z opisu

sideshot
Oryginalny opis (EN)

Before-and-after screenshots of the part of a page a pull request changes (a component, a section, a style), not the whole page, on a desk and a phone, optionally in dark mode, with what changed marked, shown to the user first, then kept on a branch of their own and put in the PR description as a table. Use when opening or updating a PR with visible UI changes, or when asked for before and after pictures, screenshots for review, to show reviewers how something looked and looks now, visual proof of a change, or to "sideshot" a PR. Load it before planning the pictures, even when asked not to run

Jak działa

  1. 1. Decide what to picture, from the diff
  2. 2. Where before and after run
  3. 3. Take, look, then publish what you looked at
  4. 4. Clean up old pictures
  5. Things to know
Sekcje z nagłówków SKILL.md, w oryginale · 76 linii, 768 słów
Podgląd SKILL.md
---
name: sideshot
description: Before-and-after screenshots of the part of a page a pull request changes (a component, a section, a style), not the whole page, on a desk and a phone, optionally in dark mode, with what changed marked, shown to the user first, then kept on a branch of their own and put in the PR description as a table. Use when opening or updating a PR with visible UI changes, or when asked for before and after pictures, screenshots for review, to show reviewers how something looked and looks now, visual proof of a change, or to "sideshot" a PR. Load it before planning the pictures, even when asked not to run anything yet.
license: MIT
metadata:
  version: 0.7.1
  homepage: https://github.com/victorsaly/sideshot
allowed-tools: Bash(node ${CLAUDE_SKILL_DIR}/scripts/*)
---

# SideShot: see the change, side by side

The same part of a page before and after a change, side by side, on a desk and a phone, kept on a `sideshot`
branch that never merges, with a table in the PR description. The script is `scripts/sideshot.mjs` next to this
file (in Claude Code, `${CLAUDE_SKILL_DIR}`); run it with Node from the project's folder. `--help` says every
option, so there is no need to read the script.

## 1. Decide what to picture, from the diff

- **The page** the change shows on (`--page /pricing`), one run per page.
- **The parts** that changed, each a name and a CSS selector: `--part plans=#plans`. The part, not the whole page,
  so before and after line up (`--part page=body` when it is the whole page). Names: letters, digits, `-`, `_`.
- **Something to press first**, when the part only shows then: `--click "button:has-text('Open')"`.
- **Dark mode** when colour or contrast changed: `--schemes light,dark`. Other screens only when the project or
  the user names them (`--devices`; desk and phone otherwise).
- **What to say on the picture**: two or three `--note "selector=what changed"` (a numbered ring, its words under
  the table), and `--mark-changes` to box whatever else differs.
- **A new feature**, with nothing before it to compare (a new page, section or component): a part not there
  before is shown by itself, as it is, with nothing drawn on it, and the table says what's new. When you know it is
  all new, `--new` does that sooner, without opening before (no `--before`, `--note` or `--mark-changes`).

The pull request is found with `gh` for this branch; when there is none yet, open it first.

## 2. Where before and after run

- **After** is this branch: start the project's dev or preview server in the background, and give its address
  (`--after http://localhost:4321`).
- **Before** is the site as it is: production or a preview (`--before https://example.com`). When that cannot
  show the page (a login, other data), or the page reads data only production has, see
  [reference.md](reference.md).
- Put both in `.sideshot.json` at the project's root (`{ "before": "…", "after": "…" }`), so later runs need
  only `--part`.

## 3. Take, look, then publish what you looked at

```bash
node <this skill's folder>/scripts/sideshot.mjs --page /pricing --part plans=#plans \
  --before https://example.com --after http://localhost:4321 --mark-changes
```

It says, in a few lines, where the pictures are (`.sideshot/<pr>/`) and names an overview sheet for each part,
every pair before beside after. **Open the overview, not each picture.** Check that the part is the right one and
that the change shows; the run also says where nothing changed, what is not on the page, and what could not be
pressed. If the page was not done drawing, give it longer (`--wait 3000`) and run again.

A pair that is the same before and after is not kept. When nothing is left to compare, the run stops (exit 3) and
says why: check that `--after` is this branch and that `--page` and `--part` show the change. If the change truly
does not show there, `--update-pr --reuse` says so in the PR description, and why, in place of a table.

When the pictures show the change, publish those same pictures: the same command with `--update-pr --reuse`. It
pushes them to the `sideshot` branch and puts the table in the PR description, replacing an earlier one. This
writes to the repository: do it only for the user's own PR, and tell them, with the link.

## 4. Clean up old pictures

Every pull request adds a folder of pictures to the `sideshot` branch, and nothing takes them off by itself. When
the user asks to clean up, or the branch has grown large, prune it:

```bash
node <this skill's folder>/scripts/sideshot.mjs --prune [--older-than 30]
```

It takes off the folders of pull requests closed or merged at least that many days ago (30 unless said), and keeps
those of open ones. The branch is written again as one commit of what is left, so the repository really gets
smaller. **The pruned pull requests no longer show their pictures**, so say that to the user first, and ask before
using a small `--older-than`. The push is refused if anyone pushed to the branch since SideShot read it; run it
again then.

## Things to know

- **Playwright** comes from the project, or from a global install for a project without Node. If there is none,
  the script says so: ask before adding it.
- **Add `.sideshot/` to `.gitignore`.**
- Running `main` locally as "before", stand-in data, devices, colours and the tag: [reference.md](reference.md).
Pliki w paczce (6)
  • SKILL.md 5 KB
  • reference.md 4 KB
  • scripts/draw.mjs 34 KB
  • scripts/hook.mjs 3 KB
  • scripts/lib.mjs 39 KB
  • scripts/sideshot.mjs 34 KB

Wersje

W bazie nie ma innych skilli o nazwie sideshot.

Migawka bazy z 13.11.2026 · wersja paczki 3b033cfa23dd (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 3 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100ccvd
    Porównuje wygląd stron przed i po zmianie, tworzy zrzuty ekranu do pull requesta i szuka regresji wizualnych.
  • 100take-doc-screenshots
    Robi zrzuty ekranu działającej aplikacji pgconsole do dokumentacji i wstawia je do plików .mdx.
  • 90capture-screenshots
    Robi zrzuty ekranu każdego stanu, rozmiaru i ustawienia jako dowód do pull requesta przy każdej zmianie interfejsu.
  • 100visual-proof
    Robi zrzuty ekranu strony przed i po zmianie w punktach 375, 768 i 1440 px w motywach jasnym i ciemnym przez Playwright, aby udowodnić różnicę wizualną.
  • 100pr-screenshots
    Robi zrzuty ekranu przed i po zmianie wizualnej w grze, na desktopie i mobile, i dołącza je do opisu pull requestu.
  • 100lite-screenshots
    Dodaje do pull requestów zmieniających apps/lite/ui zrzuty ekranu przed i po, wykonane lokalnie na przygotowanych danych, oraz rozszerza katalog w screenshots.spec.ts.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.