Blog Images & Image SEO
A six-step workflow that picks the right visual per slot, generates or captures it, compresses it, proofreads the text, and wires in SEO-complete image tags.
Marketing & SEOIntermediate★ 2,116⑂ 224AI score 9/10Last updated: Nov 20, 2026
What it does
It replaces the default AI blog visual (dark background, glowing wireframe icons, misspelled infographic labels, a 2.4 MB image-1.png with no dimensions) with a disciplined pipeline:
- Step 0 – detect the framework (Next, Astro, Vite, Hugo, Jekyll) and use the repo's existing image directory
- Step 1 – decision tree per slot: real Playwright screenshot for product UI, deterministic SVG chart for numbers, short-prompt generation for covers and concepts
- Step 2 – prompt rules: 1–2 plain sentences, no neon/robot-arm clickbait, no mutable prices or rankings baked into static art
- Step 3 – scaffold
scripts/seo-image.mjsthat both generates (OpenRouter) and compresses (sharp) into budgeted WebP/JPEG - Step 4 – open every output and read it letter by letter; after two garbled attempts switch the slot to zero-text
- Step 5 – keyword kebab-case filenames, 80–160 char alt text, explicit width/height, eager hero vs lazy body images, 350 KB cover / 220 KB inline budgets
- Step 6 – a shell audit that flags oversized files, generic filenames, and bad alt lengths, plus a done checklist
Who it's for
- Technical bloggers on MDX, Astro, Next.js, Hugo, or Jekyll who want consistent, fast, searchable images
- Teams losing Core Web Vitals points to CLS or heavy hero images
- Reviewers and benchmark writers who need real screenshots and honest charts instead of hallucinated dashboards
Examples
- "Make a cover image for this post" → 16:9 short prompt, WebP compression, frontmatter/OG field wired up
- "Add a chart for these benchmark numbers" → self-contained 1536x864 SVG whose bar lengths come from the real values
- "Audit the images in this article" → prints FAIL lines for
hero.webp, a 43-character alt, and a 480 KB inline image
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/Illyism/seo-skills/HEAD/content/seo-blog-images/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the content/seo-blog-images folder from the GitHub repo Illyism/seo-skills into my ~/.claude/skills/seo-blog-images/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/Illyism/seo-skills.git /tmp/seo-skills && mkdir -p ~/.claude/skills && cp -r /tmp/seo-skills/content/seo-blog-images ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/Illyism/seo-skills.git /tmp/seo-skills - Create the skills folder:
mkdir -p ~/.claude/skills - Copy just this skill:
cp -r /tmp/seo-skills/content/seo-blog-images ~/.claude/skills/ - (Optional, for generation) export a key:
export OPENROUTER_API_KEY=sk-or-.... Without it, create the PNG with the agent's built-in image tool and use the script's--inputcompression mode. - Install the compressor in your project:
pnpm add -D sharp(or npm/bun/yarn). For screenshots, also runnpx playwright install chromium. - Restart Claude Code and ask something like "generate a cover image and audit image SEO for this blog post" to trigger the skill.