images-media

Optimize images and media with responsive srcset, WebP/AVIF, and alt text.

4|1|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/flitzrrr/frontend-design-skills --skill images-media
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: images-media
Source: https://github.com/flitzrrr/frontend-design-skills/tree/main/skills-src/images-media
Command: npx skills add https://github.com/flitzrrr/frontend-design-skills --skill images-media

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Poor image strategy and unoptimized media cause slow load times, inconsistent visual language, accessibility gaps, and missed SEO opportunities; this skill helps teams make deliberate image choices that balance aesthetics, performance, and accessibility.

Core Features & Use Cases

  • Image strategy: Define visual concept, mood, color palette, and selection criteria to ensure a consistent visual language across a site.
  • Technical optimization: Recommend formats (WebP/AVIF), compression targets, responsive srcset variants, width/height attributes to prevent CLS, and lazy-loading rules.
  • SVG & icon systems: Advise when to use inline SVGs, sprites, and consistent icon sets with accessible labels.
  • Accessibility & content: Produce meaningful alt text, detect when images are decorative, and ensure no important text is embedded in images.
  • Use cases: Designing hero sections, building galleries, creating image cards, and auditing site image performance and accessibility.

Quick Start

Use the images-media skill to audit a page's images, propose optimized formats and srcset variants, and generate descriptive alt text.

Frequently Asked Questions about images-media

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

FAQPage Schema
How do I optimize images for web performance and prevent layout shift?

Use WebP or AVIF formats, set compression targets, and include width and height attributes to prevent layout shift. Generate responsive srcset variants and apply lazy-loading rules to ensure images load efficiently across all viewport sizes.

What is the best way to generate responsive srcset variants for a website?

Create multiple image widths and select modern formats like WebP or AVIF for your srcset. Include width and height attributes for each variant to prevent layout shift, allowing browsers to select the optimal image for the user's viewport.

When should I use inline SVGs versus image formats for web icons?

Use inline SVGs and SVG sprites for icon systems to ensure scalable, accessible visuals with clear labels. Reserve raster formats like WebP or AVIF for complex imagery such as hero sections and galleries where photographic detail and responsive srcset variants are required.

How do I write meaningful alt text and identify decorative images?

Write descriptive alt text conveying image content for accessibility, and detect decorative images to assign empty alt attributes. Ensure no important text is embedded in images, applying this across hero sections, galleries, and image cards for consistent visual language.

Does lazy-loading work for all images in a gallery or hero section?

Lazy-loading decisions depend on image placement and viewport visibility. Below-the-fold gallery images benefit from lazy-loading to improve performance, while above-the-fold hero images typically require eager loading to ensure immediate rendering and prevent layout shift.

What is an image strategy for maintaining a consistent visual language?

An image strategy defines the visual concept, mood, color palette, and selection criteria to maintain a consistent visual language across a site. It combines technical optimization like responsive srcset variants with accessibility rules for alt text and SVG icon usage across viewports.