responsive-size
Qué hace
Esta skill compara el tamaño de cada imagen con el tamaño con el que aparece en pantalla, y corrige las imágenes que son demasiado grandes. Es para creadores web cuyas páginas cargan lento por imágenes sobredimensionadas.
Cuándo usarla
- ✓Cuando pides al agente encontrar imágenes sobredimensionadas en tu sitio.
- ✓Cuando una auditoría de la página indica que las imágenes son más grandes de lo necesario.
- ✓Cuando una imagen principal es muy grande pero se muestra en un contenedor pequeño en los teléfonos.
Link de la skill
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/responsive-size/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Algunas fotos de mi sitio son enormes en comparación con cómo se ven en pantalla. ¿Puedes encontrarlas y crear versiones más pequeñas?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente compara el ancho real de cada imagen con su ancho mostrado en los tamaños de pantalla comunes. Para las imágenes sobredimensionadas, crea variantes en varios anchos y añade srcset y sizes para que el navegador elija la correcta.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Serve images at the correct display size
A single oversized hero image can add several megabytes to a page load unnecessarily. On mobile devices with 375px screens, serving a 1600px image downloads 4x the data users need. The 'Properly size images' Lighthouse audit consistently identifies this as one of the highest-impact performance opportunities on most websites.
Quick Reference
- Serving a 1600px image in a 400px container wastes ~16x the necessary bandwidth
- Use
srcsetwith width descriptors andsizeswith actual layout widths - The
sizesattribute is critical—without it the browser assumes100vwand picks the largest image - Lighthouse 'Properly size images' audit reports estimated savings per oversized image
Check
Audit images in this codebase for oversizing. Use Lighthouse 'Properly size images' audit results as the primary signal. For each <img> in the HTML: 1) Compare the image file's intrinsic width to the element's rendered CSS width (check CSS rules, container constraints). 2) Flag any image where the intrinsic width is more than 2x the rendered width at any common viewport size. 3) Check for srcset usage—images over 200px wide should have srcset variants. 4) Check sizes attribute accuracy—does it reflect the actual CSS layout?
Fix
For each oversized image: 1) Generate multiple size variants: 400w, 800w, 1200w, 1600w (use Sharp or Squoosh). 2) Add srcset listing each variant with its width descriptor. 3) Add a sizes attribute describing the image's display width at each breakpoint (e.g., sizes="(max-width: 600px) 100vw, (max-width: 1200px) 50vw, 400px"). 4) For art direction (different crops), use <picture> with media attributes. 5) For the <img> src fallback, use the medium size (800w). Show complete before/after HTML.
Explain
Explain why serving oversized images wastes bandwidth. If a browser renders an image at 400px wide but the image file is 2000px wide, the browser downloads ~25x more pixel data than it can display (bandwidth scales with pixel count, not linear dimensions). The Lighthouse 'Properly size images' audit estimates potential savings in KiB for each oversized image. The sizes attribute is the key to accuracy—without it, the browser assumes 100vw and downloads the largest srcset candidate even on narrow viewports.
Code Review
Review image assets, markup, and delivery configuration related to Serve images at the correct display size. Flag exact files or components where format choice, sizing, or loading behavior violates the rule, and describe how to confirm the fix in DevTools.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/images/responsive-size
Preguntas frecuentes
¿Qué conjunto de tamaños es habitual?
La skill sugiere variantes de 400, 800, 1200 y 1600 píxeles de ancho.
¿Por qué importa el atributo sizes?
La skill indica que sin él, el navegador supone que la imagen ocupa todo el ancho de la pantalla y elige el archivo más grande.
¿Qué herramientas pueden redimensionar las imágenes?
La skill menciona Sharp o Squoosh para crear las variantes.
Detalles
Descripción original del autor
Use when reviewing image assets, markup, and CDN or build transforms related to Serve images at the correct display size. Check encoded size, rendered size, loading strategy, and above-the-fold impact together.
Popularidad
- Estrellas en GitHub
- 75 mil
- Posición en el ranking
- #2998
- Licencia
- MIT
- Actualizada
- 31/10/2026
Comentarios
- …
Más skills de este repositorio
frontendchecklist
75 milRevisa código frontend y páginas en vivo con más de 380 reglas de accesibilidad, velocidad, SEO y seguridad, usando una herramienta de línea de comandos.
frontend-checklist-global
75 milAudita un proyecto frontend con las 386 reglas de Front-End Checklist y ofrece una corrección concreta para cada problema encontrado.
404-page
75 milComprueba que tu página de no encontrado ofrezca enlaces útiles y devuelva un estado 404 real, para ayudar a los visitantes perdidos a encontrar su camino.
about-page
75 milRevisa si tu sitio tiene una página Sobre nosotros clara que explique quién lo dirige, para generar confianza en los visitantes y en los buscadores.
Skills parecidas
gifgrep
394 milPermite que tu agente busque GIF en bibliotecas, vea una vista previa de los resultados, descargue un GIF y extraiga un fotograma fijo o una hoja de contacto de fotogramas.
meme-maker
394 milPermite que tu agente elija una plantilla de meme, añada tus propios textos y cree el meme como imagen SVG o PNG.
ios-icon-gen
280 milPermite a tu agente generar iconos para apps de iOS. Usa símbolos de Apple u otras fuentes para crear los archivos correctos.