Agent skill
visual-verdict
Structured visual QA verdict for screenshot-to-reference comparisons
Install this agent skill to your Project
npx add-skill https://github.com/Yeachan-Heo/oh-my-codex/tree/main/skills/visual-verdict
SKILL.md
<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$visual-verdictbefore any further code edits in the next iteration. - Persist the verdict in
.omx/state/{scope}/ralph-progress.jsonwith both:- numeric signal (
score, threshold pass/fail) - qualitative signal (
reasoning,suggestions,next_actions) </Threshold_And_Loop>
- numeric signal (
<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>
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
configure-notifications
Configure OMX notifications - unified entry point for all platforms
ultraqa
QA cycling workflow - test, verify, fix, repeat until goal met
build-fix
Fix build and TypeScript errors with minimal changes
ask-claude
Ask Claude via local CLI and capture a reusable artifact
tdd
Test-Driven Development enforcement skill - write tests first, always
analyze
Run deep investigation of architecture, bugs, performance issues, or dependencies and return structured findings with file:line evidence. Use when a user says 'analyze', 'investigate', 'why does', 'what's causing', or needs root cause analysis before making changes. Routes to architect agent or Codex MCP for thorough cross-file reasoning.
Didn't find tool you were looking for?