360 Secure SkillHub
360 安全技能中心

Webperf

该 Skill 提供 47 个浏览器控制台 JavaScript 片段,按 Core Web Vitals、加载、交互、媒体和网络质量分类,借助 Chrome DevTools MCP 导航页面、执行脚本并读取控制台结果,用于定位 TTFB、LCP、CLS、INP、资源加载、图片/视频优化等问题并给出改进建议。当前材料只包含总览,未包含具体片段文件和阈值细节。

nucliweb
nucliweb
热度 52.73
最近更新 2026-05-11 17:30:28
分类:开发依赖:联网浏览搜索 / MCP 服务 / 代码执行应用场景:调试排错 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add webperf
Metadata
name
webperf
description
Web performance measurement and debugging toolkit. Use when the user asks about web performance, wants to audit a page, or says "analyze performance", "debug lcp", "check ttfb", "measure core web vitals", "audit images", or similar.
license
MIT
metadata
{"author":"Joan Leon | @nucliweb","version":"1.0.0","mcp-server":"chrome-devtools","category":"web-performance","repository":"https://github.com/nucliweb/webperf-snippets"}

WebPerf Snippets Toolkit

A collection of 47 JavaScript snippets for measuring and debugging web performance in Chrome DevTools. Each snippet runs in the browser console and outputs structured, color-coded results.

Skills by Category

Skill Snippets Use when
webperf-core-web-vitals 7 Intelligent Core Web Vitals analysis with automated workflows and decision trees
webperf-loading 28 Intelligent loading performance analysis with automated workflows for TTFB investigation (DNS/connection/server breakdown), render-blocking detection, script performance deep dive (first vs third-party attribution), font optimization, and resource hints validation
webperf-interaction 8 Intelligent interaction performance analysis with automated workflows for INP debugging, scroll jank investigation, and main thread blocking
webperf-media 3 Intelligent media optimization with automated workflows for images, videos, and SVGs
webperf-resources 1 Intelligent network quality analysis with adaptive loading strategies

Quick Reference

User says Skill to use
"debug LCP", "slow LCP", "largest contentful paint" webperf-core-web-vitals
"check CLS", "layout shifts", "visual stability" webperf-core-web-vitals
"INP", "interaction latency", "responsiveness" webperf-core-web-vitals
"TTFB", "slow server", "time to first byte" webperf-loading
"FCP", "first contentful paint", "render blocking" webperf-loading
"font loading", "script loading", "resource hints", "service worker" webperf-loading
"jank", "scroll performance", "long tasks", "animation frames", "INP debug" webperf-interaction
"image audit", "lazy loading", "image optimization", "video audit" webperf-media
"network quality", "bandwidth", "connection type", "save-data" webperf-resources

Workflow

  1. Identify the relevant skill based on the user's question (use Quick Reference above)
  2. Load the skill's skill.md to see available snippets and thresholds
  3. Execute with Chrome DevTools MCP:
    • mcp__chrome-devtools__navigate_page → navigate to target URL
    • mcp__chrome-devtools__evaluate_script → run the snippet
    • mcp__chrome-devtools__get_console_message → read results
  4. Interpret results using the thresholds defined in the skill
  5. Provide actionable recommendations based on findings