Agent Skills
› Yeachan-Heo/oh-my-claudecode
› visual-verdict
visual-verdict
GitHub用于将生成的UI截图与参考图进行视觉对比,输出结构化JSON评分和修订建议。在得分低于90时驱动迭代修改,确保前端界面布局、样式等视觉保真度达标。
触发场景
需要验证生成UI截图与参考图的视觉一致性
前端开发中需要自动化视觉QA反馈以指导后续修改
安装
npx skills add Yeachan-Heo/oh-my-claudecode --skill visual-verdict -g -y
SKILL.md
Frontmatter
{
"name": "visual-verdict",
"level": 2,
"description": "Structured visual QA verdict for screenshot-to-reference comparisons"
}
<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}}
版本历史
- 41a4c0f 当前 2026-07-25 07:06


