Visual artifact verification

From theheavenlyd3mon/hermes-profiles · View interactive version

Visual artifact verification is an AI agent skill from the GitHub repository theheavenlyd3mon/hermes-profiles. QA visuals when vision/browser tools missing: Chrome.

How to use this skill

Skill file

Visual Artifact Verification

Use when you produced an HTML concept/mockup/poster (or any visual artifact) and need to actually SEE it before showing the user, but (a) no browser toolset is loaded in the session, and/or (b) the configured vision model rejects image input (e.g. a text-only model errors with unknown variant 'image_url', expected 'text'). Two proven paths replace browser_navigate + vision_analyze:

  1. Headless Chrome screenshot — render HTML → PNG locally (no browser toolset needed).
  2. OpenRouter vision fallback — QA the PNG with a vision-capable model via direct API (bypasses the session's text-only vision model).

Path 1: Headless Chrome screenshot (HTML → PNG)

"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
  --headless=new --disable-gpu --hide-scrollbars \
  --screenshot="/tmp/out.png" \
  --window-size=1080,1620 \
  "file:///abs/path/index.html"

Path 2: OpenRouter vision fallback (PNG → text QA)

When vision_analyze fails, call OpenRouter directly with a vision-capable model. Reusable script: scripts/vision_qa.py.

python3 scripts/vision_qa.py /tmp/sketch.png "Any overflow, clipping, broken images, cut-off sections? Are the 6 cards + header + footer visible?"

Key details:

Workflow

  1. Write the artifact (HTML file, generated image).
  2. Screenshot with headless Chrome (HTML only).
  3. Vision-QA the PNG with scripts/vision_qa.py — ask specifically about overflow, clipping, cut-off edges, unstyled elements, broken images, and whether every expected section is visible.
  4. Fix issues in source, re-render, re-QA.
  5. Present to user (optionally open in their browser via human-review).

Pitfalls

Why this exists

Session where vision_analyze failed on a text-only model; headless Chrome + OpenRouter QA passed all three HTML mockups cleanly. Also documents the browser-toolset diagnostic path — see references/browser-toolset-troubleshooting.md for why browser/web tools may be absent in a profile and how to enable them.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.