Skip to content
Skillpedia
Testing41k · #6965

triaging-visual-review-runs

What it does

This skill teaches an agent to read PostHog Visual Review results, which compare screenshots from one version of the code to another. It is for developers whose pull requests are stopped by visual checks.

When to use it

  • ✓When a pull request is blocked by a visual review check and you want to know why.
  • ✓When you need to decide whether a screenshot change is real or a flaky test.
  • ✓When you want to work through a backlog of screenshot differences.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/visual_review/skills/triaging-visual-review-runs/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“My pull request is blocked by visual review. Can you check which screenshots changed and whether those changes are real?”

5 new skills a week. 1 minute to read.

How it works

The agent reads the review run, its scope and its history, then chains the review tools to answer the questions a human reviewer would ask. It may quarantine flaky snapshots, but it does not approve new baselines on its own.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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
FAQ

Can the agent approve visual changes by itself?

No. Committing a new baseline needs explicit confirmation from a person for each run.

Why does a fork pull request have no review run?

That is usually expected, since pull requests from forks often get no Visual Review run at all.

What does quarantine mean?

It sets a flaky snapshot aside so it stops blocking the pull request while it is investigated.

Details

Original description by the author

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

Popularity

GitHub stars
41k
Ranking position
#6965
License
—
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills