SkillsReviewed · Google Chrome DevTools team

debug-optimize-lcp

debug-optimize-lcp is an AI assistant skill for web developers investigating slow page loads, but it requires a working Chrome DevTools MCP connection. It guides inspection of Largest Contentful Paint through performance traces, network requests and page scripts, then links the identified delay to possible fixes.

Researched 12 Nov 2026

In short.

debug-optimize-lcp is an AI assistant skill for web developers investigating slow page loads, but its browser tools need separate setup. It explains Largest Contentful Paint, collects trace insights, identifies the relevant page element and checks its network and rendering behavior. Its strength is connecting a measured bottleneck to a targeted change. Installation guidance, tool-version compatibility and measured performance gains are not established. The supplied inspection scripts also have limitations that make their findings starting points for investigation.

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

Coverage includes the complete skills/debug-optimize-lcp directory at revision 83d2ba4dde9663a8cd0bdb8af6c99fea50726003: SKILL.md, references/elements-and-size.md, references/lcp-breakdown.md, references/lcp-snippets.md and references/optimization-strategies.md. The repository LICENSE is included as the related rights notice. Linked pages and other repository folders are excluded. No code or browser tools were executed; installation success, runtime compatibility and performance improvements remain unassessed.

The overview

Identity

debug-optimize-lcp is an instruction skill in the ChromeDevTools/chrome-devtools-mcp repository. Its declared purpose is to guide an assistant through debugging and improving Largest Contentful Paint, or LCP: the time until a page's largest qualifying image or text block appears in the viewport.

The resource includes SKILL.md and four reference files covering eligible elements, timing subparts, inspection snippets and optimization strategies. Its source address is [https://github.com/ChromeDevTools/chrome-devtools-mcp/tree/main/skills/debug-optimize-lcp].

Assessment

The skill is useful for developers who already have the browser integration and want a structured investigation. It connects trace recording, LCP insights, element identification and network inspection before suggesting fixes, reducing reliance on generic image-compression advice.

It is less self-contained for someone starting without that integration: installation instructions and supported versions are absent. The material documents intended behavior and supplies diagnostic code, but provides no execution results or measured improvements.

Users

The clearest audience is frontend developers and performance engineers investigating a late hero image, delayed main text or another slow LCP element. Developers responsible for servers and content delivery can also use its guidance on response latency, caching and resource delivery.

Beginners get a conceptual breakdown of LCP, while experienced developers get named trace insights and JavaScript inspection snippets. Following the investigation still requires familiarity with browser timing, HTML, CSS, JavaScript and network requests.

Capabilities

The documented sequence records a reload trace, examines LCPBreakdown, DocumentLatency, RenderBlocking and LCPDiscovery insights, identifies an LCP element through the Performance API, and inspects relevant network requests.

The supplied scripts return element and timing details and flag possible issues such as lazy-loaded viewport images, large images without fetchpriority and external synchronous scripts in the document head. Suggested remedies include earlier resource discovery, rendering changes, smaller resources and faster HTML delivery. These are documented capabilities, not demonstrated runtime results.

Using it

Requirements

Use requires an assistant environment that can load the instructions and access the named Chrome DevTools MCP tools, plus a browser page those tools can inspect. The instructions pass pageId to browser operations and use trace insight identifiers returned by earlier calls.

Applying the proposed fixes requires control of the relevant application code or delivery configuration. Supported assistant clients, operating systems, browser versions, MCP server versions and runtime dependencies are not specified in these files.

Mechanism

The skill divides LCP into time waiting for the first HTML response byte, delay before the LCP resource starts loading, resource download time and delay before the element renders. This helps distinguish a slow server from late resource discovery or blocked rendering.

The assistant gathers trace insights, checks the element and request details, chooses a remedy for the dominant delay, and records another trace for comparison. The reference gives a target of 2.5 seconds or less for at least 75% of page visits; an individual reload trace does not establish that visitor-wide result.

Setup

Keep SKILL.md with its references directory because the instructions depend on the accompanying snippets and explanations. The supplied files do not explain how to install the skill in a particular assistant or configure Chrome DevTools MCP.

Once that connection exists, the documented starting sequence is navigate_page followed by performance_start_trace with reload: true and autoStop: true. Retain the returned insight set identifiers for performance_analyze_insight. Optional emulation uses Fast 3G networking and a CPU throttling rate of 4.

Example

An illustrative use is investigating a hero image that appears late. The assistant would identify whether that image is the LCP element, inspect LCPBreakdown and LCPDiscovery, and examine its network request to distinguish late discovery from a slow download.

If the evidence identifies loading="lazy" on that LCP image, the skill recommends removing it and considering fetchpriority="high". A subsequent trace under comparable conditions would show whether the relevant delay changed. This example has no observed timings or confirmed outcome.

Assessment & evidence

Limitations

The element-identification snippet resolves using the last entry available in its first observer callback. It has no explicit completion criterion, timeout or observer cleanup, so it should not be assumed to provide a finalized measurement in every situation.

The image audit checks only whether an image's top edge is above the bottom of the viewport (rect.top less than window.innerHeight). It does not check the image's bottom edge, horizontal overlap or visibility, so it can flag images outside the visible viewport. Its area threshold and missing-fetchpriority check are heuristics, not proof that an image determines LCP.

The DOM audit covers images and certain scripts rather than every eligible LCP element or rendering cause. The guide also distinguishes lab measurements from real experience, but supplies no field-data collection or percentile aggregation method.

Reasoning

The strongest part of the approach is matching a change to the measured delay. A smaller image need not improve LCP if scripts or styles still prevent it from rendering. Inspecting both resource timing and rendering delay makes the proposed fix easier to justify.

The percentage targets should be treated as guidance rather than universal budgets: the breakdown itself assigns zero resource-load delay and duration to text needing no separate resource. Some recommendations also lack a corresponding diagnostic step; for example, back/forward cache eligibility is suggested without an eligibility audit or history-navigation test.

Alternatives

For someone who only needs the concepts, the included LCP breakdown and element-size references can be read directly without loading the assistant skill. Manually following the documented trace and inspection operations is another plausible approach, inferred from the operations described.

The supplied material contains no comparisons with other skills, tools or monitoring services. Relative accuracy, convenience and cost are unknown.

Evidence

The source material comprises the complete skill directory: SKILL.md and four reference documents, together with the repository LICENSE. The main instruction file at the recorded revision is [https://raw.githubusercontent.com/ChromeDevTools/chrome-devtools-mcp/83d2ba4dde9663a8cd0bdb8af6c99fea50726003/skills/debug-optimize-lcp/SKILL.md].

These documents establish the intended procedure and the inspection code's contents. They supply no observed traces, before-and-after measurements, benchmark dataset or real-visitor results. Runtime behavior, tool compatibility and achieved improvements are not assessed.

Access & freshness

Costs

The Apache License 2.0 grants the covered copyright permissions without licence royalties. That does not establish the total cost of using the skill.

The files provide no prices for an assistant client, model provider, browser infrastructure, hosting or suggested CDN changes. Setup effort and ongoing operating costs are unknown.

Rights

The supplied repository licence is Apache License 2.0. It permits copying, modification and redistribution subject to its terms. Redistribution requires supplying the licence, preserving applicable notices and marking modified files. Applicable NOTICE attributions must also be preserved when such a file accompanies the work.

The licence includes a conditional patent grant, does not grant general trademark rights and disclaims warranties. No NOTICE file is among the reviewed files; whether the repository includes one is not established, and any applicable NOTICE attributions must be kept if present. The licence source is [https://raw.githubusercontent.com/ChromeDevTools/chrome-devtools-mcp/83d2ba4dde9663a8cd0bdb8af6c99fea50726003/LICENSE].

Freshness

The source snapshot was captured on 12 November 2026 at repository revision 83d2ba4dde9663a8cd0bdb8af6c99fea50726003. That capture date does not establish when the skill was written or last maintained.

No release version, changelog or tool compatibility matrix is supplied. Changes after this revision and compatibility with other Chrome DevTools MCP versions are unknown.

Actions

Before adopting the skill, confirm that your assistant exposes the named tools and accepts their documented parameters. Keep the reference files alongside the main instructions, and establish the page's LCP element and dominant timing subpart before choosing a change.

Treat script-generated warnings as leads requiring inspection. Compare traces under consistent conditions after a targeted change, then assess real-visitor data separately before claiming that the page meets the stated LCP target.

Evidence for this report

LICENSEnotice · checked 2026-11-12
skills/debug-optimize-lcp/SKILL.mdselected · checked 2026-11-12