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
0.0
Edges
0 out · 0 in
Tokens
102/540/1043
$ aoe 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

aoe-engine/examples/frontend-design/primes/compiled/@community/rule-image-optimization/atom.yaml