Skip to main content
skill CX Codex

image-optimization · a5c-ai — Claude Code skill: what it does, how to install

image-optimization configures WebP and AVIF formats, responsive picture elements, lazy loading, and CDN delivery. Helps frontend developers optimize asset pipelines and speed up LCP.

MIT 1 installs ★ 1,931 updated 2026-09-16

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add a5c-ai/babysitter --skill image-optimization -a claude-code
Open on GitHub

What image-optimization does

This skill guides the AI assistant in optimizing web assets. It covers modern formats like WebP and AVIF along with CDN delivery setup. Improving LCP is the main goal.

The instructions provide patterns for <picture> elements and the Next.js Image component with blur placeholders. The skill expects access to Read and Edit tools. Without them, editing files fails.

What it helps with

  • Convert standard img tags to responsive picture elements with WebP and AVIF
  • Enable lazy loading for non-critical images across templates
  • Configure blur placeholders and priority attributes in Next.js Image
  • Reduce page weight to improve LCP scores

Example prompts for the agent

  • Rewrite this hero banner with <picture>, WebP, and AVIF sources
  • Add a blur placeholder and priority to our Next.js Image component
  • Audit image tags on this page and configure lazy loading for LCP improvement

How to install image-optimization

1Skills CLI (Vercel)

npx skills add a5c-ai/babysitter --skill image-optimization -a claude-code

2Manually: put the files in place

~/.claude/skills/image-optimization/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/image-optimization/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about image-optimization

How to install image-optimization in Claude Code?

Run npx skills add a5c-ai/babysitter --skill image-optimization -a claude-code. The skill file is placed at ~/.claude/skills/image-optimization/SKILL.md.

What does the image-optimization skill do?

It gives the agent instructions to convert images to WebP and AVIF, configure responsive picture tags, set up CDNs, and add Next.js blur placeholders.

Which tools does the skill require to operate?

It uses the Read, Write, Edit, Bash, Glob, and Grep tools. They allow the agent to inspect assets and modify project files.

Source text

SKILL.md · MIT
---
name: image-optimization
description: Image formats, responsive images, lazy loading, and CDN integration.
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
graph:
  domains: [domain:web-development]
  specializations: [specialization:web-development]
  skillAreas: [skill-area:web-performance, skill-area:asset-pipeline]
  roles: [role:frontend-engineer]
  topics: [topic:asset-optimization]

---

# Image Optimization Skill

Expert assistance for image optimization.

## Capabilities

- Optimize image formats (WebP, AVIF)
- Implement responsive images
- Configure lazy loading
- Set up image CDN
- Handle blur placeholders

## Next.js Image

```tsx
import Image from 'next/image';

<Image
  src="/hero.jpg"
  alt="Hero"
  width={1200}
  height={600}
  priority
  placeholder="blur"
  blurDataURL={blurData}
/>
```

## Responsive Images

```html
<picture>
  <source srcset="image.avif" type="image/avif" />
  <source srcset="image.webp" type="image/webp" />
  <img src="image.jpg" alt="" loading="lazy" />
</picture>
```

## Target Processes

- image-optimization
- performance-improvement
- lcp-optimization

© a5c-ai · MIT · a5c-ai/babysitter

Similar skills

All skills for Frontend and UI →

image-optimization by other authors comes first.

image-optimization kostja94 image-optimization guides responsive image markup, WebP compression, and sitemaps for Google Search. Use it to fix LCP regressions and prepare site assets for search indexing. CX Codex +1 1,200installs image-optimization aj-geddes image-optimization — a skill for Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode that tells the agent how to shrink images for the web. It lists formats, tools and quality settings for different image types. CX Codex +1 665installs image-optimization secondsky Guides web image optimization using AVIF and WebP formats, responsive <picture> markup, and lazy loading strategies to cut page load times. CX Codex +1 616installs tigris-image-optimization tigrisdata tigris-image-optimization — a skill for images stored in Tigris: it builds variants at upload time, serves them from a public bucket and points you to the right framework guide. CX Codex +1 3,800installs webflow-mcp:compress-cms-image webflow webflow-mcp:compress-cms-image is a Claude Code skill that converts and compresses Webflow CMS item images to WebP or AVIF, updates asset references, and republishes the item through Webflow MCP. CX Codex +1 598installs netlify-image-cdn netlify Guides your agent on transforming images on demand via Netlify Image CDN. Useful for responsive layouts and format conversion. CX Codex +1 3,400installs seo-images AgriciDaniel seo-images — a skill for Claude Code audits images for SEO and performance. It catches weak alt text, oversized files, format issues, responsive image gaps, and loading problems. CX Codex +1 7,800installs media-asset-management rampstackco media-asset-management turns image, video and download handling into four stages: intake, processing, delivery, library. Useful when media is slow or scattered across systems. CX Codex +1 302installs responsive-images oakoss Implements performant responsive images with srcset, modern formats like AVIF and WebP, CLS prevention, and LCP prioritization. CX Codex +1 148installs

From the same set37

The whole set →
design-fmea-generator design-fmea-generator runs a design FMEA for a medical device and keeps it tied to ISO 14971: failure modes, S/O/D ratings, RPN and follow-up actions. CX Codex +1 1installs storyboard-prompting storyboard-prompting is a Claude Code skill that generates detailed storyboard-frame prompts for Midjourney, DALL-E, and Stable Diffusion. It supports planning a script’s visual sequence. CX Codex +1 1installs lyric-writing The lyric-writing skill drafts complete song lyrics with section labels, hooks, and production cues for AI music workflows. It fits projects targeting Suno or Udio. CX Codex +1 1installs style-specification The style-specification skill writes a detailed style brief for a track — genre, BPM, instruments, vocals, references — then folds it into one prompt for Suno or Udio. CX Codex +1 1installs license-compliance-checker The license-compliance-checker skill checks dependency licenses against a project’s license, flags copyleft terms, and tracks attribution duties. Use it during a migration or audit. CX Codex +1 1installs Offensive Security Skill Offensive Security Skill brings Metasploit, Cobalt Strike, Sliver and Havoc into an agent session so it can plan red-team work, build payloads and write up the TTPs it used. CX Codex +1 1installs etl-pipeline-builder etl-pipeline-builder is a Claude Code skill that designs and manages data migration ETL pipelines with incremental ingestion, CDC, and monitoring alerts. CX Codex +1 1installs learning-analytics-interpretation The learning-analytics-interpretation skill examines LMS reports, assessment results, and engagement measures to spot learning patterns. Use it to shape course changes and learner support. CX Codex +1 1installs

Project sponsors

Companies that keep this analytics open