Content and On-Page SEO skill 09 of 13
Image SEO SKILL.md
The Image SEO skill makes Claude, Codex or another AI agent audit and fix images so they are understood, accessible and fast. It favours original images over stock, writes descriptive file names and alt text, adds captions and context, sets modern formats and responsive sizes, lazy-loads only below the fold, and makes sure search engines can find and choose your images through HTML, sitemaps and structured data.
image-seo/SKILL.md, version 1.0.0, 1,179 words.
By Afeez Adebayo, Marketing, SEO & Growth Expert with 10+ years of experience.
Created 10 October 2026. Updated 10 October 2026. Free to use under CC BY 4.0.
Images help people understand a page and can bring their own traffic through Google Images, Discover and visual results. Search engines understand images mainly through the text around them: file names, alt text, captions, headings and the page itself. Oversized images are also one of the most common causes of slow pages.
This skill audits and fixes images so they are understood, accessible and fast.
Operating principles
- Original beats stock. Screenshots, product photos, charts and diagrams that only you have add value; generic stock photos add little.
- Alt text describes the image for someone who can't see it. Write for accessibility first; that also helps search engines.
- Context matters. Place images near the text they illustrate, with a caption when the image needs explanation.
- Serve the smallest file that looks right. Correct dimensions, modern formats, responsive sizes.
- Use HTML images for content. Search engines index
<img>elements, not CSS background images.
When to use, and when not to
Use it for image-heavy pages, e-commerce, recipes, travel, tutorials with screenshots, accessibility reviews, slow pages with large images and sites that want Google Images traffic.
Don't use it for full speed work across a template (use the Technical SEO Core Web Vitals skill) or for designing the images themselves, which needs a design brief.
Inputs to ask for, in one message
- Sample URLs per template, or a crawl with image URLs, sizes, alt text and dimensions.
- The CMS, image CDN or optimisation plugin in use.
- Search Console Performance filtered to search type Image, if relevant.
- Which images are original and which are stock.
- Brand rules for featured and social images.
Raw SKILL.md file
This is the exact file agents read, including the credit header and licence notice. Save it as image-seo/SKILL.md.
--- name: image-seo description: "Make images findable, accessible and fast: original over stock, descriptive file names, useful alt text, captions and surrounding text, modern formats and responsive sizes, lazy loading below the fold only, image sitemaps and structured data, preferred images for results and social previews, and audits of missing alt text, oversized files and broken images. Use whenever someone asks about image SEO, alt text, image file names, Google Images traffic, image compression, WebP or AVIF, image sitemaps, featured or Open Graph images, or slow images on a page." license: CC-BY-4.0 metadata: author: Afeez Adebayo author_url: https://afeezadebayo.com author_linkedin: https://www.linkedin.com/in/afeez-adebayo/ author_x: https://x.com/za_icon source: https://afeezadebayo.com/skills-md/marketing/content-seo/image-seo/ category: marketing subcategory: content-seo version: "1.0.0" created: "2026-10-10" updated: "2026-10-10" --- # Image SEO Images help people understand a page and can bring their own traffic through Google Images, Discover and visual results. Search engines understand images mainly through the text around them: file names, alt text, captions, headings and the page itself. Oversized images are also one of the most common causes of slow pages. This skill audits and fixes images so they are understood, accessible and fast. ## Operating principles 1. **Original beats stock.** Screenshots, product photos, charts and diagrams that only you have add value; generic stock photos add little. 2. **Alt text describes the image for someone who can't see it.** Write for accessibility first; that also helps search engines. 3. **Context matters.** Place images near the text they illustrate, with a caption when the image needs explanation. 4. **Serve the smallest file that looks right.** Correct dimensions, modern formats, responsive sizes. 5. **Use HTML images for content.** Search engines index `<img>` elements, not CSS background images. ## When to use, and when not to Use it for image-heavy pages, e-commerce, recipes, travel, tutorials with screenshots, accessibility reviews, slow pages with large images and sites that want Google Images traffic. Don't use it for full speed work across a template (use the Technical SEO Core Web Vitals skill) or for designing the images themselves, which needs a design brief. ## Inputs to ask for, in one message 1. Sample URLs per template, or a crawl with image URLs, sizes, alt text and dimensions. 2. The CMS, image CDN or optimisation plugin in use. 3. Search Console Performance filtered to search type Image, if relevant. 4. Which images are original and which are stock. 5. Brand rules for featured and social images. ## Workflow ### Step 1. Audit From a crawl, list images with missing or empty alt text (excluding decorative ones), file sizes over a set threshold, dimensions much larger than displayed, broken image URLs, and content images loaded through CSS. ### Step 2. Choose the right image Prefer original, relevant images. Replace generic stock where it adds nothing. For tutorials, use real screenshots with a capture date in the caption. ### Step 3. Name files Lowercase, hyphenated and descriptive: `employee-onboarding-checklist-template.png`, not `IMG_4021.png`. Rename before upload; renaming live images changes their URLs. ### Step 4. Write alt text | Image | Weak alt | Better alt | |---|---|---| | Product photo | shoe | Women's black trail running shoe, side view | | Screenshot | screenshot | Search Console Page indexing report showing 2,300 crawled but not indexed pages | | Chart | chart | Bar chart of organic clicks by month, January to September 2026, rising from 4,000 to 11,000 | | Decorative divider | divider | (empty alt="") | Keep it to what the image shows and why it matters on this page, usually under about 125 characters. Don't stuff keywords. ### Step 5. Add captions and context Captions are read more than body text. Use them for charts, screenshots and anything that needs a source or date. Keep the image close to the paragraph it supports. ### Step 6. Optimise delivery - Serve AVIF or WebP with a fallback where needed. - Use `srcset` and `sizes` so mobile gets smaller files. - Set `width` and `height` (or `aspect-ratio`) to prevent layout shift. - Lazy-load images below the fold; never lazy-load the main image at the top of the page. - Compress to a quality where artefacts aren't visible. ### Step 7. Help search engines find and choose images - Include important images in the HTML, not injected only after interaction. - Add image URLs to sitemaps for large image libraries. - Use structured data that includes `image` for products, articles and recipes. - Set a preferred image with `og:image` and schema; use large, relevant images for Discover eligibility. ## Platform notes - **WordPress:** set alt text in the media library (it applies wherever the image is inserted with the block editor), use an image optimisation plugin or CDN for WebP or AVIF, and check that themes don't lazy-load the hero. - **Shopify:** fill alt text for every product image; use the theme's responsive image helpers. - **Next.js:** use the Image component with set sizes and `priority` on the main image. ## Worked example A home furniture shop had 3,200 product images with alt text equal to the file name and an average size of 1.4 MB. The fix renamed new uploads, wrote alt text from product attributes with a template and a manual pass for the top 300 products, converted images to WebP through the CDN with responsive sizes, and removed lazy loading from main product images. Average image size fell to 180 KB, and clicks from Google Images grew over the next three months (Search Console, search type Image). ## Output format ``` # Image SEO review: <site or page>, <date> ## Summary (images audited, missing alt, oversized, broken) ## Findings | Image URL | Page | Issue | Size | Displayed size | Current alt | New alt | Fix | ## Delivery settings (formats, srcset, lazy loading, CDN) ## Re-check plan ``` ## Alt text by image type | Image type | What to include | Example | |---|---|---| | Product photo | Product, key attribute, angle | "Oak dining table, 180 cm, seats six, front view" | | Screenshot | Tool, screen and what it shows | "GA4 Explore report showing sessions by landing page, September 2026" | | Chart or graph | Type, data and the main trend | "Line chart of monthly sign-ups rising from 400 to 1,100, January to June 2026" | | Diagram | What it explains and its parts | "Flow diagram of a refund request, from customer form to bank transfer" | | Person | Name and role when relevant | "Jane Doe, head of research, presenting at a conference" | | Decorative | Nothing: empty alt | alt="" | | Image with text | The text itself, if it matters | "Banner reading: free delivery over £50" | ## Edge cases and judgement calls | Situation | What to do | |---|---| | Thousands of product images | Template alt text from product attributes, then a manual pass on top sellers | | Images loaded by JavaScript galleries | Make sure the main image is in the HTML as an img element | | Images served from a CDN subdomain | Fine for search; keep URLs stable and allow crawling | | Stock photos used everywhere | Replace on key pages with original photos or screenshots | | AI-generated images | Label where honesty requires it; never present them as real evidence | | Infographics | Put the key facts in page text too | ## Handoffs to related skills - Template-wide speed: the Technical SEO `core-web-vitals` skill - Image sitemaps: the Technical SEO `xml-sitemaps` skill - Image properties in markup: the Technical SEO `structured-data` skill - Placing and captioning images while writing: `seo-content-writing` - Final page check: `on-page-seo` ## Quality bar: what an excellent review includes - Every content image with accurate alt text; decorative images with empty alt. - File sizes and dimensions matched to display, in modern formats. - The main image never lazy-loaded. - Clear rules the team can apply to future uploads. ## Common mistakes - Keyword-stuffed alt text. - Alt text on decorative images that screen readers then read aloud. - Lazy-loading the main image at the top of the page. - Uploading 4,000-pixel images for 600-pixel slots. - Using CSS backgrounds for meaningful images. ## Questions to ask before you recommend changes - Which templates carry the most images and traffic? - Is there an image CDN or optimisation plugin already? - Are images original, licensed stock or generated? ## Self-check before you answer - Does every content image have descriptive, accurate alt text? - Are decorative images marked with empty alt? - Are formats, sizes and lazy loading set correctly? - Are important images in HTML and in structured data where relevant? ## Official documentation - Google image SEO best practices: https://developers.google.com/search/docs/appearance/google-images - Image sitemaps: https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps - Discover and your website: https://developers.google.com/search/docs/appearance/google-discover - Optimise images for performance: https://web.dev/articles/fast#optimize_your_images - Alt text guidance (W3C): https://www.w3.org/WAI/tutorials/images/ --- Created by Afeez Adebayo, Marketing, SEO & Growth Expert Website: https://afeezadebayo.com LinkedIn: https://www.linkedin.com/in/afeez-adebayo/ X: https://x.com/za_icon Source: https://afeezadebayo.com/skills-md/marketing/content-seo/image-seo/ Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). You may copy, share and adapt this skill, including for commercial use, as long as you credit Afeez Adebayo and link to the source URL above. Keep this notice in any copy or adapted version.
Workflow
Step 1. Audit
From a crawl, list images with missing or empty alt text (excluding decorative ones), file sizes over a set threshold, dimensions much larger than displayed, broken image URLs, and content images loaded through CSS.
Step 2. Choose the right image
Prefer original, relevant images. Replace generic stock where it adds nothing. For tutorials, use real screenshots with a capture date in the caption.
Step 3. Name files
Lowercase, hyphenated and descriptive: employee-onboarding-checklist-template.png, not IMG_4021.png. Rename before upload; renaming live images changes their URLs.
Step 4. Write alt text
| Image | Weak alt | Better alt |
|---|---|---|
| Product photo | shoe | Women's black trail running shoe, side view |
| Screenshot | screenshot | Search Console Page indexing report showing 2,300 crawled but not indexed pages |
| Chart | chart | Bar chart of organic clicks by month, January to September 2026, rising from 4,000 to 11,000 |
| Decorative divider | divider | (empty alt="") |
Keep it to what the image shows and why it matters on this page, usually under about 125 characters. Don't stuff keywords.
Step 5. Add captions and context
Captions are read more than body text. Use them for charts, screenshots and anything that needs a source or date. Keep the image close to the paragraph it supports.
Step 6. Optimise delivery
- Serve AVIF or WebP with a fallback where needed.
- Use
srcsetandsizesso mobile gets smaller files. - Set
widthandheight(oraspect-ratio) to prevent layout shift. - Lazy-load images below the fold; never lazy-load the main image at the top of the page.
- Compress to a quality where artefacts aren't visible.
Step 7. Help search engines find and choose images
- Include important images in the HTML, not injected only after interaction.
- Add image URLs to sitemaps for large image libraries.
- Use structured data that includes
imagefor products, articles and recipes. - Set a preferred image with
og:imageand schema; use large, relevant images for Discover eligibility.
Platform notes
- WordPress: set alt text in the media library (it applies wherever the image is inserted with the block editor), use an image optimisation plugin or CDN for WebP or AVIF, and check that themes don't lazy-load the hero.
- Shopify: fill alt text for every product image; use the theme's responsive image helpers.
- Next.js: use the Image component with set sizes and
priorityon the main image.
Worked example
A home furniture shop had 3,200 product images with alt text equal to the file name and an average size of 1.4 MB. The fix renamed new uploads, wrote alt text from product attributes with a template and a manual pass for the top 300 products, converted images to WebP through the CDN with responsive sizes, and removed lazy loading from main product images. Average image size fell to 180 KB, and clicks from Google Images grew over the next three months (Search Console, search type Image).
Output format
# Image SEO review: <site or page>, <date>
## Summary (images audited, missing alt, oversized, broken)
## Findings
| Image URL | Page | Issue | Size | Displayed size | Current alt | New alt | Fix |
## Delivery settings (formats, srcset, lazy loading, CDN)
## Re-check planAlt text by image type
| Image type | What to include | Example |
|---|---|---|
| Product photo | Product, key attribute, angle | "Oak dining table, 180 cm, seats six, front view" |
| Screenshot | Tool, screen and what it shows | "GA4 Explore report showing sessions by landing page, September 2026" |
| Chart or graph | Type, data and the main trend | "Line chart of monthly sign-ups rising from 400 to 1,100, January to June 2026" |
| Diagram | What it explains and its parts | "Flow diagram of a refund request, from customer form to bank transfer" |
| Person | Name and role when relevant | "Jane Doe, head of research, presenting at a conference" |
| Decorative | Nothing: empty alt | alt="" |
| Image with text | The text itself, if it matters | "Banner reading: free delivery over £50" |
Edge cases and judgement calls
| Situation | What to do |
|---|---|
| Thousands of product images | Template alt text from product attributes, then a manual pass on top sellers |
| Images loaded by JavaScript galleries | Make sure the main image is in the HTML as an img element |
| Images served from a CDN subdomain | Fine for search; keep URLs stable and allow crawling |
| Stock photos used everywhere | Replace on key pages with original photos or screenshots |
| AI-generated images | Label where honesty requires it; never present them as real evidence |
| Infographics | Put the key facts in page text too |
Handoffs to related skills
- Template-wide speed: the Technical SEO
core-web-vitalsskill - Image sitemaps: the Technical SEO
xml-sitemapsskill - Image properties in markup: the Technical SEO
structured-dataskill - Placing and captioning images while writing:
seo-content-writing - Final page check:
on-page-seo
Quality bar: what an excellent review includes
- Every content image with accurate alt text; decorative images with empty alt.
- File sizes and dimensions matched to display, in modern formats.
- The main image never lazy-loaded.
- Clear rules the team can apply to future uploads.
Common mistakes
- Keyword-stuffed alt text.
- Alt text on decorative images that screen readers then read aloud.
- Lazy-loading the main image at the top of the page.
- Uploading 4,000-pixel images for 600-pixel slots.
- Using CSS backgrounds for meaningful images.
Questions to ask before you recommend changes
- Which templates carry the most images and traffic?
- Is there an image CDN or optimisation plugin already?
- Are images original, licensed stock or generated?
Self-check before you answer
- Does every content image have descriptive, accurate alt text?
- Are decorative images marked with empty alt?
- Are formats, sizes and lazy loading set correctly?
- Are important images in HTML and in structured data where relevant?
Official documentation
- Google image SEO best practices: https://developers.google.com/search/docs/appearance/google-images
- Image sitemaps: https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps
- Discover and your website: https://developers.google.com/search/docs/appearance/google-discover
- Optimise images for performance: https://web.dev/articles/fast#optimize_your_images
- Alt text guidance (W3C): https://www.w3.org/WAI/tutorials/images/
On this page
- When to use this skill, and when not to
- Example prompts
- Example output
- What the agent needs from you
- How this skill hands off to related skills
- How to run the Image SEO skill step by step
- Situations this skill handles
- What makes this skill different
- Practical tips from real projects
- Frequently asked questions
- Changelog
When to use this skill, and when not to
Use it for image-heavy pages, e-commerce catalogues, recipes, travel, tutorials with screenshots, accessibility reviews, slow pages with large images, and sites that want traffic from Google Images or Discover.
Don’t use it for speed work across a whole template (use Core Web Vitals) or for designing the images themselves, which needs a design brief.
Example prompts
- “Audit image alt text and file sizes on our product pages.”
- “Write alt text for these 40 screenshots in our help centre.”
- “Our blog hero images are 2 MB each. Fix delivery without hurting quality.”
- “Should we add an image sitemap for 30,000 product photos?”
- “Why don’t our images appear in Google Images?”
Example output
The skill returns a fixed structure. A shortened example for an imaginary site:
# Image SEO review: example.com/products, 10 October 2026 ## Summary 3,200 images: 2,950 with alt = file name, average 1.4 MB, main product image lazy-loaded. ## Findings (extract) | Image | Issue | Size | Shown at | New alt | Fix | | IMG_4021.jpg | Alt is file name | 1.6 MB | 600 px | Women's black trail running shoe, side view | WebP, srcset, rename on next upload | ## Delivery settings AVIF or WebP via CDN, srcset with 4 sizes, width and height set, no lazy loading on the main image.
Alt text is written for people who can’t see the image first, which is also what helps search engines understand it.
What the agent needs from you
The skill asks for sample URLs per template or a crawl with image URLs, file sizes, dimensions and alt text, the CMS and any image CDN or optimisation plugin, Search Console data filtered to image search if relevant, which images are original or stock, and your brand rules for featured and social images.
How this skill hands off to related skills
Images touch several other areas. Page speed goes to Core Web Vitals, image sitemaps to XML Sitemaps and image properties in markup to Structured Data. On the content side, images are placed and captioned during SEO Content Writing and checked as part of On-Page SEO Optimisation.
How to run the Image SEO skill step by step
- Install the skill as
image-seo/SKILL.md. - Share sample URLs per template, or a crawl with image URLs, sizes, dimensions and alt text.
- Name the CMS and any image CDN or optimisation plugin.
- Add Search Console data filtered to image search, if image traffic matters.
- Say which images are original and which are stock or generated.
- Apply fixes by template: alt text rules, file naming, formats, sizes and lazy-loading settings.
Situations this skill handles
Image problems show up in speed reports, accessibility audits and lost image traffic. The skill handles these cases:
| Situation | What the skill does |
|---|---|
| Thousands of products with no alt text | Templates alt text from product attributes, then a manual pass on top sellers |
| 2 MB hero images | Converts to AVIF or WebP at display size with responsive srcset |
| Main image lazy-loaded | Removes lazy loading from the top image to fix LCP |
| Screenshots in tutorials | Writes descriptive alt text and captions with capture dates |
| Images in CSS backgrounds | Moves meaningful images into img elements so they can be indexed |
| Decorative images read aloud | Sets empty alt so screen readers skip them |
What makes this skill different
Most image SEO advice stops at “add alt text with your keyword”. This skill writes alt text for people who can’t see the image, which is also what helps search engines understand it, and pairs it with the delivery fixes that make pages faster: modern formats, correct sizes, dimensions set and lazy loading only below the fold.
It also values original images. Screenshots, product photos and charts only you have add more than generic stock, for readers, for Google Images and for AI features that can show images alongside answers.
Practical tips from real projects
- Rename before upload. Renaming live images changes their URLs.
- Keep key facts in text, not only inside infographics.
- Captions are read more than body text; use them for sources and dates.
- Set width and height or aspect-ratio to prevent layout shift.
A worked example: a furniture shop had 3,200 product images with alt text equal to the file name and an average size of 1.4 MB. The fix templated alt text from product attributes with a manual pass on the top 300 products, converted images to WebP through the CDN with responsive sizes and removed lazy loading from main product images. Average image size fell to 180 KB, and clicks from Google Images grew over the following months.
Google notes that its AI features can include images and video, and that following image SEO best practices also supports those features. Good images therefore help in three places at once: classic image search, page speed and AI answers that show visuals.
The skill also gives you rules for future uploads, so the fixes stick: naming conventions, alt text guidance by image type and default delivery settings for the CMS.
Alt text by image type is where most teams need guidance. Product photos name the product, its key attribute and the angle. Screenshots name the tool, the screen and what it shows. Charts name the chart type, the data and the main trend. Diagrams say what they explain. Decorative images get an empty alt so they are skipped. People are named with their role when it matters to the page. Following these patterns makes alt text useful for screen reader users and consistent across a large catalogue, and the skill includes examples for each so writers and merchandisers can apply them without guessing.
Frequently asked questions
What makes good alt text?
A short description of what the image shows and why it matters on that page, written for someone who can’t see it. Usually under about 125 characters, with no keyword stuffing.
Should decorative images have alt text?
No. Give them an empty alt attribute so screen readers skip them. Describing decorative images adds noise for people using assistive technology.
Which image format is best?
AVIF or WebP usually give the smallest files at good quality, with a fallback where needed. The skill sets formats through your CDN or plugin rather than by hand.
Do file names matter?
Yes, a little. Descriptive, hyphenated names help search engines understand the image. Rename before upload, because renaming live images changes their URLs.
Can Google index CSS background images?
Google indexes images in HTML img elements, not CSS backgrounds. Use an img element for any image that carries meaning.
Changelog
- 1.0.0, 10 October 2026: first release.
Use, adapt and share this skill under CC BY 4.0: credit Afeez Adebayo and link to this page.
All Content and On-Page SEO skills
- Content SEO Audit
- Keyword Research
- Search Intent and SERP Analysis
- Topical Maps and Content Clusters
- SEO Content Briefs
- SEO Content Writing
- Title Tags and Meta Descriptions
- On-Page SEO Optimisation
- E-E-A-T and Content Quality
- Content Refresh and Decay Recovery
- Keyword Cannibalisation
- Content Pruning and Consolidation
