debug-optimize-lcp
Skill53k starsChanged 6 months agoApache-2.0View on GitHub
Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions "largest contentful paint", "page load speed", "CWV", or wants to improve how fast their hero image or main content renders.
1 other project uses a version of this, 1 of them edited; 1 of 1 edited versions we compared changed its rules.
How people change it
1 of 1 edited versions changed its rules.
Of the 1 edited version we compared: 1 made changes of their own.
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- MorningStar0709/trae-agent-enhancementsedited, first seen Apr 28, 2026
Who's talking about ChromeDevTools/chrome-devtools-mcp
- A Hacker News story“ChromeDevTools/Chrome-devtools-MCP: Chrome DevTools for coding agents”Hacker News · Sep 28, 2025 · 11 points
- @bearstech.com“"Chrome DevTools for coding agents" Combien de centrales nucléaires faut-il pour faire tourner ce combo ? …”Bluesky · Jan 14, 2026 · 8 likes
- @github-trending-js.bsky.social“📦 ChromeDevTools / chrome-devtools-mcp ⭐ 49,401 (+63) 🗒 TypeScript Chrome DevTools for coding agents”Bluesky · Aug 19, 2026 · 4 likes
- @github-trending-js.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 45,653 (+303) 🗒 TypeScript …”Bluesky · Jul 4, 2026 · 4 likes
- @github-trending-js.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 19,943 (+290) 🗒 TypeScript …”Bluesky · Jan 10, 2026 · 4 likes
The biggest 5 of 102 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 102
Talked about on GitHub, Bluesky and Hacker News (102 times).
On GitHub · 50
- Jun 2, 2026[react-devtools-cdt-mcp] chrome-devtools-mcp integration — react/react3 reactions · 2 comments
- Oct 28, 2026feat(agent-plugins): load skills and MCP servers from Agent Plugins — Kilo-Org/kilocode2 reactions · 2 comments
- Oct 21, 2026[BUG] Plugin dependency installer warns for optional peerDependencies when package.json has overrides — anthropics/claude-code2 reactions · 1 comment
- Sep 18, 2026chore(deps-dev): bump the npm-development group with 10 updates — ComposioHQ/composio2 reactions · 5 comments
- Jul 13, 2026Give the agent a real browser (chromium + chrome-devtools-mcp) during runs — openagt/openagent2 reactions · 5 comments
45 more on GitHub
- Apr 30, 2026Agent fails with `Failed to start CDP` on Linux — `/json/version` returns 404 on default user-data-dir (Chromium 146 regression) — browseros-ai/BrowserOS2 reactions · 4 comments
- Mar 17, 2026ProviderModelNotFoundError due to inherit model setting (opencode) — gsd-build/get-shit-done2 reactions · 17 comments
- Feb 11, 2026Support --auto-connect — vercel-labs/agent-browser2 reactions · 1 comment
- Nov 23, 2026fix: bump the npm-minor-patch group across 1 directory with 38 updates — groupthinking/EventRelay1 reaction · 2 comments
- Nov 21, 2026fix: bump the npm-minor-patch group across 1 directory with 33 updates — groupthinking/EventRelay1 reaction · 3 comments
- Nov 17, 2026fix: bump the npm-minor-patch group across 1 directory with 32 updates — groupthinking/EventRelay1 reaction · 3 comments
- Nov 11, 2026Add react-devtools-cdt-mcp to the frontend dev setup — Arize-ai/phoenix1 reaction
- Nov 11, 2026fix(mcp): disable the browser MCP's Google telemetry and update checks — etalab-ia/codebox1 reaction · 1 comment
- Oct 1, 2026chore(deps): update chrome-devtools-mcp to 1.10.1 — openclaw/openclaw1 reaction · 33 comments
- Sep 21, 2026fix(browser): preserve references across waits and renderer changes — openclaw/openclaw1 reaction · 8 comments
- Sep 15, 2026Bump chrome-devtools-mcp from 1.8.0 to 1.9.0 in the npm-all group across 1 directory — KillerPixelCrew/WSGM1 reaction · 4 comments
- Jul 29, 2026fix: reject PWA access if network conditions are configured — puppeteer/puppeteer1 reaction
- Jul 6, 2026docs(mcp): add Chrome DevTools MCP server example — gptme/gptme1 reaction · 5 comments
- Jun 17, 2026fix(mcp): refresh catalog endpoints and docs — generalaction/emdash1 reaction · 1 comment
- Apr 16, 2026Add 12 new WebMCP resources (April 2026 scan) — ilkerulusoy/awesome-webmcp1 reaction
- Mar 25, 2026SK-386: Fix 3 claude code plugin installation issues — sleuth-io/sx1 reaction · 3 comments
- Jan 23, 2026fix: typo in the config path in getConfigHomeLinux — puppeteer/puppeteer1 reaction
- Nov 6, 2025Extension "[object Object]" installed successfully and enabled. — google-gemini/gemini-cli1 reaction · 3 comments
- Oct 3, 2025https://github.com/ChromeDevTools/chrome-devtools-mcp/ — RooCodeInc/Roo-Code1 reaction · 3 comments
- Sep 30, 2025[Server Submission]: Chrome DevTools MCP — cline/mcp-marketplace1 reaction · 2 comments
- Nov 23, 2026chore(deps-dev): Bump chrome-devtools-mcp from 1.12.0 to 1.13.0 — shoji9x9/recipe-box0 reactions
- Nov 22, 2026build(deps-dev): bump chrome-devtools-mcp from 1.6.0 to 1.13.0 — jortega0033/scene-sift0 reactions
- Nov 21, 2026Bump chrome-devtools-mcp from 1.12.0 to 1.13.0 in /packaging — dorsaltegmentum/lt-suite0 reactions
- Nov 20, 2026build(deps): bump chrome-devtools-mcp from 1.12.0 to 1.13.0 — ThinkerQAQ/remote-browser-mcp0 reactions
- Nov 18, 2026build(deps): bump chrome-devtools-mcp from 1.12.0 to 1.13.0 — NotasAnte/pilotab0 reactions
- Nov 18, 2026[Feature]: Add optional browser diagnostics based on Chrome DevTools for agents — nightly-labs/openbot0 reactions
- Nov 17, 2026Bump chrome-devtools-mcp from 1.12.0 to 1.13.0 — ilandahan/AID0 reactions
- Nov 17, 2026Bump chrome-devtools-mcp from 1.7.0 to 1.13.0 in /docker/mcp/chrome-devtools — Flux29/fullstack0 reactions
- Nov 16, 2026Link rot report (scheduled lychee) — qte77/ai-agents-research0 reactions
- Nov 16, 2026Bump the npm-production group across 1 directory with 6 updates — Matronhq/matron-bridge0 reactions
- Nov 16, 2026Github trending [ChromeDevTools/chrome-devtools-mcp] Chrome DevTools MCP:让编码 Agent 控制真实浏览器,v1.13.0 加 logpoints 与页面级网络 mock,正并入 devtools-frontend — web1992/github-trending0 reactions
- Nov 15, 2026build(deps): bump chrome-devtools-mcp from 1.9.0 to 1.11.0 — macielhenrique/toranja-harness0 reactions · 1 comment
- Nov 15, 2026chore(deps): bump chrome-devtools-mcp from 1.9.0 to 1.11.0 — KalharPandya/Northwest-Harness0 reactions · 1 comment
- Nov 14, 2026chore(deps-dev): bump the development-dependencies group across 1 directory with 4 updates — chris-page-gov/govuk-webmcp0 reactions
- Nov 12, 2026deps(deps-dev): bump chrome-devtools-mcp from 0.12.1 to 1.12.0 — Heinvv10/apexprotocol0 reactions · 1 comment
- Nov 11, 2026chrome-devtools-mcp: 1.12.0 -> 1.13.0 — natsukium/mcp-servers-nix0 reactions
- Nov 10, 2026chore(deps): bump chrome-devtools-mcp from 1.9.0 to 1.10.1 — flowleap-ai/flowleap-harness0 reactions · 1 comment
- Nov 10, 2026build(deps): bump chrome-devtools-mcp from 1.9.0 to 1.10.1 — Imper458/dsh0 reactions · 2 comments
- Nov 6, 2026[Bug]: CdpKeyboard does not map macOS Meta editing shortcuts automatically despite KeyDownOptions.commands deprecation — puppeteer/puppeteer0 reactions · 1 comment
- Nov 3, 2026chore(deps): bump chrome-devtools-mcp from 1.9.0 to 1.10.1 — shenwei8899-ctrl/jingwork-ds0 reactions · 2 comments
- Oct 30, 2026chore(deps): bump chrome-devtools-mcp from 1.9.0 to 1.10.1 — purenia-ai/pure-harness0 reactions · 2 comments
- Oct 28, 2026chore(deps): bump chrome-devtools-mcp from 1.9.0 to 1.10.1 — AiW520/DSH-TuZi0 reactions · 1 comment
- Oct 27, 2026Bump chrome-devtools-mcp from 1.9.0 to 1.12.0 — nadirabid/rumi0 reactions · 2 comments
- Oct 27, 2026build(deps): bump chrome-devtools-mcp from 1.9.0 to 1.10.1 — NewbieKim/my-dsh-plugins0 reactions · 1 comment
- Oct 24, 2026[Stop & Learn] Chrome DevTools MCP: ¿puede un agente encontrar un memory leak en Vue? — josemasf/jmsantos0 reactions
On Bluesky · 50
- Jan 14, 2026"Chrome DevTools for coding agents" Combien de centrales nucléaires faut-il pour faire tourner ce combo ? 👉 github.com/ChromeDev... — @bearstech.com8 likes and reposts · 1 reply
- Aug 19, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 49,401 (+63) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social4 likes and reposts
- Jul 4, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 45,653 (+303) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social4 likes and reposts · 1 reply
- Jan 10, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 19,943 (+290) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social4 likes and reposts
- Sep 25, 2025Great to see devs already tinkering with the Chrome DevTools MCP server 🚀 Lots of useful feedback via issues and PRs, and we shipped… — @mhablich.bsky.social4 likes and reposts
45 more on Bluesky
- Aug 28, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 49,861 (+61) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending.bsky.social3 likes and reposts
- Jul 30, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 47,885 (+73) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending.bsky.social3 likes and reposts · 1 reply
- Jul 30, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 47,885 (+73) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social3 likes and reposts
- Jun 16, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 43,746 (+94) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social3 likes and reposts
- May 22, 2026ai ml / GitHub Trending: GitHub - ChromeDevTools/chrome-devtools-m... This bridges LLM agents with real browser DevTools capabilities,… — @foursignalsdev.bsky.social3 likes and reposts
- Apr 23, 2026Browser automation 🌐 Agent Browser (agent-browser.dev) — fast Rust CLI for browser automation built specifically for AI agents Chrome… — @lloveras.info3 likes and reposts · 1 reply
- Oct 14, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 53,518 (+83) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social2 likes and reposts
- Oct 6, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 53,023 (+45) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social2 likes and reposts
- Sep 3, 2026Your coding agent can drive a real Chrome. chrome-devtools-mcp is Google's own MCP server: record perf traces, inspect network and console,… — @maybeworthbuilding.bsky.social2 likes and reposts
- Aug 13, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 49,077 (+73) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social2 likes and reposts
- Jul 15, 2026https://github.com/ChromeDevTools/chrome-devtools-mcp — @mkante.bsky.social2 likes and reposts
- Apr 14, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 34,929 (+243) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social2 likes and reposts · 2 replies
- Feb 7, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 23,461 (+72) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social2 likes and reposts
- Jan 6, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 18,791 (+138) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social2 likes and reposts
- Dec 18, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 17,086 (+140) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social2 likes and reposts
- Dec 13, 2025📦 ChromeDevTools / chrome-devtools-mcp ⭐ 16,464 (+81) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending.bsky.social2 likes and reposts
- Dec 12, 2025📦 ChromeDevTools / chrome-devtools-mcp ⭐ 16,407 (+79) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social2 likes and reposts
- Nov 25, 2026MCP servers that are actually useful → Chrome DevTools MCP Useful for frontend debugging: your agent controls a live Chrome and reads… — @astrodevil1.bsky.social1 likes and repost · 2 replies
- Nov 15, 2026ChromeDevTools/chrome-devtools-mcp [Apache License 2.0] AIエージェントがChromeを操作し、解析します デバッグ効率が上がりそうです 言語:TypeScript, JavaScript 種類:AI/Other ⭐… — @reponews.bsky.social1 likes and repost
- Oct 28, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 54,247 (+70) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost
- Oct 1, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 52,784 (+66) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost
- Sep 26, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 52,591 (+35) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost
- Sep 19, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 52,296 (+50) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost
- Sep 13, 2026For instance, Chrome provides an MCP github.com/ChromeDevToo... and it says: > A CLI is also provided for use without MCP. — @lipsum.dev1 likes and repost · 1 reply
- Sep 2, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 50,507 (+140) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending.bsky.social1 likes and repost
- Aug 29, 2026Chrome-devtools-mcp connects AI coding assistants like Claude or Cursor to a live Chrome browser using the Model Context Protocol. It has… — @latreon.bsky.social1 likes and repost
- Aug 29, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 49,861 (+61) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost
- Jul 11, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 46,603 (+156) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost
- Jul 2, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 44,929 (+92) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending.bsky.social1 likes and repost
- Jul 2, 2026今日のGitHubトレンド ChromeDevTools/chrome-devtools-mcp AIコーディングエージェントが動作中のChromeブラウザを制御および検査するためのMCPサーバーです。 Chrome… — @dailygithubtrends.bsky.social1 likes and repost
- Jun 30, 2026📦 ChromeDevTools / chrome-devtools-mcp ⭐ 44,759 (+85) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost
- May 22, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 40,274 (+132) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost · 1 reply
- May 9, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 38,618 (+145) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending.bsky.social1 likes and repost
- May 8, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 38,496 (+141) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost
- Apr 17, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 35,599 (+277) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending.bsky.social1 likes and repost · 1 reply
- Apr 10, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 33,935 (+145) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost
- Mar 27, 2026🎉Gemini CLI Extensions: Chrome Devtools : Control and inspect your browser and empower Gemini CLI with Chrome Devtools gemini extensions… — @sri3po.bsky.social1 likes and repost
- Mar 25, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 31,422 (+232) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Mar 15, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 29,079 (+175) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost
- Mar 4, 2026no shade on anyone but damn if you are doing agentic coding for webapps and you are not using the chrome-devtools MCP... why it's such a… — @kelset.dev1 likes and repost
- Feb 15, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 25,289 (+353) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Feb 15, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 25,228 (+331) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending.bsky.social1 likes and repost · 1 reply
- Feb 11, 2026Give your AI coding assistants (Claude, Cursor, Copilot) full access to Chrome DevTools - they can debug, profile performance, and automate… — @arifsolmaz.bsky.social1 likes and repost
- Feb 11, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 23,807 (+102) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending-js.bsky.social1 likes and repost
- Feb 11, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ChromeDevTools / chrome-devtools-mcp ⭐ 23,775 (+102) 🗒 TypeScript Chrome DevTools for coding agents — @github-trending.bsky.social1 likes and repost
On Hacker News · 2
- Sep 28, 2025ChromeDevTools/Chrome-devtools-MCP: Chrome DevTools for coding agents11 points
- Sep 26, 2025Chrome DevTools for Coding Agents1 point
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- MorningStar0709/trae-agent-enhancements★ 1869% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a11y-debuggingSkill
- chrome-devtools-cliSkill
- chrome-devtoolsSkill
- cookie-debuggingSkill
- memory-leak-debuggingSkill
- troubleshootingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 5 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Every page's LCP breaks down into four sequential subparts with no gaps or overlaps.
- Distinctive: line 33
Follow these steps in order.
- Very specific: line 46
Use performance_analyze_insight to drill into LCP-specific insights.
- Very specific: line 53
Call performance_analyze_insight with pageId, the insight set ID, and the insight name from the trace results.
- Very specific: line 57
Use evaluate_script (with pageId) and the "Identify LCP Element" snippet found in references/lcp-snippets.md to reveal the LCP element's …
- Very specific: line 63
Use list_network_requests to see when the LCP resource loaded relative to other resources:
- Very specific: line 65
Call list_network_requests with pageId filtered by resourceTypes: ["Image", "Font"] (adjust based on Step 3).
- Very specific: line 75
Use evaluate_script (with pageId) and the "Audit Common Issues" snippet found in references/lcp-snippets.md to check for lazy-loaded images …
- Distinctive: line 79
After identifying the bottleneck subpart, apply these prioritized fixes.
- Very specific: line 86
Fix: Use standard <img> with src.
- Very specific: line 87
Fix: Add <link rel="preload" fetchpriority="high"> if the image isn't discoverable in HTML.
- Very specific: line 88
Fix: Add fetchpriority="high" to the LCP <img> tag.
- Distinctive: line 97
Fix: Use Server-Side Rendering (SSR) so the element exists in initial HTML.
- Very specific: line 103
Fix: Use modern formats (WebP, AVIF) and responsive images (srcset).
- Very specific: line 106
Fix: Use font-display: swap if LCP is text blocked by a web font.
- Distinctive: line 114
Fix: Ensure pages are eligible for back/forward cache (bfcache).
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
What is LCP and why it matters
Largest Contentful Paint (LCP) measures how quickly a page's main content becomes visible. It's the time from navigation start until the largest image or text block renders in the viewport.
- Good: 2.5 seconds or less
- Needs improvement: 2.5–4.0 seconds
- Poor: greater than 4.0 seconds
LCP is a Core Web Vital that directly affects user experience and search ranking. On 73% of mobile pages, the LCP element is an image.
LCP Subparts Breakdown
Every page's LCP breaks down into four sequential subparts with no gaps or overlaps. Understanding which subpart is the bottleneck is the key to effective optimization.
| Subpart | Ideal % of LCP | What it measures |
| Time to First Byte (TTFB) | ~40% | Navigation start → first byte of HTML received |
| Resource load delay | <10% | TTFB → browser starts loading the LCP resource |
| Resource load duration | ~40% | Time to download the LCP resource |
| Element render delay | <10% | LCP resource downloaded → LCP element rendered |
The "delay" subparts should be as close to zero as possible. If either delay subpart is large relative to the total LCP, that's the first place to optimize.
Common Pitfall: Optimizing one subpart (like compressing an image to reduce load duration) without checking others. If render delay is the real bottleneck, a smaller image won't help — the saved time just shifts to render delay.
Debugging Workflow
Follow these steps in order. Each step builds on the previous one.
Step 1: Record a Performance Trace
Navigate to the page, then record a trace with reload to capture the full page load including LCP:
navigate_pagewithpageIdto the target URL.performance_start_tracewithpageId,reload: trueandautoStop: true.
The trace results will include LCP timing and available insight sets. Note the insight set IDs from the output — you'll need them in the next step.
Step 2: Analyze LCP Insights
Use performance_analyze_insight to drill into LCP-specific insights. Look for these insight names in the trace results:
- LCPBreakdown — Shows the four LCP subparts with timing for each.
- DocumentLatency — Server response time issues affecting TTFB.
- RenderBlocking — Resources blocking the LCP element from rendering.
- LCPDiscovery — Whether the LCP resource was discoverable early.
Call performance_analyze_insight with pageId, the insight set ID, and the insight name from the trace results.
Step 3: Identify the LCP Element
Use evaluate_script (with pageId) and the "Identify LCP Element" snippet found in references/lcp-snippets.md to reveal the LCP element's tag, resource URL, and raw timing data.
The url field tells you what resource to look for in the network waterfall. If url is empty, the LCP element is text-based (no resource to load).
Step 4: Check the Network Waterfall
Use list_network_requests to see when the LCP resource loaded relative to other resources:
- Call
list_network_requestswithpageIdfiltered byresourceTypes: ["Image", "Font"](adjust based on Step 3). - Then use
get_network_requestwithpageIdand the LCP resource's request ID for full details.
Key Checks:
- Start Time: Compare against the HTML document and the first resource. If the LCP resource starts much later than the first resource, there's resource load delay to eliminate.
- Duration: A large resource load duration suggests the file is too big or the server is slow.
Step 5: Inspect HTML for Common Issues
Use evaluate_script (with pageId) and the "Audit Common Issues" snippet found in references/lcp-snippets.md to check for lazy-loaded images in the viewport, missing fetchpriority, and render-blocking scripts.
Optimization Strategies
After identifying the bottleneck subpart, apply these prioritized fixes.
1. Eliminate Resource Load Delay (target: <10%)
The most common bottleneck. The LCP resource should start loading immediately.
- Root Cause: LCP image loaded via JS/CSS,
data-srcusage, orloading="lazy". - Fix: Use standard
<img>withsrc. Never lazy-load the LCP image. - Fix: Add
<link rel="preload" fetchpriority="high">if the image isn't discoverable in HTML. - Fix: Add
fetchpriority="high"to the LCP<img>tag.
2. Eliminate Element Render Delay (target: <10%)
The element should render immediately after loading.
- Root Cause: Large stylesheets, synchronous scripts in
<head>, or main thread blocking. - Fix: Inline critical CSS, defer non-critical CSS/JS.
- Fix: Break up long tasks blocking the main thread.
- Fix: Use Server-Side Rendering (SSR) so the element exists in initial HTML.
3. Reduce Resource Load Duration (target: ~40%)
Make the resource smaller or faster to deliver.
- Fix: Use modern formats (WebP, AVIF) and responsive images (
srcset). - Fix: Serve from a CDN.
- Fix: Set
Cache-Controlheaders. - Fix: Use
font-display: swapif LCP is text blocked by a web font.
4. Reduce TTFB (target: ~40%)
The HTML document itself takes too long to arrive.
- Fix: Minimize redirects and optimize server response time.
- Fix: Cache HTML at the edge (CDN).
- Fix: Ensure pages are eligible for back/forward cache (bfcache).
Verifying Fixes & Emulation
- Verification: Re-run the trace (
performance_start_tracewithpageIdandreload: true) and compare the new subpart breakdown. The bottleneck should shrink. - Emulation: Lab measurements differ from real-world experience. Use
emulateto test under constraints:emulatewithpageId,networkConditions: "Fast 3G"andcpuThrottlingRate: 4.- This surfaces issues visible only on slower connections/devices.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

