SkillsReviewed · thedaviddias

Cumulative Layout Shift skill from Front-End Checklist

The cumulative-layout-shift skill is an audit guide for frontend developers and coding assistants, but several framework examples are incomplete. It explains how to investigate unexpected page movement, reserve space for loading content and verify changes using browser tools or field measurements.

Researched 16 Nov 2026

In short.

This is a visual stability audit skill for frontend developers and coding assistants, with useful measurement guidance but incomplete framework examples. It targets unexpected page movement caused by images, embeds, fonts, dynamic content and animations. The documentation recommends a CLS score below 0.1 and asks users to confirm the cause before changing code. Its strongest material is the focused checklist; several React and Next.js snippets require completion. No examples were executed, and performance improvements are not established.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes skills/cumulative-layout-shift/SKILL.md and skills/cumulative-layout-shift/references/rule.md at revision e8d14d049010e2ce25afcd5e8609dfcbbe63e47e, plus the repository-level LICENSE as the related notice. Other skills, the broader repository and the linked rule website are outside scope. Assistant installation, code execution, browser behavior and actual performance improvement were not assessed.

The overview

identity

The resource is the cumulative-layout-shift skill folder within David Dias's Front-End-Checklist repository. It contains SKILL.md and references/rule.md. Its purpose is to guide investigation of Cumulative Layout Shift, the unexpected movement of page content.

The upstream folder is [https://github.com/thedaviddias/Front-End-Checklist/tree/main/skills/cumulative-layout-shift]. The documented scope is this individual skill, rather than the entire checklist repository.

assessment

The skill provides a useful structure for a focused layout-stability review: measure the problem, identify its cause, make a targeted change and verify the result. Its instruction to identify exact files, requests or rendering steps gives experienced reviewers a concrete reporting standard.

Implementation quality is uneven. The HTML and CSS examples communicate specific techniques, while several framework snippets are unfinished. Treat the reference as guidance requiring inspection and adaptation. No audit results establish its effectiveness.

users

It suits frontend developers investigating pages where images, advertisements, banners or other late-loading elements move existing content. Coding assistants can use its instructions to organize code review and explain proposed changes.

Beginners receive short explanations of the user impact and common causes. The source labels the task intermediate; interpreting performance traces, adapting font metrics and completing React or Next.js examples requires additional experience.

capabilities

The guidance covers image dimensions and aspect ratios, reserved space for ads and embeds, loading placeholders, font-display settings, font metrics and transform-based animations. It also warns against inserting content above existing content without reserving space.

It names Lighthouse, Chrome DevTools, PageSpeed Insights and real-user monitoring as measurement routes. JavaScript examples illustrate reporting CLS through web-vitals and inspecting layout-shift entries with PerformanceObserver.

Using it

requirements

Following the audit guidance requires a page to inspect and access to an appropriate measurement tool. File-level fixes also require access to the relevant frontend code. The examples use HTML, CSS, JavaScript and React or Next.js-style code.

The web-vitals example assumes an available onCLS function but omits its import and dependency setup. Supported assistant hosts, browser versions, framework versions and minimum tooling versions are unspecified.

mechanism

SKILL.md organizes the work into checking, fixing, explaining and reviewing code. It directs attention to measured layout or rendering costs and links to the reference for implementation examples.

The PerformanceObserver example ignores entries marked hadRecentInput and logs affected nodes with their previous and current rectangles. The onCLS example logs a metric and warns when its value exceeds 0.1. These are integration examples; the Markdown files do not themselves perform an audit or modify a page.

setup

Keep SKILL.md and references/rule.md together, preserving the references subdirectory because the skill links to that relative path. No assistant-specific installation command, registration procedure or compatibility declaration is provided.

Before integrating examples, complete their missing code and supply the dependencies required by the chosen measurement approach. Retain the repository licence notice when copying or redistributing substantial portions.

example

For a page where a loading image pushes text downward, the reference illustrates setting image width to 1200 and height to 600. With appropriate image proportions, this supplies dimensions for reserving space before the image loads.

A developer could investigate that image in DevTools, apply dimensions matching the actual asset and compare subsequent measurements. This is an illustrative use case; no before-and-after result is supplied.

Assessment & evidence

limitations

Several TSX examples cannot be used as written. Hero returns empty parentheses, the banner examples contain unfinished conditional expressions, and the Next.js font example lacks surrounding component structure. The onCLS example also omits its import.

The font metrics, placeholder dimensions and reserved container sizes are example values without measurements showing that they match a real page. Their suitability requires page-specific verification.

The documentation provides no measured improvements or compatibility results. It describes the target as below 0.1 while its table includes 0.1 in the good range, leaving the exact boundary inconsistent within the reference.

reasoning

The practical value comes from connecting visible movement to specific causes and changes: reserve space for arriving content, inspect font loading and avoid animations that change layout. Measuring first helps determine whether these techniques address the page's actual problem.

The evidence supports using the skill to structure an investigation. It does not establish that loading the skill into an assistant produces better diagnoses or lower CLS than a developer following the same guidance manually.

alternatives

A developer could follow the checklist manually using Lighthouse or Chrome DevTools without loading assistant instructions. The reference also names PageSpeed Insights and web-vitals reporting as measurement approaches.

These tools supply measurement paths described by the resource. No comparison with another packaged skill, or evidence of relative accuracy, effort or cost, is provided.

evidence

The primary instructions are in SKILL.md [https://raw.githubusercontent.com/thedaviddias/Front-End-Checklist/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/skills/cumulative-layout-shift/SKILL.md].

The implementation examples and verification suggestions are in references/rule.md [https://raw.githubusercontent.com/thedaviddias/Front-End-Checklist/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/skills/cumulative-layout-shift/references/rule.md]. The repository-level LICENSE supplies the reuse terms.

The material documents intended use and contains no runtime traces, measured CLS results or before-and-after comparisons. No code or tools were executed; runtime behavior remains unassessed.

Access & freshness

costs

The MIT licence grants permission free of charge. Costs for an assistant, model usage, hosting or monitoring services are unspecified, so total usage cost is unknown.

The source gives a 20-minute task estimate. It is an author estimate, not a price or an established completion time.

rights

The repository MIT licence identifies copyright 2017–2026 David Dias. It permits use, copying, modification, publication, distribution, sublicensing and sale, subject to retaining the copyright and permission notice in copies or substantial portions.

The licence disclaims warranties and liability. Its notice is available at [https://raw.githubusercontent.com/thedaviddias/Front-End-Checklist/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/LICENSE].

freshness

The source snapshot is revision e8d14d049010e2ce25afcd5e8609dfcbbe63e47e, captured on 16 November 2026 at 23:24:33 UTC. Changes after that capture are unknown.

The files do not identify a release version, last substantive update or supported framework and assistant versions. The copyright year does not establish when the technical guidance last changed.

actions

Begin with an affected page and identify actual shift sources using one of the named measurement tools. Connect each proposed change to the relevant element, asset or rendering step.

Adapt dimensions, placeholders and font settings to the page, complete any unfinished snippets, then remeasure. The reference also recommends checking slow connections and real-user monitoring. Treat the documented score target as a goal requiring evidence, rather than an assured outcome.

Evidence for this report

LICENSEnotice · checked 2026-11-16
skills/cumulative-layout-shift/SKILL.mdselected · checked 2026-11-16