image-optimization-weapon
Installation
SKILL.md
Image Optimization Weapon
The image-optimization-weapon encodes the complete 2026 image delivery playbook: format selection, responsive delivery, placeholder strategies, framework integration, and tooling. Its primary audience is React/Next.js developers shipping web products where images are a material fraction of page weight and LCP candidates.
The non-negotiables (detailed in guides/00-principles.md):
- AVIF first, WebP fallback — never JPEG as primary for new raster content.
width+heightalways — missing dimensions cause CLS.- LCP images get
priority(Next.js <16) orpreload(Next.js 16+) /fetchpriority="high"(native) — neverloading="lazy". sizesmust match the CSS layout — the default100vwis wrong for most components.- Placeholders must be chosen deliberately — LQIP via Sharp is the default; BlurHash/ThumbHash for color-faithful scenarios.