optimizing-images

Convert images to WebP and AVIF formats with responsive srcset generation.

6|2|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/WesleySmits/agent-skills --skill optimizing-images
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: optimizing-images
Source: https://github.com/WesleySmits/agent-skills/tree/main/.agent/skills/image-optimizer
Command: npx skills add https://github.com/WesleySmits/agent-skills --skill optimizing-images

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sharp, glob, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Image assets are often large and unoptimized, causing slow load times and poor user experience; this skill automates optimization and generates responsive markup to improve performance.

Core Features & Use Cases

  • Converts images to WebP and AVIF formats and generates responsive srcset for multiple breakpoints.
  • Provides guidance for integrating with Next.js Image and Nuxt Image, along with lazy loading and performance best practices.
  • Use case: optimize hero banners and galleries to reduce page weight while preserving visual quality.

Quick Start

Use the image optimizer to convert a sample image and generate responsive variants for a web page.

Frequently Asked Questions about optimizing-images

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert images to WebP and AVIF formats for responsive web delivery?

To convert images to WebP and AVIF formats for responsive web delivery, this skill automates the generation of optimized modern formats and builds responsive srcset markup for multiple breakpoints. It reduces page weight while preserving visual quality across websites and apps.

What is the best way to generate responsive image srcset for multiple breakpoints?

Generating responsive image srcset for multiple breakpoints is handled automatically by converting your assets into optimized sizes. This process ensures proper resolution scaling across devices, applying lazy loading and performance best practices to improve user experience.

Does this image optimization approach work with Next.js Image and Nuxt Image?

Yes, this image optimization approach works with Next.js Image and Nuxt Image by providing specific framework integration guidance. It helps you implement responsive variants, modern formats, and lazy loading within your chosen JavaScript framework environment.

Can I use Sharp and Glob to automate image optimization for website galleries?

You can use Sharp and Glob to automate image optimization for website galleries by processing multiple files at once. This skill leverages those dependencies to convert hero banners and gallery assets into fast modern formats.

When do I need AVIF conversion and lazy loading for my web app images?

You need AVIF conversion and lazy loading for your web app images when large unoptimized assets cause slow load times and poor user experience. Applying these modern formats and loading strategies automates optimization to improve performance.

Why does converting hero banners to modern formats reduce page weight?

Converting hero banners to modern formats reduces page weight because WebP and AVIF compression significantly shrink file sizes while preserving visual quality. This optimization automation directly addresses slow load times caused by large image assets.