responsive-images

Installation
SKILL.md

Responsive Images

Overview

Responsive images serve the right image size and format based on viewport, device pixel ratio, and browser capabilities. Proper implementation prevents layout shift (CLS), optimizes Largest Contentful Paint (LCP), and reduces bandwidth by 50-70% with modern formats.

When to use: Any page with images, especially content images, hero images, product photos, and gallery layouts.

When NOT to use: Inline SVG icons, CSS background patterns, or canvas-rendered graphics.

Quick Reference

Pattern Approach Key Points
Responsive sizing srcset with width descriptors (w) + sizes Browser selects optimal image for viewport and DPR
Modern formats <picture> with AVIF, WebP, JPEG sources AVIF saves 70%, WebP saves 50% vs JPEG
Art direction <picture> with media queries Different crops per viewport
LCP hero image loading="eager" + fetchpriority="high" Prioritize download for Core Web Vitals
Below-fold images loading="lazy" Defer until near viewport
Related skills
Installs
40
GitHub Stars
11
First Seen
Feb 23, 2026