dimensions

dimensions is a skill for Claude Code, Codex from thedaviddias/Front-End-Checklist. It costs 63 tokens per session (767 once invoked), scanned A, original, MIT.

A review guide for giving images explicit width and height values so the browser can reserve their space before they load.

In plain words
What is it for?
Use it to review image markup, assets, CDN transformations, and layout-shift risks, while ignoring tiny decorative graphics unlikely to move content.
Why use it?
It helps prevent page content from shifting while images appear and considers image size, loading strategy, and above-the-fold content together.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review image markup, assets, CDN transformations, and layout-shift risks, while ignoring tiny decorative graphics unlikely to move content.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thedaviddias/front-end-checklist/dimensions
About the project

Front-End Checklist is a collection of front-end web development rules organized as a practical review and quality workflow for people and AI agents. Developers use it to audit projects and pull requests, check implementation details, and find guidance for remediation and verification. The catalogue entries provide skills, instructions, MCP tools, and a plugin for using the checklist in agent workflows.

thedaviddias/Front-End-Checklist · 74,876 stars · on GitHub · frontendchecklist.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thedaviddias/Front-End-Checklist --skill dimensions
Clone the repo
git clone --depth 1 https://github.com/thedaviddias/Front-End-Checklist

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dimensions

README.md
[![agentmods](https://agentmods.dev/badge/skills/thedaviddias/front-end-checklist/dimensions/github.svg)](https://agentmods.dev/skills/thedaviddias/front-end-checklist/dimensions)
Your own site
<a href="https://agentmods.dev/skills/thedaviddias/front-end-checklist/dimensions"><img src="https://agentmods.dev/badge/skills/thedaviddias/front-end-checklist/dimensions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dimensions

Your own site · 80×15
<a href="https://agentmods.dev/skills/thedaviddias/front-end-checklist/dimensions"><img src="https://agentmods.dev/badge/skills/thedaviddias/front-end-checklist/dimensions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 767 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.00767
Opus 5.5 $0.00025 $0.00307
Sonnet 5.5 $0.00013 $0.00153
Haiku 4.5 $0.00006 $0.00077

Measured 1mo ago against content hash bd4d3dba447f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dimensions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dimensions/SKILL.md · 48 lines

How it starts

The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Set explicit width and height on images

Images without explicit dimensions are the most common cause of Cumulative Layout Shift (CLS), a Core Web Vitals metric. When images load and cause layout jumps, users accidentally click the wrong element—a frustrating experience that Google penalises in search rankings. A CLS score above 0.1 is considered 'needs improvement'; above 0.25 is 'poor'.

Quick Reference

  • Reserve findings for meaningful content images; decorative micro-SVGs or ornament-only assets are low-priority exceptions when CSS already reserves stable space
  • Example low-risk exception: <img src="/divider.svg" alt="" aria-hidden="true"> should not be flagged on its own without evidence of visible layout shift
  • Always set width and height attributes on <img> matching the image's intrinsic dimensions
  • Pair with height: auto in CSS to keep the image fluid while preserving the aspect ratio
  • Missing dimensions are the leading cause of Cumulative Layout Shift (CLS) from images
  • Browsers derive aspect-ratio from these attributes—do not set arbitrary placeholder values

Check

Scan all elements in the codebase. Identify any that are missing either the width or height attribute. Also check elements inside —dimensions should be on the fallback. Report each image missing dimensions with its file path and line number. Note: SVG icons under 32px, tiny decorative SVG ornaments with stable CSS sizing, and images loaded as CSS backgrounds are exempt.

Fix

For each missing width/height: 1) Add the intrinsic pixel dimensions as attributes (e.g., width="800" height="450"). 2) Use CSS max-width: 100% and height: auto on the element to keep it responsive. 3) The attribute values must match the image's intrinsic aspect ratio—do not set arbitrary numbers. 4) For dynamically sized images, calculate the aspect ratio and use the CSS aspect-ratio property as a fallback. 5) Skip purely decorative micro assets when the snippet already shows stable sizing and there is no evidence of layout shift risk. Show the before and after HTML for each fixed image.

Read the full file on GitHub · 48 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed bd4d3dba447f
  2. 2mo ago First seen · 48 lines · 63 tokens per session scan A 1298588c9762

Subscribe to this mod's changes

dimensions is a skill published in the GitHub repository thedaviddias/Front-End-Checklist (74,876 stars, last pushed 1mo ago), licensed MIT. It adds 63 tokens to every session and 767 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

dimensions compared with skills from other repositories

dimensions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dimensionsthedaviddias/Front-End-ChecklistSkill75k1mo agoMITA63Claude Code, Codex
scalar-design-systemscalar/scalarSkill16kyesterdayMITA68Claude Code, Codex
stopoversborski/travel-hacking-toolkitSkill1.1k6d agoMITA62Claude Code
flight-search-strategyborski/travel-hacking-toolkitSkill1.1k6d agoMITA48Claude Code
alliancesborski/travel-hacking-toolkitSkill1.1k6d agoMITA39Claude Code
design-loopericrisco/rsc-harnessSkill6824d agoMITA79Claude Code, Codex
lingtai-tui-anatomyLingtai-AI/lingtaiSkill5081mo agoApache-2.0A100Claude Code, Codex