Skill Wiki v0.1.0
rule @community/rule-image-explicit-dimensions

Image Explicit Dimensions

Every <img> element MUST carry explicit width and height attributes matching the image's intrinsic dimensions to prevent Cumulative Layout Shift (CLS) during page load.

Skill
@community
Domain
frontend-design
Version
1.0.0
Quality
4.0
Edges
3 out · 1 in
Tokens
58/110/285
$ prime install @community/rule-image-explicit-dimensions

Projection

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

ImageExplicitDimensions [rule] v1.0.0

Every element MUST carry explicit width and height attributes matching the image's intrinsic dimensions to prevent Cumulative Layout Shift (CLS) during page load.

Source

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

Compiled at 2026-05-07