image-optimization

Select image formats, generate responsive srcsets, and enable lazy loading.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ShadowAUS/chez-king-portal --skill image-optimization-shadowaus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-optimization
Source: https://github.com/ShadowAUS/chez-king-portal/tree/main/.tessl/tiles/secondsky/claude-skills/plugins/image-optimization/skills/image-optimization
Command: npx skills add https://github.com/ShadowAUS/chez-king-portal --skill image-optimization-shadowaus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Optimizing images is essential to reduce load times and bandwidth; this Skill provides a practical approach to choosing formats, enabling responsive images, and applying lazy loading to improve perceived performance across web and mobile experiences.

Core Features & Use Cases

  • Format Selection: Choose modern formats (WebP, AVIF) with sensible fallbacks to ensure compatibility.
  • Responsive Images: Generate and embed srcset/sizes for different viewport widths to optimize delivery.
  • Lazy Loading & Progressive Enhancement: Enable native lazy loading and incremental loading strategies for better FCP.

Quick Start

Provide the optimized version of a given image set by choosing formats and generating responsive srcset attributes.

Frequently Asked Questions about image-optimization

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

FAQPage Schema
How do I generate responsive images with srcset for different viewport widths?

You generate responsive images by producing multiple sizes and embedding srcset and sizes attributes, allowing the browser to select the optimal version for each viewport width.

What's the best way to convert images to modern formats like WebP and AVIF?

The best way to convert images to modern formats is through a build pipeline using Sharp or similar tooling, which automatically selects formats like WebP and AVIF while providing sensible fallbacks for compatibility.

How does lazy loading improve web performance and initial paint times?

Lazy loading improves web performance by natively deferring offscreen image loading until needed, reducing initial payload and bandwidth to achieve a faster first contentful paint.

Can I use Sharp for image optimization in an existing build pipeline?

Yes, you can integrate Sharp into an existing build pipeline to process image sets, automatically select modern formats with fallbacks, and generate responsive srcsets for adaptable visuals.

When do I need to provide fallbacks for modern image formats?

You need to provide fallbacks for modern image formats like WebP and AVIF when supporting older browsers, ensuring images remain accessible through sensible fallback selections during format conversion.