Skip to content
Skillpedia
Images & icons75k Ā· #2997

responsive-images

What it does

This skill checks the image markup on a site and adds srcset and sizes attributes where they are missing or wrong. It is for web builders who show images at different sizes on different screens.

When to use it

  • āœ“When you ask the agent to make images load the right size for each device.
  • āœ“When phones download large desktop images and loading feels slow.
  • āœ“When you build article cards, galleries, or other components that show images at several widths.

Skill link

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/responsive-images/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/responsive-images/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

ā€œMy site sends huge images to phones. Can you set up responsive images so each device gets a suitable size?ā€

5 new skills a week. 1 minute to read.

How it works

The agent adds a srcset with several widths and a sizes attribute that matches the real layout. This lets the browser pick the smallest suitable file for each screen and pixel density.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Implement responsive images with srcset

Serving a 2000px image to a 400px phone screen wastes bandwidth and slows loading—srcset lets the browser download only the size it needs.

Quick Reference

  • Use srcset to provide multiple image sizes
  • Use sizes attribute to tell browser which size to download
  • Browser selects optimal size based on viewport and DPR
  • Can save 50-70% bandwidth on mobile devices

Check

Verify that images use srcset and sizes attributes for responsive delivery.

Fix

Implement responsive images with srcset for different screen sizes and resolutions.

Explain

Explain how responsive images deliver optimized versions based on device capabilities.

Code Review

Inspect image markup and component abstractions for srcset, sizes, and width/height handling. Flag pages that always ship desktop-sized assets to mobile, omit sizes, or generate variants that do not match the actual rendered layout.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/images/responsive-images

FAQ

What happens if sizes is wrong?

The skill says a wrong sizes attribute can cancel the benefit of srcset, because the browser may pick a file that is too large.

Do I need to create several image versions?

Yes. Srcset needs the image in several sizes, which the agent can help generate.

Does this help with bandwidth?

The skill says it can save a lot of bandwidth on mobile devices.

Details

Original description by the author

Use when reviewing article images, cards, galleries, or any component rendered at multiple sizes across breakpoints. Check both the markup and the CSS layout because an incorrect `sizes` attribute can negate a perfectly good `srcset`.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#2997
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills