跳到正文
Skillpedia
界面(UI/UX)41k · #7032

visual-verdict

它能做什么

这项技能检查生成的用户界面截图与一张或多张参考图片的相似程度。适合需要就视觉细节做出明确的通过或修改决定的设计师和开发者。

适用场景

  • ✓当某个界面的布局、间距或排版必须与参考图片一致的时候。
  • ✓当你希望在一次编辑之后得到评分和视觉差异列表的时候。
  • ✓当你需要在进行更多更改之前做出明确的通过或修改决定的时候。

技能链接

https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/visual-verdict/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/visual-verdict/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请将新仪表板的这张截图与我们的参考设计进行比较,并告诉我还需要修改哪些地方。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会查看截图和参考图片,并返回一份结构化结果,包括评分、结论、发现的视觉差异以及建议的后续编辑。得分达到 90 或以上即为通过的目标。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

<Purpose> 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. </Purpose> <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> <Inputs> - `reference_images[]` (one or more image paths) - `generated_screenshot` (current output image) - Optional: `category_hint` (e.g., `hackernews`, `sns-feed`, `dashboard`) </Inputs> <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-100
  • verdict: short status (pass, revise, or fail)
  • category_match: true when the generated screenshot matches the intended UI category/style
  • differences[]: concrete visual mismatches (layout, spacing, typography, colors, hierarchy)
  • suggestions[]: actionable next edits tied to the differences
  • reasoning: 1-2 sentence summary
<Threshold_And_Loop> - Target pass threshold is **90+**. - If `score < 90`, continue editing and rerun `/oh-my-claudecode:visual-verdict` before 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: 1. Keep `$visual-verdict` as the authoritative decision. 2. Use pixel-level diff tooling (pixel diff / pixelmatch overlay) as a **secondary debug aid** to localize hotspots. 3. Convert pixel diff hotspots into concrete `differences[]` and `suggestions[]` updates. </Debug_Visualization> <Example> ```json { "score": 87, "verdict": "revise", "category_match": true, "differences": [ "Top nav spacing is tighter than reference", "Primary button uses smaller font weight" ], "suggestions": [ "Increase nav item horizontal padding by 4px", "Set primary button font-weight to 600" ], "reasoning": "Core layout matches, but style details still diverge." } ``` </Example>

Task: {{ARGUMENTS}}

常见问题

评分是什么意思?

它是 0 到 100 之间的整数,90 或以上是通过的目标。

它会更改设计本身吗?

不会。它只进行比较并提出编辑建议,由你或其他步骤来完成修改。

它能检查某一类设计吗?

可以。它能指出截图是否符合预期风格,例如仪表板或新闻信息流。

详情

作者的原始描述

Structured visual QA verdict for screenshot-to-reference comparisons

repo: Yeachan-Heo/oh-my-claudecode

热度

GitHub 星标
41k
排名
#7032
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能