OHREN_Lab

Open source오픈소스ui-diffui-diff

ui-diff, an MIT-licensed agent skill that posts before and after screenshots, highlighted pixel diffs and a short UX summary as one sticky comment on pull requests that change UIui-diff, UI를 바꾼 풀 리퀘스트에 전후 화면과 칠한 픽셀 차이, 짧은 UX 요약을 고정 댓글 하나로 다는 MIT 라이선스 에이전트 스킬

ui-diff is an MIT-licensed agent skill for Claude Code, Cursor and other agents, with a TypeScript CLI for people and CI, that posts before and after screenshots, highlighted pixel diffs and a short UX summary as one sticky comment on pull requests that change UI. It needs macOS or Linux (WSL2 on Windows), git and Node.js 20.10+, downloads Playwright Chromium (~150 MB) on the first capture, and needs the GitHub CLI signed in only to publish the comment and for the --pr option. Images are committed to an orphan branch of the same repository so only people who can read the repo can see them, and public repositories are refused unless a separate flag allows them.ui-diff는 UI를 바꾼 풀 리퀘스트에 전후 스크린숏, 바뀐 픽셀을 칠한 차이 그림, 짧은 UX 요약을 고정 댓글 하나로 다는 MIT 라이선스 에이전트 스킬로, Claude Code · Cursor 등에서 쓰고 사람과 CI가 돌리는 TypeScript CLI가 붙어 있습니다. macOS나 Linux(Windows는 WSL2), git, Node.js 20.10 이상이 필요하고, 첫 캡처 때 Playwright의 Chromium(약 150MB)을 받으며, 댓글을 올릴 때와 --pr 옵션에만 GitHub CLI 로그인이 필요합니다. 그림은 같은 저장소의 고아 브랜치에 커밋되어 저장소를 읽을 수 있는 사람에게만 보이고, 공개 저장소에는 따로 허락하는 옵션 없이 올리지 않습니다.

Checked확인일

ui-diff is an agent skill that posts before and after screenshots, highlighted pixel diffs and a short UX summary as one sticky comment on pull requests that change UI, and it is MIT-licensed. The skill works in Claude Code, Cursor and other agents and comes with a TypeScript CLI that people and CI can run directly. The README treats screenshots of private company code as being as sensitive as the code, so ui-diff never sends them to public or third-party image hosts; it commits them to an orphan branch, ui-diff-assets, of the same repository, where they render only for signed-in users with read access.ui-diff는 UI를 바꾼 풀 리퀘스트에 전후 스크린숏, 바뀐 픽셀을 칠한 차이 그림, 짧은 UX 요약을 고정 댓글 하나로 다는 에이전트 스킬이고 MIT 라이선스입니다. Claude Code · Cursor 등에서 쓰는 스킬에 사람과 CI가 바로 돌릴 수 있는 TypeScript CLI가 붙어 있습니다. README는 회사 비공개 코드의 스크린숏이 코드만큼 민감하다고 보고 공개 · 제3자 그림 호스트로 보내지 않으며, 같은 저장소의 고아 브랜치 ui-diff-assets에 커밋해 읽기 권한이 있는 로그인 사용자에게만 보이게 한다고 적었습니다.

It needs macOS or Linux (WSL2 on Windows), git and Node.js 20.10+, and the GitHub CLI signed in is only needed to publish the comment and for the --pr option. Publishing checks repository visibility first and refuses public repositories unless --allow-public-repo is passed. The README notes that everyone with read access, including outside collaborators, can open the images and that deleted images may persist in GitHub caches for a while. Credentials for protected previews come only from environment variables and go only to the preview origins.macOS나 Linux(Windows에서는 WSL2), git, Node.js 20.10 이상이 필요하고 GitHub CLI 로그인은 댓글을 올리는 publish와 --pr 옵션에만 쓰입니다. publish는 먼저 저장소 공개 여부를 재어 공개 저장소는 --allow-public-repo 없이는 거부합니다. README는 바깥 협업자를 포함해 저장소를 읽을 수 있는 사람은 누구나 그림을 열 수 있고, 지운 그림이 GitHub 캐시에 한동안 남을 수 있다고 적었습니다. 보호된 미리보기의 자격 증명은 환경 변수에서만 받아 그 미리보기 주소로만 보냅니다.

The tool maps UI files changed between base and head to routes through its config, framework routing conventions (Next.js, SvelteKit, Nuxt, Astro, Remix, TanStack Router, plain HTML) and an import graph, then runs both sides in temporary git worktrees or uses existing preview URLs. It captures with Playwright under the same inputs on both sides, with a frozen clock, seeded randomness and stopped animations, and pixelmatch writes, for each changed area, a base | head pair, a blink GIF and a before | after | diff crop. An element map measures style changes so the comment names what changed instead of only counting pixels.도구는 base와 head 사이에 바뀐 UI 파일을 설정, 프레임워크 라우팅 규칙(Next.js, SvelteKit, Nuxt, Astro, Remix, TanStack Router, 일반 HTML), import 그래프로 경로에 잇고, 두 쪽을 임시 git worktree에서 띄우거나 이미 있는 미리보기 주소를 씁니다. Playwright로 시계를 멈추고 난수를 고정하고 애니메이션을 멈춘 같은 조건에서 찍고, pixelmatch로 바뀐 자리마다 base | head 쌍, 깜빡이는 GIF, before | after | diff 조각을 만듭니다. 요소 지도로 스타일 변화를 재어 댓글이 픽셀 수 대신 바뀐 값을 말합니다.

Full-page comparison from the ui-diff repository for a sample site named Acme Analytics, in three panels labelled BEFORE, AFTER and DIFF 0.34%: after the change the Start free trial button is larger with rounder corners, the See how it works link has shifted right and the Work email label is blue, and the diff panel marks those places in pink.
Image: ui-diff repository example.그림: ui-diff 저장소 예제. MIT © imuratalpay · MIT License Open original원본 보기

Links, buttons and form fields in the first viewport are also checked hovered and reached with the Tab key, recorded flows are replayed on both sides and diffed at each checkpoint, and a single component can be diffed on its own. Extras behind flags or config keys are a variant compare that puts every value of a query param side by side, before and after GIFs of a scripted hover, click or scroll, a token audit for colors, spacing, radii and type that match no design token, and an accessibility delta that runs axe-core on both sides and reports only new and fixed issues plus tab-order changes.첫 화면의 링크 · 버튼 · 입력란은 마우스를 올린 상태와 Tab 키로 닿은 상태도 확인하고, 기록해 둔 흐름(flows)은 두 쪽에서 되풀이해 체크포인트마다 견주며, 구성 요소(components) 하나만 따로 견줄 수도 있습니다. 플래그나 설정으로 켜는 덤은 쿼리 값마다 나란히 견주는 변형 비교, 정해 둔 hover · click · scroll의 전후 GIF, 디자인 토큰에 없는 색 · 간격 · 모서리 · 글자 값을 찾는 토큰 감사, axe-core로 새로 생기거나 고쳐진 접근성 문제와 탭 순서 변화를 알리는 기능입니다.

Setup clones the repository and runs install.sh with --claude or another agent flag; the first run installs the npm dependencies and builds the skill in about a minute, and the first capture downloads Playwright Chromium (~150 MB). On a feature branch, ui-diff init writes ui-diff.config.json and ui-diff check compares the working tree with the merge base in a short summary, with the comment preview and images in .ui-diff/. Nothing is posted until ui-diff publish runs, and reruns edit the same comment in place.설치는 저장소를 받아 install.sh를 --claude 등으로 돌리는 방식이고, 첫 실행은 npm 의존성을 깔고 빌드하며(약 1분) 첫 캡처는 Playwright의 Chromium(약 150MB)을 받습니다. 작업 브랜치에서 ui-diff init이 ui-diff.config.json을 쓰고 ui-diff check가 작업 트리와 머지 베이스를 견준 짧은 요약을 내며, 댓글 미리보기와 그림은 .ui-diff/에 쌓입니다. ui-diff publish를 돌리기 전에는 아무것도 올라가지 않고, 다시 돌리면 같은 댓글을 고쳐 씁니다.

An app with dependencies needs a lockfile; without one ui-diff runs npm install separately in the worktrees, which is slower and can leave base and head with different versions. A Figma fidelity check, a sweep across breakpoints with long-text and RTL variants, and a design sign-off gate are on the roadmap and not built yet. GitHub Mobile and email notifications may not render the images.앱에 의존성이 있으면 잠금 파일이 필요하고, 없으면 worktree마다 npm install을 돌려 더 느리고 base와 head의 버전이 달라질 수 있습니다. Figma 대조, 여러 화면 폭과 긴 글 · RTL 변형 훑기, 디자이너 승인 관문은 아직 만들지 않은 로드맵입니다. GitHub Mobile과 메일 알림에서는 그림이 안 보일 수 있습니다.

All algoit posts알고IT 글 목록

Follow our AI news onAI 소식 팔로우하기X Instagram Threads