Skip to content
Back to search

before-and-after

An agent skill that attaches existing screenshots and screen recordings to a GitHub pull request as a before/after block.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/vercel-labs-before-and-after/badge.svg)](/listings/vercel-labs-before-and-after)

HTML

<a href="/listings/vercel-labs-before-and-after"><img src="/api/listings/vercel-labs-before-and-after/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

npx skills add vercel-labs/before-and-after#main

Requires `agent-browser` and GitHub CLI 2.99+ (for `gh --attach`).

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 43 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # before-and-after
  2. An agent skill that attaches existing screenshots and screen recordings to a GitHub pull request as a before/after block.
  3. Browser work belongs to [agent-browser](https://agentbrowser.dev) and its bundled skills. Uploads belong to `gh --attach`. This skill owns the workflow between them and one dependency-free script that formats media and replaces a marked block in the PR body.
  4. ![before-and-after](https://jm.sv/before-and-after/opengraph-image.png)
  5. ## Install
  6. ```bash
  7. npx skills add vercel-labs/before-and-after#main
  8. ```
  9. Requires `agent-browser` and GitHub CLI 2.99+ (for `gh --attach`).
  10. ## What it produces
  11. - Side-by-side image tables for before/after pairs, with equal-height full-page captures so tops align.
  12. - `Preview` blocks for after-only media.
  13. - Own-line videos that GitHub renders as players, and a two-step HTML video table once attachment URLs exist.
  14. - Idempotent replacement of one `<!-- before-and-after:start/end -->` block; the rest of the PR description is untouched.
  15. - Placement guidance that keeps real visual proof near the top and ahead of clearly labeled supplemental demos.
  16. See `skill/SKILL.md` for the workflow.
  17. ## Verification
  18. Each layer answers one question. Details in `VERIFICATION.md`.
  19. | Command | Runs | Proves | Needs |
  20. |---|---|---|---|
  21. | `pnpm test` | CI, every PR | `format.mjs` markup and marker replacement, including error paths | nothing |
  22. | `pnpm verify:skill` | CI, every PR | package ships only `skill/`; every `--flag` in SKILL.md exists in `format.mjs` and vice versa | `npm` |
  23. | `pnpm verify:local` | CI, every PR | with the installed agent-browser: the padding recipe yields equal-height pairs, the recorder produces real frames at the stated fps, `record start` drops headers as SKILL.md warns | `agent-browser`, `ffprobe` |
  24. | `pnpm verify:github` | CI weekly and on non-fork PRs once `FIXTURE_GITHUB_TOKEN` is set; local otherwise | GitHub renders what SKILL.md claims (cell mapping, top alignment, playable video) and the exact `gh pr edit --attach` publish sequence works, twice, preserving prose | `gh`, `agent-browser`, fixture PR |
  25. | `pnpm verify:agent` | local, before releases | Claude Code following SKILL.md unassisted produces a correct PR | `claude`, ~$2 |
  26. `pnpm verify` runs the first three.
  27. ## Scope
  28. Does not wrap `agent-browser`, capture URLs, manage Vercel authentication, convert video, or host media.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.