Community图像github.com

chromedevtools/debug-optimize-lcp

指导如何使用 Chrome DevTools MCP 工具调试和优化最大内容绘制 (LCP)。

debug-optimize-lcp 是什么?

此技能专注于使用 Chrome DevTools 的 MCP 工具来调试和优化最大内容绘制(LCP)。LCP 是衡量页面主要内容加载速度的关键 Core Web Vitals 指标。当用户询问 LCP 性能、页面加载缓慢、Core Web Vitals 优化,或想了解主内容为何延迟显示时,应使用此技能。该技能支持 Chrome DevTools 平台,通过逐步引导用户分析 LCP 元素、排查资源加载问题、优化图片和文本渲染,从而提升页面加载速度。它涵盖从识别 LCP 候选元素到应用最佳实践(如预加载、压缩和 CDN 加速)的完整流程。

兼容平台~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 工具调试和优化最大内容绘制 (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.

相关技能