Skip to main content

implement-responsive-images

Implement responsive images with accurate intrinsic size, source selection, art direction, formats, and accessibility. Use when one image must serve varied layouts, densities, networks, or crops.

Informações da origem

Repositório
protosphinx/sphinxstack
Última atividade na origem
29 de julho de 2026 às 13:55
Idioma detectado do SKILL.md
inglês
Estrelas
3
Forks
0

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.

Explorador de arquivos
2 arquivos

Exibindo SKILL.md

SKILL.md
Instruções da origem · Visualização somente leitura
name
implement-responsive-images
category
web
description
Implement responsive images with accurate intrinsic size, source selection, art direction, formats, and accessibility. Use when one image must serve varied layouts, densities, networks, or crops.
# implement-responsive-images Let the browser choose the smallest appropriate source from truthful layout information. ## Procedure 1. Define image purpose, semantic alternative, rendered widths, crops, and priority. 2. Generate quality-checked source widths that avoid redundant near-duplicates. 3. Add intrinsic dimensions or aspect ratio to reserve layout space. 4. Use `srcset` and an accurate `sizes` expression for resolution switching. 5. Use `picture` only for meaningful art direction or format fallback. 6. Set fetch priority and lazy loading according to whether the image is critical. 7. Preserve focal content, color, transparency, metadata policy, and accessible text. 8. Test viewport, density, zoom, save-data, slow network, failure, and print behavior. 9. Verify selected resources and visual quality in browser evidence. ## Guardrails - Never lazy-load the primary visible image without measuring the impact. - Do not use CSS background images for meaningful content. - Avoid oversized originals as a universal fallback. ## Done - An image-source and layout specification report is documented - Art direction, accessibility, failure, and network cases are tested - Browser-selected widths and layout stability are verified
Ver no GitHub