Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

ui-before-after

Skill by Stirling-Tools

Captures before and after screenshots of the UI surfaces a branch or PR changes, then pixel-diffs them. It builds PR-ready before/after montage images for developers writing PR descriptions.

  • Score 88
  • 98k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install ui-before-after

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Stirling-Tools/Stirling-PDF /tmp/Stirling-PDF && mkdir -p ~/.claude/skills && cp -r /tmp/Stirling-PDF/.claude/skills/ui-before-after ~/.claude/skills/ui-before-after

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install ui-before-after in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

UI Before / After is a skill that takes a branch or pull request and works out which UI surfaces its changes touch. It captures screenshots of each surface before (from the base branch) and after (from the head). It derives the capture targets from the diff, mapping changed tool and route files to URLs, so screens do not have to be listed by hand.

The skill pixel-diffs each before and after pair and keeps only the views that visually differ. It auto-crops each comparison to the region that changed, and falls back to the full page when the change spans most of it. It then assembles montage images for the PR description. It does not post to the PR itself. It is aimed at developers who want before and after shots or a visual diff of UI changes in a frontend repository.

Written from the project's SKILL.md and checked against it.

What it can do

  • Diff-driven capture targetsMaps changed tool and route files in the diff to URLs, without a hand-written screen list.
  • Before and after screenshotsCaptures the base branch as before and the head as after, using a stubbed Playwright setup.
  • Pixel diffCompares each pair and keeps only views that visually differ, marking others as unchanged.
  • Auto-cropCrops each comparison to the bounding box of differing pixels, or keeps the full page when the change is large.
  • PR montage imagesAssembles before/after montage PNGs and a paste-ready Markdown block for the PR description.
  • Flexible targets and themesAccepts a PR number, PR URL or branch, and supports light, dark or both themes.

What you need

  • GitHub CLI (gh) to resolve pull requests
  • Node.js and npm
  • Playwright for the stubbed capture spec
  • Git with worktree support for the base capture

Try asking

  • Make before/after screenshots of the UI changes in PR 123
  • Show what changed in the UI on my current branch vs its base
  • Create a visual diff of this branch for the PR description in dark mode

Good to know

  • Does not post images to the PR; the user must drag the PNGs into the description
  • Pixel diff needs equal dimensions, so a view whose size changed is reported uncropped
  • Auto-crop uses one bounding box, so far-apart changes can produce one large crop
  • Requires two installs, one for the base worktree and one for the head

Security check

B
  • Allowed to use Write, Edit, Bash without limitsIn SKILL.md

Checked automatically: .claude/skills/ui-before-after/SKILL.md, .claude/skills/ui-before-after/capture-spec.template.ts, .claude/skills/ui-before-after/diff-shots.mjs, .claude/skills/ui-before-after/make_example.py, .claude/skills/ui-before-after/shoot-sections.mjs. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditGlobGrepBash

  • SKILL.md7 KB
  • capture-spec.template.ts3 KB
  • diff-shots.mjs5 KB
  • make_example.py2 KB
  • montage-template.html5 KB
Show all 6 files
  • shoot-sections.mjs1 KB

Alternatives to ui-before-after

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

ui-before-after: common questions

How does it decide which screens to capture?

It derives the capture targets from the diff by mapping changed tool and route files to URLs. It does not rely on a hand-written list of screens.

Does it post the screenshots to my pull request?

No. The source says it does not post to the PR. It outputs montage PNGs and a Markdown block for the user to paste into the description.

What happens when a screen errors on one side of the comparison?

The missing side is treated as absent, and the diff marks the view as added or removed instead of failing the run.

How do I install ui-before-after?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is ui-before-after free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is ui-before-after safe to use?

It scores 88 of 100. Grades: maintenance A, licence F, quality A. Security check: grade B (allowed to use write, edit, bash without limits). Review the code before you install. How grades work.

What are alternatives to ui-before-after?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

ui-before-after Install

Add to stack

Loading.