Skill Wiki v0.1.0
rule @community/rule-image-optimization

Image Optimization

Every raster image in an HTML artifact MUST: (a) declare `loading='lazy'` for below-the-fold images, (b) be served in a next-gen format (WebP or AVIF) with a fallback, and (c) provide a `srcset` / `<picture>` for respons…

Skill
@community
Domain
performance
Version
1.0.0
Quality
4.0
Edges
4 out · 7 in
Tokens
101/518/950
$ prime install @community/rule-image-optimization

Projection

Always in _index.xml · the agent never has to ask for this.

ImageOptimization [rule] v1.0.0

Every raster image in an HTML artifact MUST: (a) declare loading='lazy' for below-the-fold images, (b) be served in a next-gen format (WebP or AVIF) with a fallback, and (c) provide a srcset / <picture> for responsive resolution selection. Missing any of these wastes bandwidth, blocks Largest Contentful Paint (LCP), and harms Core Web Vitals.

Source

prime-system/examples/frontend-design/primes/compiled/@community/rule-image-optimization/atom.yaml

Compiled at 2026-05-07