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.

소스 정보

저장소
protosphinx/sphinxstack
최근 소스 활동
2026년 7월 29일 13:55
감지된 SKILL.md 언어
영어
스타
3
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
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
GitHub에서 보기