image-optimization
When the user wants to optimize images for search engines and performance.
Skill by kostja94
Chalk Labs
Need help deploying image-optimization?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kostja94-image-optimization
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: marketing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/image-optimization
What's inside
- Skill name
image-optimization- Description
- When the user wants to optimize images for search engines and performance. Also use when the user mentions "image SEO," "alt text," "image captions," "figcaption," "image optimization," "WebP," "lazy loading," "LCP," "image sitemap," "responsive images," "srcset," "image format," or "hero image optimization." For CWV, use core-web-vitals.
- License
- MIT
- Metadata
- version: 1.2.1
- Instructions
- 257 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# SEO On-Page: Image Optimization
Guides image optimization for Google Search (text results, Image Pack, Google Images, Discover), Core Web Vitals (LCP), and accessibility. Consolidates image-related best practices from components (hero, trust-badges) and pages (landing-page). References: [Google Image SEO](https://developers.google.com/search/docs/appearance/google-images), [Semrush Image SEO](https://www.semrush.com/blog/image-seo/).
**When invoking**: On **first use**, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On **subsequent use** or when the user asks to skip, go directly to the main output.
## Scope
- **Discovery & indexing**: HTML img elements, image sitemap
- **Format & performance**: WebP, responsive images, lazy loading, LCP; full CWV optimization in **core-web-vitals**
- **Metadata**: Alt text, file names, captions
- **Preferred image**: primaryImageOfPage, og:image; thumbnail next to title/description in search results
- **Structured data**: ImageObject, image in Article/Product/etc.
## Initial Assessment
**Project context:** Read root `contextus.md` when present and load only the modules relevant to this task. Without Contextus, use available project material or user-provided facts and ask for missing information; do not create a parallel context system.
Identify:
1. **Context**: Hero, content page, product, trust badge, social preview
2. **Above vs below fold**: LCP candidate (hero) vs lazy-loadable
3. **Image count**: Single hero vs gallery, programmatic pages
---
## 1. Discovery & Indexing
### Use HTML Image Elements
Google finds images in the `src` attribute of `<img>` (including inside `<picture>`). **CSS background images are not indexed.**
| Do | Don't |
|----|-------|
| `<img src="puppy.jpg" alt="Golden retriever puppy" />` | `<div style="background-image:url(puppy.jpg)">` |
### Image Sitemap
Submit an [image sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/image-sitemaps) to help Google discover images it might otherwise miss. Image sitemaps can include URLs from CDNs (other domains); verify CDN domain in Search Console for crawl error reporting.
**Structure** (from Google):
```xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>https://example.com/page</loc>
<image:image>
<image:loc>https://example.com/image.jpg</image:loc>
</image:image>
</url>
</urlset>
```
See **xml-sitemap** for sitemap index and submission. Image sitemap is an extension; can be standalone or combined with page sitemap.
---
## 2. Format & Performance
### Supported Formats
Google supports: **BMP, GIF, JPEG, PNG, WebP, SVG, AVIF**. Match filename extension to format.
| Format | Best for | Notes |
|--------|----------|-------|
| **WebP** | Photos, graphics | Smaller files, faster load; lossy + lossless; transparency, animation |
| **AVIF** | Modern browsers | Even smaller than WebP; check support |
| **JPEG** | Standard photos | Fallback; widely supported |
| **PNG** | Transparency, detail | Larger; use when needed |
| **SVG** | Icons, logos | Scalable; use `<title>` for inline SVG alt |
| **GIF** | Simple animation | First frame only for preview |
### Responsive Images
Use `<picture>` or `srcset` for different screen sizes. **Always provide fallback `src`**—some crawlers don't understand srcset.
```html
<img
srcset="image-320w.jpg 320w, image-480w.jpg 480w, image-800w.jpg 800w"
sizes="(max-width: 320px) 280px, (max-width: 480px) 440px, 800px"
src="image-800w.jpg"
alt="Descriptive alt text">
```
**Picture element** (format fallback, e.g. WebP → PNG):
```html
<picture>
<source type="image/webp" srcset="image.webp">
<img src="image.png" alt="Descriptive alt text">
</picture>
```
### Data URI (Inline Images)
Base64 data URIs (`data:image/...;base64,...`) reduce HTTP requests but increase HTML size. Use sparingly for small icons; avoid for large images. See [web.dev](https://web.dev/articles/embedding-images-and-video#data_uris).
### Resize & Compress
- **Max width**: Generally ≤2,500px; match container max-width
- **Compression**: WebP preferred; quality 75–85 for lossy; 72dpi for web
- **LCP**: Hero/above-fold images are LCP candidates; optimize aggressively
### Lazy Loading
Use `loading="lazy"` **only for below-fold images**. Above-fold images (hero) must load immediately—lazy loading them hurts LCP.
```html
<img src="hero.jpg" alt="..." loading="eager">
<img src="below-fold.jpg" alt="..." loading="lazy">
```
---
## 3. Alt Text
Alt text improves **accessibility** (screen readers, low bandwidth) and **SEO** (Google uses it with computer vision to understand images). It also serves as anchor text if the image is a link.From kostja94/marketing-skills, MIT.
More from kostja94/marketing-skills
- 0.675score
copywriting
kostja94
When the user wants to write or optimize short-form marketing copy—headlines, CTAs, ad copy, landing page copy, email copy.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
translation
kostja94
Translate, transcreate, review, or maintain multilingual product and marketing content, including source locking, glossary decisions, language style…
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
brand-protection
kostja94
When the user faces brand impersonation, fake websites, phishing sites, or trademark infringement.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
directory-submission
kostja94
When the user wants to submit a product or app to directories, curated lists, launch platforms, or app stores—and needs ready-to-paste copy per platform.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
domain-selection
kostja94
When the user wants to choose an SEO-friendly domain for a new site—brand vs keyword domain, TLD selection, or domain best practices.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
domain-architecture
kostja94
When the user wants to decide domain structure for multiple products or brands—subfolder vs subdomain vs independent domain.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
product-hunt-launch
kostja94
When the user wants to launch on Product Hunt, prepare a PH submission, or plan launch day (hunter, first comment, timing, upvotes).
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
native-ads
kostja94
When the user wants to run native ads on Taboola, Outbrain, or similar platforms.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
twitter-cards
kostja94
When the user wants to add, audit, implement, or optimize Twitter Card metadata for X link previews, including twitter:card, twitter:title…
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
community-forum
kostja94
When the user wants to promote via forums, communities, or invite users to join a community.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
keyword-research
kostja94
When the user wants to research keywords, find target keywords, or analyze search intent.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
youtube-ads
kostja94
When the user wants to run YouTube ads, set up TrueView or Bumper campaigns, or optimize video ad creative.
SkillAFreshness: A★ 1.1KClaude Code +9
Signals
- Stars
- 1,061
- Forks
- 150
- Open issues
- 3
- Last commit (this folder)
- Sep 25, 2026 (1 month ago)
- Last release
- Mar 11, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.2.1
- License
- MIT
- Repository
- github.com/kostja94/marketing-skills
- Website
- alignify.co/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from kostja94
- 0.675score
product-hunt-launch
kostja94
When the user wants to launch on Product Hunt, prepare a PH submission, or plan launch day (hunter, first comment, timing, upvotes).
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
native-ads
kostja94
When the user wants to run native ads on Taboola, Outbrain, or similar platforms.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
keyword-research
kostja94
When the user wants to research keywords, find target keywords, or analyze search intent.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
twitter-cards
kostja94
When the user wants to add, audit, implement, or optimize Twitter Card metadata for X link previews, including twitter:card, twitter:title…
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
brand-protection
kostja94
When the user faces brand impersonation, fake websites, phishing sites, or trademark infringement.
SkillAFreshness: A★ 1.1KClaude Code +9 - 0.675score
domain-architecture
kostja94
When the user wants to decide domain structure for multiple products or brands—subfolder vs subdomain vs independent domain.
SkillAFreshness: A★ 1.1KClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get image-optimization running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
image-optimization skill. Agent Mart. https://agentmart.dev/skills/kostja94-image-optimization (last updated 2026-10-24)