Ship images that cost almost nothing
Modern formats, responsive sizes, lazy strategies, and priority hints for above-fold heroes.
Track: 🎨 Frontend Engineering · Domain: Web Performance · Level: foundation · ~25 min
Who this is for: Frontend Engineers, Full-Stack Developers, Design Engineers, UI Developers
When to Use This Skill
Modern formats, responsive sizes, lazy strategies, and priority hints for above-fold heroes. Use it whenever a matching task appears in conversation — the agent loads these instructions on demand.
Steps
- Serve AVIF/WebP with automatic fallbacks via an image component or CDN
- Generate responsive srcsets at 3-4 widths matched to actual layout slots
- Lazy-load below-fold images; set fetchpriority=high on the LCP hero only
- Always set explicit width and height to protect CLS
- Strip metadata at upload; cap decoded size for thumbnails
- Audit monthly for orphaned assets and unoptimized direct usage
Common Pitfalls
- Lazy-loading the hero because a global wrapper applied it
- Serving 2400px originals into 300px cards
Commands
Install with skills CLI
npx skills add aniruddhaadak80/skills --skill web-performance-image-pipeline
Install globally
npx skills add aniruddhaadak80/skills --skill web-performance-image-pipeline -g
Part of aniruddhaadak80/skills · Browse all at https://skills.sh/aniruddhaadak80/skills