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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentās skills folder.
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`.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2997
- License
- MIT
- Updated
- 10/31/2026
Comments
- ā¦
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
gifgrep
394kLets your agent search GIF libraries, preview results, download a GIF, and pull out a still frame or a contact sheet of frames.
meme-maker
394kLets your agent pick a meme template, add your own captions, and create the meme as an SVG or PNG image.
ios-icon-gen
280kLets your agent generate icons for iOS apps. It uses Apple symbols or icons from other sources to create the correct files.