Chuyển đến nội dung
Skillpedia
Kiểm thử41k · #6965

triaging-visual-review-runs

Skill này làm gì

Skill này dạy agent đọc kết quả của PostHog Visual Review, công cụ so sánh ảnh chụp màn hình giữa các phiên bản mã. Skill dành cho lập trình viên có pull request bị dừng bởi các kiểm tra hình ảnh.

Khi nào nên dùng

  • ✓Khi một pull request bị chặn bởi kiểm tra Visual Review và bạn muốn biết vì sao.
  • ✓Khi bạn cần quyết định một thay đổi ảnh chụp màn hình là thật hay là một bài kiểm thử không ổn định.
  • ✓Khi bạn muốn xử lý một loạt các khác biệt ảnh chụp màn hình tồn đọng.

Liên kết skill

https://github.com/PostHog/posthog/blob/master/products/visual_review/skills/triaging-visual-review-runs/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/PostHog/posthog/blob/master/products/visual_review/skills/triaging-visual-review-runs/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Pull request của tôi đang bị chặn bởi visual review. Bạn có thể kiểm tra ảnh chụp nào đã thay đổi và các thay đổi đó có thật không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent đọc lần chạy review, phạm vi và lịch sử của nó, rồi kết nối các công cụ review để trả lời những câu hỏi mà người review sẽ hỏi. Nó có thể cách ly các snapshot không ổn định, nhưng không tự phê duyệt baseline mới.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Triaging visual review runs

Visual Review is PostHog's screenshot-regression product: CI captures storybook + playwright screenshots, diffs them against committed baseline hashes, and gates the PR until every changed snapshot is resolved. A PR with visual changes carries a visual-review GitHub status check, and usually a required CI job that reports the same verdict. Both stay red until each diffed snapshot is approved and finalized, tolerated, or quarantined, and the job re-runs: finalize does that for approvals, recompute-create for tolerations and quarantines. The run's _posthogUrl opens the VR UI, which offers the same actions. A PR from a fork is usually the exception: it gets no Visual Review run at all. See Fork PRs have no Visual Review run.

This skill teaches an agent how to answer the questions a human reviewer would actually ask, by chaining the VR MCP tools — instead of reaching for gh pr view and tab-hopping to the VR web UI. The read tools cover status / scope / history / triage. An agent may resolve flakes on its own, with a quarantine or, rarely, a toleration. It may not ship a visual change on its own: finalize-create commits the baseline and needs explicit per-run human confirmation.

Decide first

Gather the evidence with Is the diff real or unrelated? and the flake check, then take the first row that matches each changed snapshot.

Evidence Action Human yes needed
PR comes from a fork (isCrossRepository: true) Report only. See Fork PRs No VR writes possible
The diff comes from your change and is intended approve-create, then ask for finalize Yes, for each run, before finalize
The diff comes from your change and is not intended Fix the code and push. No VR write No
Your change renders a quarantined story changed or new, and the change is intended approve-create for that identifier, then ask for finalize. If the change also fixes the flake, add lift-on-merge-create after the approval. See Quarantined stories Yes, for each run, before finalize
Your change fixes a quarantined story's flake, and the story renders unchanged lift-on-merge-create for that identifier. See Quarantined stories No
Story outside your change, flakiness entry unstable, hard_count ≥ 5, last_flaked_at in the last 7 days quarantine-create, then recompute-create. Report it No
Story outside your change, flakiness entry broken
Câu hỏi thường gặp

Agent có thể tự phê duyệt các thay đổi hình ảnh không?

Không. Việc cam kết một baseline mới cần người xác nhận rõ ràng cho mỗi lần chạy.

Vì sao một pull request từ fork không có lần chạy review?

Thường đó là điều bình thường, vì các pull request từ fork thường không có lần chạy Visual Review nào.

Cách ly nghĩa là gì?

Nó đặt một snapshot không ổn định sang một bên để nó không còn chặn pull request trong khi được điều tra.

Chi tiết

Mô tả gốc của tác giả

Inspects PostHog Visual Review (VR) runs that gate PR merges with screenshot regression checks. Use when the user mentions "visual review", "VR", "snapshot diff", "screenshot test", "storybook regression", "playwright snapshot", "quarantine", asks why a PR is blocked or what changed visually, wants to triage the VR backlog, decide whether a snapshot diff is real vs flaky, quarantine or lift a flaky story, or check whether a story has been changing across runs. Also invoke when a PR has a failing `visual-review` status check, when a PR comment mentions "Visual review", when a PR from a fork fai

repo: PostHog/posthog

Độ phổ biến

Sao GitHub
41k
Vị trí xếp hạng
#6965
Giấy phép
—
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự