About visual-verdict
visual-verdict is a skill for evaluating generated UI screenshots against reference images. It returns structured pass, revise, or fail guidance, including concrete differences and suggested edits.
Key features
- 01Compare screenshots with reference images
- 02Score visual similarity from 0 to 100
- 03Report category match and visual differences
- 04Suggest edits tied to mismatches
- 05Return verdicts as strict JSON
Use cases
- 01Check a generated UI before further edits
- 02Identify layout or typography mismatches
- 03Guide screenshot iteration toward a pass threshold
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ yeachan-heo/ oh-my-claudecode --skill visual-verdictAfter installing, type/visual-verdictin Claude Code to confirm it loaded.
Details
From the project README
Use this skill to compare generated UI screenshots against one or more reference images and return a strict JSON verdict that can drive the next edit iteration.
<Use_When>
- The task includes visual fidelity requirements (layout, spacing, typography, component styling)
- You have a generated screenshot and at least one reference image
- You need deterministic pass/fail guidance before continuing edits </Use_When>
<Output_Contract> Return JSON only with this exact shape:
{
"score": 0,
"verdict": "revise",
"category_match": false,
"differences": ["..."],
"suggestions": ["..."],
"reasoning": "short explanation"
}
Rules:
score: integer 0-100verdict: short status (pass,revise, orfail)category_match:truewhen the generated screenshot matches the intended UI category/styledifferences[]: concrete visual mismatches (layout, spacing, typography, colors, hierarchy)suggestions[]: actionable next edits tied to the differencesreasoning: 1-2 sentence summary
<Threshold_And_Loop>
- Target pass threshold is 90+.
- If
score < 90, continue editing and rerun/oh-my-claudecode:visual-verdictbefore any further visual review pass. - Do not treat the visual task as complete until the next screenshot clears the threshold. </Threshold_And_Loop>
<Debug_Visualization> When mismatch diagnosis is hard:
- Keep
$visual-verdictas the authoritative decision. - Use pixel-level diff tooling (pixel diff / pixelmatch overlay) as a secondary debug aid to localize hotspots.
- Convert pixel diff hotspots into concrete
differences[]andsuggestions[]updates. </Debug_Visualization>
Task: {{ARGUMENTS}}
Comments
Markdown supported