responsive-images

Generate responsive images with srcset, sizes, WebP, AVIF, and aspect-ratio containers.

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/brendadeeznuts1111/tier-1380-omega --skill responsive-images-brendadeeznuts1111
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: responsive-images
Source: https://github.com/brendadeeznuts1111/tier-1380-omega/tree/main/skills/responsive-images
Command: npx skills add https://github.com/brendadeeznuts1111/tier-1380-omega --skill responsive-images-brendadeeznuts1111

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and templates (resource) and rules (resource) components.

What problem does it solve?

This Skill helps you implement performant responsive images, ensuring optimal loading times and visual quality across all devices by leveraging modern formats and best practices.

Core Features & Use Cases

  • Responsive Sizing: Automatically generates srcset and sizes attributes for efficient image delivery.
  • Modern Formats: Supports WebP and AVIF with fallbacks for broader browser compatibility.
  • Lazy Loading: Implements native lazy loading for below-the-fold images to improve initial page load.
  • CLS Prevention: Ensures images have dimensions or aspect-ratio containers to prevent layout shifts.
  • Art Direction: Enables serving different image crops for different screen sizes using the <picture> element.
  • Use Case: When adding a hero image to a webpage, use this Skill to ensure it loads quickly on mobile devices using AVIF format, scales correctly, and doesn't cause layout shifts, while providing a JPEG fallback for older browsers.

Quick Start

Implement a responsive image using the responsive-images skill, providing the base image source, an array of different widths, and the sizes attribute.

Frequently Asked Questions about responsive-images

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

FAQPage Schema
How do I implement responsive images using srcset and sizes for web performance?

To implement responsive images, generate srcset and sizes attributes to define image widths, enabling browsers to select the most efficient image source for optimal loading times and visual quality across all devices.

How do I prevent layout shift (CLS) when loading responsive images?

Prevent layout shift (CLS) by ensuring images have explicit dimensions or aspect-ratio containers, which reserves space during page load and stabilizes Core Web Vitals by preventing visual elements from moving.

How do I serve AVIF and WebP formats with fallbacks for older browsers?

Serve AVIF and WebP formats with fallbacks using the <picture> element, which allows you to declare multiple image sources so modern browsers load optimized formats while older browsers load standard JPEGs.

How do I optimize Largest Contentful Paint (LCP) for hero images?

Optimize Largest Contentful Paint (LCP) for hero images by applying loading="eager" and fetchpriority="high" attributes, ensuring above-the-fold visuals render immediately without waiting for lazy loading.

When should I use the <picture> element for art direction across viewports?

Use the <picture> element for art direction when you need to serve different image crops for varying screen sizes, ensuring the most appropriate visual composition is displayed across mobile and desktop viewports.

Do I need native lazy loading for below-the-fold images?

Yes, implement native lazy loading for below-the-fold images to defer their loading until they approach the viewport, which reduces initial page load times and saves bandwidth without affecting the user experience.