rea-ci-tests-audit
MOmorluto/rea486k8,943 new stars in the last 7 days
Put screenshots of a visible change, before and after, in the pull request (and on the issue), so reviewers can see it without running the app. Use whenever work changes what users see (a redesign, a new screen, styling, layout, empty or loading states, UI copy), when opening or updating a PR for such work, or when someone asks to see what something looks like.
Reviewers often look at UI work from the PR alone, sometimes on a phone. Every change they can see gets screenshots in the PR description. You already take screenshots to check your own work; these are the same ones, cropped and posted.
xcrun simctl create pr-shots "iPhone 17 Pro", boot, install, simctl ui <udid> appearance dark, simctl launch <udid> <bundle-id> <args>, simctl io <udid> screenshot <file>), deleted afterwards. Launch arguments that open the screen directly save a lot of tapping. In zsh, $ARGS holding several words is passed as one argument; write them out.Crop to the part that changed, with a little context, and scale to about 640px wide. Crop before and after to the same box so they line up. Use ImageMagick (sips --cropOffset is unreliable):
magick full.png -crop <w>x<h>+<x>+<y> +repage -resize 640x -strip out.png
To join several into one image (handy for issue trackers and chat):
magick a.png b.png c.png -background white -splice 24x0 +append -chop 24x0 -resize 1600x -strip strip.png
Agents can't reliably upload images to a PR description from the command line, so the images ride along on the PR branch and leave again before merge:
mkdir -p pr-assets && cp <images> pr-assets/
git add pr-assets && git commit -m "Screenshots for PR"
SHA=$(git rev-parse HEAD)
git rm -rq pr-assets && git commit -m "Remove PR screenshots"
git push
Embed them in the PR description as a table with a short caption per column, using the screenshot commit's SHA:
| Before | After |
|---|---|
| <img src="https://github.com/<owner>/<repo>/blob/<SHA>/pr-assets/before.png?raw=true" width="300"> | <img src="https://github.com/<owner>/<repo>/blob/<SHA>/pr-assets/after.png?raw=true" width="300"> |
For light and dark, use one row each: | Light | before | after |.
main; with merge commits they stay in history but not in the tree.gh api "repos/<owner>/<repo>/contents/pr-assets/after.png?ref=<SHA>" --jq .size.If the work is tracked in an issue tracker, post one comment with the joined image, a one-line caption saying what each panel shows, and the PR link. For Linear's MCP, upload in two steps within 60 seconds: prepare_file_upload (filename, image/png, exact byte size from stat -f %z), then curl -X PUT --data-binary @strip.png to the returned URL with every returned header, then save_comment with the returned markdown.
When the change is iterated after review, post new screenshots rather than editing old ones, so the history shows what changed.
pr-assets/ in the final diff (git diff origin/main --stat before asking for review).MOmorluto/rea486k8,943 new stars in the last 7 days
MOmorluto/rea486k8,943 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
Block dangerous git commands like push and reset --hard before they execute.
MAmattpocock/skills337k4,978 new stars in the last 7 days