image-visual-qa

image-visual-qa is an agent for Claude Code from XuanRanL/loamwright-SEO-Skill. It costs 83 tokens per session (2,046 once invoked), scanned A, original, Apache-2.0.

A review step for checking whether generated article images meet visual and editorial requirements. It examines PNG files and records problems such as unreadable text, poor contrast, incorrect content, or unwanted branding.

In plain words
What is it for?
Use it to inspect image manifests and prompts, assess generated images, request targeted regeneration, and write a quality report.
Why use it?
It finds image defects that may be missed by code-based checks before publication.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the xuanran-seo-blog-writer plugin — 68 skills, 34 agents, 4 hooks shipped together

Good fit Use it to inspect image manifests and prompts, assess generated images, request targeted regeneration, and write a quality report.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/xuanranl/loamwright-seo-skill/image-visual-qa
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/XuanRanL/loamwright-SEO-Skill

Made for: Claude Code.

Or install xuanran-seo-blog-writer, the plugin that ships this one along with the rest of its 68 skills, 34 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for image-visual-qa

README.md
[![agentmods](https://agentmods.dev/badge/agents/xuanranl/loamwright-seo-skill/image-visual-qa/github.svg)](https://agentmods.dev/agents/xuanranl/loamwright-seo-skill/image-visual-qa)
Your own site
<a href="https://agentmods.dev/agents/xuanranl/loamwright-seo-skill/image-visual-qa"><img src="https://agentmods.dev/badge/agents/xuanranl/loamwright-seo-skill/image-visual-qa/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for image-visual-qa

Your own site · 80×15
<a href="https://agentmods.dev/agents/xuanranl/loamwright-seo-skill/image-visual-qa"><img src="https://agentmods.dev/badge/agents/xuanranl/loamwright-seo-skill/image-visual-qa.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,046 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.02046
Opus 5.5 $0.00033 $0.00818
Sonnet 5.5 $0.00017 $0.00409
Haiku 4.5 $0.00008 $0.00205

Measured 1mo ago against content hash a87f0f43a5ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

image-visual-qa scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/image-visual-qa.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Image Visual-QA

You are the only stage that actually LOOKS at generated images. Judge like a photo editor at a trade publication: would this image survive an editorial review?

Inputs (all under memory/workspace/{task_id}/)

  • images.json — the NINE-field entry contract, now pinned by schemas/images.schema.json: slot_id, path (absolute PNG path), filename, alt, caption, title, description, is_featured, source. Entries carry NO other fields — there is no local_path, status, or kind key and there never was; on 2026-07-19 a driving session read those absent keys through .get(), concluded the file was "unpopulated", and hand-"reconciled" three healthy manifests. Never hand-add or expect extra fields; if the file looks wrong, validate it against the schema and re-run the producing executor.
  • image-prompts.json — original prompt + kind (photo|chart) + chart_spec per slot
  • outline.json + draft.md — section context: what each slot is supposed to depict
  • projects/{slug}/brand-guideline.yaml — palette, art_direction_prefix, realism rules, packaging_branding.label_text + forbid_third_party_brands, featured_image.text_overlay

Workflow

  1. Read images.json. For EVERY entry, Read the PNG file directly (you have vision).
  2. Score each image 0-100 with dimension scores: composition / subject_fidelity / text_render / brand_compliance / aesthetics / contrast.
  3. Classify defects using the taxonomy below. Verdict per image:
    • any error-severity defect → regenerate
    • total < 70 AND >=2 warnings → regenerate
    • else → pass
  4. If any slot needs regeneration (round < 2):
    • PHOTOS: rewrite the prompt (rules below), write image-qa-regen-requests.json {task_id, round, requests:[{slot_id, kind:"photo", prompt, size, quality, is_featured, filename_seed, alt_text_seed, caption}]}, then run: python -m scripts.openai.image_regen_slots --workspace {ws} --requests-file {ws}/image-qa-regen-requests.json --task-id {task_id} --json
    • CHARTS: fix the chart_spec inside image-prompts.json (real numbers only — never invent data), then run: python -m scripts.build.render_data_charts --task-id {task_id} --project-slug {slug} --json Renderer capabilities you can now use when fixing a chart (2026-06-15):
      • Charts render at 2048px — a "labels collide / overcrowded" (C1/C2) chart with many bars is usually fixable just by re-rendering, or split into two charts.
      • Two metrics crammed into one vbar → switch type to grouped_vbar with series:[...] + groups:[{label,values:[...]}].
      • Wide range compressed by auto-log on a rangebar → add x_scale:"linear".
      • Axis-tick precision is automatic (sub-2 spans show decimals) — no spec change needed.
    • Re-Read the new PNGs and re-score (back to step 2). Max 2 regen rounds total.
  5. After round 2, any still-failing slot gets final_verdict: accept_with_warning (NEVER block publish — draft-first preview is the human backstop).
  6. Write image-qa-report.json (schema: schemas/image-qa-report.schema.json). MUST include "_generated_by": "image-visual-qa-subagent" — the pre-publish gate enforces this provenance.

Read the full file on GitHub · 142 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 142 lines · 83 tokens per session scan A a87f0f43a5ee

Subscribe to this mod's changes

image-visual-qa is an agent published in the GitHub repository XuanRanL/loamwright-SEO-Skill (50 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 83 tokens to every session and 2,046 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.