Langsung ke konten
Skillpedia
Testing81k · #1582

browser-screenshot-diff

Fungsinya

Skill ini membandingkan dua sesi browser yang direkam, mencocokkan langkah berdasarkan ID, serta memeriksa tangkapan layar dan struktur halaman. Skill ini untuk penguji yang perlu menemukan perubahan visual atau konten di antara dua kali jalan.

Kapan dipakai

  • ✓Saat perubahan UI seharusnya tidak mengubah tampilan halaman.
  • ✓Saat Anda ingin memastikan hasil replay cocok dengan aslinya.
  • ✓Saat Anda ingin membandingkan dua versi dari alur formulir yang sama.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-browser/skills/browser-screenshot-diff/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Bandingkan rekaman sebelum redesain dengan yang sesudahnya, dan tunjukkan di mana halamannya berbeda.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent mencocokkan langkah dari kedua sesi, membandingkan tangkapan layar dan struktur halaman di setiap langkah, lalu melaporkan perbedaan pertama dan skor kemiripan keseluruhan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum

Apa yang dibandingkan?

Skill membandingkan tangkapan layar piksel demi piksel dan struktur halaman node demi node.

Bagaimana jika sebuah langkah hanya ada di satu sesi?

Skill menandainya sebagai tidak cocok dan menghitungnya terhadap skor kemiripan.

Di mana hasilnya disimpan?

Skill menulis laporan temuan di dalam kontainer sesi.

Detail

Deskripsi asli dari pembuat

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

repo: ruvnet/ruflo

Popularitas

Bintang GitHub
81k
Peringkat
#1582
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa