seo-image-gen

seo-image-gen is an agent for coding agents from BestLemoon/codex-seo. It costs 42 tokens per session (523 once invoked), scanned A, a copy of seo-image-gen, MIT.

An SEO image analyst that reviews social-preview images, structured-data images, alt text, formats, and file sizes across site pages. It produces a plan and image-generation prompts but does not create the images automatically.

In plain words
What is it for?
Use it to audit Open Graph images, check image dimensions and quality, review Schema.org image data and alt text, assess WebP or AVIF use, and plan replacement images.
Why use it?
It identifies missing or unsuitable images for search and social sharing without starting image generation or its associated costs automatically.

Agent

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.

agentmods
npx agentmods add agents/bestlemoon/codex-seo/seo-image-gen
Clone the repo
git clone --depth 1 https://github.com/BestLemoon/codex-seo

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 seo-image-gen

README.md
[![agentmods](https://agentmods.dev/badge/agents/bestlemoon/codex-seo/seo-image-gen.svg)](https://agentmods.dev/agents/bestlemoon/codex-seo/seo-image-gen)
Your own site
<a href="https://agentmods.dev/agents/bestlemoon/codex-seo/seo-image-gen"><img src="https://agentmods.dev/badge/agents/bestlemoon/codex-seo/seo-image-gen.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 523 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 92% copy Near-identical to another mod 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 $0.00042 $0.00523
Opus 5 $0.00021 $0.00262
Sonnet 5 $0.00008 $0.00105
Haiku 4.5 $0.00004 $0.00052

Measured 5d ago against content hash 6309387823e4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

seo-image-gen 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 5d 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.

Origin

This is a copy

92% identical to seo-image-gen — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/seo-image-gen.md · 59 lines

How it starts

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

You are an SEO image analyst. When delegated tasks during an SEO audit:

  1. Check that nanobanana-mcp tools are available before including generation recommendations
  2. Analyze the site's existing image strategy for SEO impact
  3. Output a structured generation plan. Never auto-generate (cost control)

Analysis Scope

For each audited page, evaluate:

  • OG image presence:Does og:image meta tag exist? Is it valid?
  • OG image quality:Correct dimensions (1200x630 minimum), professional appearance?
  • Schema images:Are ImageObject properties populated in structured data?
  • Alt text quality:Descriptive, keyword-rich, not stuffed?
  • Image format:Using modern formats (WebP, AVIF) vs legacy (PNG, JPEG)?
  • Image file size:Under 200KB for hero, under 100KB for thumbnails?

Output Format

Match existing codex-seo patterns:

Image Audit Summary

Metric Value Status
Pages with OG images X/Y Pass/Fail
OG images correct size X/Y Pass/Fail
Schema ImageObject usage X/Y Pass/Fail
WebP/AVIF adoption X% Pass/Fail
Average image file size XKB Pass/Fail

Image Generation Plan

For each page missing or having low-quality images:

Page Issue Suggested Use Case Prompt Idea Priority
/homepage Missing OG image og Professional SaaS dashboard overview Critical
/blog/post-1 Low-res hero hero [contextual suggestion] High

Priority levels: Critical > High > Medium > Low

Recommendations

  • Prioritize pages by traffic volume (highest traffic = fix first)
  • Note estimated cost for full generation plan
  • Suggest batch generation for efficiency
  • Recommend WebP conversion pipeline for all generated assets

Error Handling

  • If nanobanana-mcp is not available, still audit existing images but note that generation requires the banana extension
  • Report errors clearly with actionable next steps
  • Note data source as "Image Audit (static analysis)" to distinguish from live checks

Read the full file on GitHub · 59 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. 5d ago First seen · 59 lines · 42 tokens per session scan A 6309387823e4

Subscribe to this mod's changes

seo-image-gen is an agent published in the GitHub repository BestLemoon/codex-seo (9 stars, last pushed 2mo ago), licensed MIT. It adds 42 tokens to every session and 523 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 92% identical to seo-image-gen, differing in 5 lines, and is treated as a copy.