debug-optimize-lcp
Skill by ChromeDevTools
Guides debugging and optimizing Largest Contentful Paint using Chrome DevTools MCP tools. It is for developers who want to find why a page's main content loads slowly and fix it.
Install debug-optimize-lcp
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ChromeDevTools/chrome-devtools-mcp /tmp/chrome-devtools-mcp && mkdir -p ~/.claude/skills && cp -r /tmp/chrome-devtools-mcp/skills/debug-optimize-lcp ~/.claude/skills/debug-optimize-lcpRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ChromeDevTools/chrome-devtools-mcp /tmp/chrome-devtools-mcp && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/chrome-devtools-mcp/skills/debug-optimize-lcp ~/.gemini/antigravity-cli/skills/debug-optimize-lcpAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill walks an assistant through diagnosing Largest Contentful Paint (LCP), a Core Web Vital that measures how fast the largest image or text block renders. It gives the LCP thresholds (good at 2.5 seconds or less, poor above 4.0 seconds) and breaks LCP into four subparts: time to first byte, resource load delay, resource load duration and element render delay. The workflow records a performance trace with a page reload, reads LCP insights, identifies the LCP element, checks the network waterfall and inspects the HTML for issues such as lazy-loaded hero images or missing fetchpriority. It then suggests fixes for each bottleneck and shows how to re-run the trace and emulate slower networks and CPUs.
The skill is intended for developers and site owners who ask about LCP, slow page loads, Core Web Vitals or hero image rendering. It depends on Chrome DevTools MCP tools and on helper snippets stored in a references file.
Written from the project's SKILL.md and checked against it.
What it can do
- navigate_pageNavigates the page to the target URL before tracing.
- performance_start_traceRecords a performance trace with reload to capture LCP timing.
- performance_analyze_insightDrills into LCP insights such as LCPBreakdown, DocumentLatency, RenderBlocking and LCPDiscovery.
- evaluate_scriptRuns snippets that identify the LCP element and audit common HTML issues.
- list_network_requestsLists image and font requests to see when the LCP resource loaded.
- get_network_requestReturns full details for the LCP resource request.
- emulateTests the page under network and CPU throttling such as Fast 3G and 4x CPU slowdown.
What you need
- Chrome DevTools MCP tools
Try asking
- Debug why the hero image on my page loads slowly
- Find the LCP element on https://example.com and explain its subparts
- Check my page's LCP under Fast 3G and 4x CPU throttling
Good to know
- Lab measurements can differ from real-world experience, according to the source.
- The diagnostic snippets are stored in a separate references file that the skill links to.
- Fix recommendations are general guidance and are not tied to a specific framework.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/debug-optimize-lcp/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
references/elements-and-size.md1 KB -
references/lcp-breakdown.md2 KB -
references/lcp-snippets.md3 KB -
references/optimization-strategies.md2 KB
Alternatives to debug-optimize-lcp
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
debug-optimize-lcp: common questions
What is a good LCP score?
The source says LCP of 2.5 seconds or less is good, 2.5 to 4.0 seconds needs improvement, and greater than 4.0 seconds is poor.
Should the LCP image be lazy loaded?
No. The source says never to lazy-load the LCP image and to use a standard img tag with src and fetchpriority high.
What are the four LCP subparts?
The source lists time to first byte, resource load delay, resource load duration and element render delay. Each subpart has a target share of the total LCP.
How do I install debug-optimize-lcp?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is debug-optimize-lcp free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is debug-optimize-lcp safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to debug-optimize-lcp?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
