본문으로 건너뛰기
Skillpedia
테스트81k · #1582

browser-screenshot-diff

하는 일

이 스킬은 두 기록 세션을 단계 ID로 짝지어 비교하며, 스크린샷과 페이지 구조를 확인합니다. 실행 사이의 시각적 또는 내용 변화를 찾아야 하는 테스터를 위한 스킬입니다.

사용하는 경우

  • ✓UI 변경이 페이지 모양을 바꾸면 안 되는 경우.
  • ✓재생한 실행이 원래 실행과 같은지 확인하고 싶을 때.
  • ✓같은 양식 흐름의 두 버전을 비교하고 싶을 때.

스킬 링크

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-browser/skills/browser-screenshot-diff/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-browser/skills/browser-screenshot-diff/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“재설계 전의 기록과 후의 기록을 비교해서, 두 페이지가 어디에서 다른지 보여 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 두 세션의 단계를 짝짓고, 각 단계에서 스크린샷과 페이지 구조를 비교한 뒤, 첫 번째 차이와 전체 유사도 점수를 보고합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Browser Screenshot Diff

Compare two recorded sessions step-by-step. Pairs each step in session A to the same step-id in session B, diffs the captured screenshot and accessibility snapshot, reports the first divergence and an aggregate similarity score.

When to use

  • Visual regression after a UI change (record before, record after, diff).
  • Verifying a browser-replay run matches the parent session within tolerance.
  • Comparing two A/B variants of the same form flow.

Steps

  1. Locate both RVF containers:
    npx -y ruvector@0.2.27 rvf status <session-id-a>.rvf
    npx -y ruvector@0.2.27 rvf status <session-id-b>.rvf
    
  2. Load both trajectories from trajectory.ndjson. Build a step-id → (screenshot_path, snapshot_path) map for each.
  3. Pair steps by step-id. Steps that exist on only one side are flagged as unmatched and contribute to the divergence score.
  4. Pixel diff (--mode pixel|both): compare the two PNGs at each step. Report mse, psnr, and the bounding box of the largest diff cluster. Threshold default 0.02 (2% of pixels).
  5. DOM diff (--mode dom|both): compare the accessibility snapshots node-by-node. Report added / removed / changed nodes with their accessible names.
  6. Aggregate similarity: weighted average across matched steps, weighted by step duration. Verdict goes into a new findings.md under a fresh RVF container so the diff itself is replayable.
  7. Persist the diff verdict in browser-sessions under both source ids' tags so future searches surface "ran a diff against session X".

Caveats

  • Pixel diff is sensitive to font hinting, antialiasing, and scrollbar position. Keep viewport pinned across both sessions.
  • DOM diff over Playwright's accessibility tree is more stable than HTML diff. Prefer it.
  • This skill does not handle dynamic content (clocks, ads); add ignore regions to the field map or pre-process snapshots before diffing.
  • The browser_screenshot_diff MCP tool is not planned (ADR-0001 §7); the skill operates against locally-saved RVF artifacts and uses browser_eval only for live verification.
자주 묻는 질문

무엇을 비교하나요?

스크린샷은 픽셀 단위로, 페이지 구조는 노드 단위로 비교합니다.

한쪽 세션에만 있는 단계는 어떻게 하나요?

짝이 맞지 않는 단계로 표시하고, 그만큼 유사도 점수에서 뺀다고 스킬은 설명합니다.

결과는 어디에 저장되나요?

스킬은 세션 컨테이너 안에 발견 사항 보고서를 씁니다.

상세 정보

작성자의 원본 설명

Visual + DOM diff between two recorded sessions at matching trajectory step ids; used for visual regression and replay verification

repo: ruvnet/ruflo

인기도

GitHub 스타
81k
순위
#1582
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬