Community影像github.com

chromedevtools/debug-optimize-lcp

使用 Chrome DevTools MCP 工具引導除錯和優化最大內容繪製 (LCP)。

debug-optimize-lcp 是什麼?

此技能旨在協助開發者使用 Chrome DevTools MCP 工具來除錯和優化 Largest Contentful Paint (LCP),這是 Core Web Vitals 的關鍵指標。它能引導用戶分析 LCP 性能問題,例如頁面加載緩慢或主要內容(如英雄圖片)延遲出現。技能支援基於 Chrome DevTools 平台的性能分析,透過偵測 LCP 元素、加載時間和網路活動,提供具體的優化建議。使用者可根據 LCP 分數、元素類型及加載順序,識別瓶頸並應用最佳實踐,從而改善頁面渲染速度與用戶體驗。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/chromedevtools/chrome-devtools-mcp/tree/main/skills/debug-optimize-lcp

Installed? Explore more 影像 skills: steipete/songsee, affaan-m/frontend-design, mattpocock/improve-codebase-architecture · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

debug-optimize-lcp 是做什麼的?

引導使用 Chrome DevTools MCP 工具來除錯和優化 Largest Contentful Paint (LCP)。每當使用者詢問關於 LCP 性能、頁面加載緩慢、Core Web Vitals 優化,或想了解為何頁面主要內容出現過慢時,請使用此技能。也請在使用者提及「最大內容繪製」、「頁面載入速度」、「CWV」,或希望改善英雄圖片或主要內容渲染速度時使用。

Individual skills in this repo

This repo contains 6 individual skills — each has its own dedicated page.

chromedevtools/a11y-debugging

Uses Chrome DevTools MCP for accessibility (a11y) debugging and auditing based on web.dev guidelines. Use when testing semantic HTML, ARIA labels, focus states, keyboard navigation, tap targets, and color contrast.

chromedevtools/chrome-devtools

Uses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests. This skill does not apply to `--slim` mode (MCP configuration).

chromedevtools/chrome-devtools-cli

Use this skill to write shell scripts or run shell commands to automate tasks in the browser or otherwise use Chrome DevTools via CLI.

chromedevtools/cookie-debugging

Uses Chrome DevTools MCP for inspecting, debugging, and testing cookies, session state, authentication issues, and cookie consent compliance. Use when diagnosing 401/403 errors, authentication redirects, session expiration, Cookie/Set-Cookie header issues, cookie banner consent conformance, or third-party cookie/SameSite/Partitioned cookie warnings.

chromedevtools/memory-leak-debugging

Diagnoses and resolves memory leaks in JavaScript/Node.js applications. Use when a user reports high memory usage, OOM errors, or wants to capture, compare, or inspect heap snapshots with Chrome DevTools MCP memory tools.

chromedevtools/troubleshooting

Uses Chrome DevTools MCP and documentation to troubleshoot connection and target issues. Trigger this skill when list_pages, new_page, or navigate_page fail, or when the server initialization fails.

相關技能