Help Center
Workflows 3 min read · Updated 2026-12-03

Capturing before-and-after screenshots and updating one pull request comment

Run /reggie, capture matching before and after shots, rebuild a baseline from git, and keep every change in a single PR comment.

Reggie works best when you call it before you start editing. Type /reggie, say what you're changing, and Claude handles the capture, comparison, and pull request comment. This guide shows what happens at each step and how to handle late baselines and multiple screens.

Reggie's four steps: capture before, make the change, capture after, update the pull request
The capture loop Reggie runs for each visual change

1. Run /reggie before you edit

Start your app, then tell Claude something like: "/reggie, I'm moving the account menu actions into two groups." Claude picks a short name for the change, such as account-menu, and captures the before:

node ~/.claude/skills/reggie/scripts/reggie.mjs capture --name account-menu --slot before --route /settings --selector '[data-testid="account-menu"]'

Use --selector to capture one component instead of the whole page. Use --mask '.live-clock' to hide things that change every load, like clocks or random avatars.

2. Already made the change? Rebuild the baseline

If your edits are already committed, the old screen is gone from your files. Reggie can bring it back:

node ~/.claude/skills/reggie/scripts/reggie.mjs baseline --name dashboard-nav --route /dashboard

Reggie checks out the commit your branch started from in a temporary folder, starts the app there on a spare port (default 3101), captures the before, cleans up, then captures the after from the app you already have running. Your branch, files, and dev server aren't touched. Use --base <ref> to compare against a different commit.

This needs the baseline block in .reggie.json, covered in Installing and setting up Reggie. If the old version won't start or the page didn't exist yet, Reggie stops and tells you. It never posts an after-only report.

3. Match the after shot exactly

After the edit, Claude captures the same name with --slot after. Both shots must match on:

  • route and query string
  • viewport size, like 1440×1000 or 390×844
  • signed-in user and test data
  • scroll position and color scheme (--color-scheme light or dark)
  • masked areas and selected component

Claude opens both images from .reggie/screenshots/ and checks them before going further.

4. Write the card and publish

Claude runs add with a title and one sentence:

Good Weak
Account menu has clearer actions UI fixes
Pricing cards now point to the annual plan Updated CSS

Then publish --pr 184 (or just publish for the current branch) uploads the card and posts the comment.

Reggie homepage showing a sample pull request comment with two documented visual changes
One Reggie comment holding several numbered changes

Several routes, one comment

Give each screen or state its own name: dashboard-desktop, dashboard-mobile, checkout-empty, account-menu-open. Each becomes a numbered section in the same comment. Rerun a name and its section is replaced, not duplicated. The comment starts with a hidden <!-- reggie-visual-report --> marker, so every publish edits it in place. Your reviewers get one tidy comment instead of a pile of screenshots.

Want a clean slate? Ask Claude to run reggie reset.

Troubleshooting

If you see Try this
Before and after are different sizes Pass the same --width and --height to both captures.
A second Reggie comment appeared Don't edit or delete the hidden marker line in the first comment.
Baseline app times out Raise readyTimeoutMs in the baseline block.

See Troubleshooting and FAQ for more.

Frequently Asked Questions

I already changed the code. Can Reggie still get a before shot?

Yes. Reggie rebuilds the old version from the commit your branch started from, captures it, then captures your current app.

Will Reggie post a new comment every time I run it?

No. A hidden marker lets Reggie find and edit the same comment on every run.

How do I document a mobile layout?

Capture with --width 390 --height 844 for both the before and after, and give it its own name like dashboard-mobile.

Helpful?
Reggie
Ready to try it or check your settings?

More Reggie guides