thedaviddias/front-end-checklist

responsive-images

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`.

First seen Jun 20, 2026

Installation

$ npx skills add thedaviddias/front-end-checklist --skill responsive-images

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from thedaviddias/front-end-checklist · top by installs.

npx skills add thedaviddias/front-end-checklist

Browse all from thedaviddias/front-end-checklist

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 74.1K
License MIT
Default branch main
Open issues 5
Status Active

Skill metadata

Parsed from SKILL.md frontmatter.

More metadata
category
images
priority
high
difficulty
intermediate
estimatedTime
20
source
frontendchecklist.io
url
https://frontendchecklist.io/en/rules/images/responsive-images

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,617 B
  • docs SUMMARY.md 259 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 11 installs

SKILL.md

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/en/rules/images/responsive-images