corewebvitals

A skill focused on Core Web Vitals, intended to help AI agents efficiently perform tasks related to Core Web Vitals.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "corewebvitals" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-014cd76f5234ef34bc0b48fd4ad61f7b25b4f5b4d34161301154b28e9f77cf57. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/core-web-vitals-yolo before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A skill focused on Core Web Vitals, intended to help AI agents efficiently perform tasks related to Core Web Vitals.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Audit HTML for patterns that negatively impact Core Web Vitals — the performance metrics Google uses as a ranking signal.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: CoreWebVitals
slug: core-web-vitals
version: 1.0.0
displayName: CoreWebVitals
description: >
  CoreWebVitals专用技能,帮助AI Agent高效完成相关任务。
summary: "CoreWebVitals专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 开发者工具
framework:
  - Claude Code
  - Codex
  - Hermes Agent
  - OpenClaw
  - QClaw
  - WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"

Core Web Vitals

Audit HTML for patterns that negatively impact Core Web Vitals — the performance metrics Google uses as a ranking signal.

Overview

Metric Full name Good threshold What it measures
LCP Largest Contentful Paint ≤ 2.5s Loading — time until the largest visible element renders
CLS Cumulative Layout Shift ≤ 0.1 Visual stability — unexpected layout movement
INP Interaction to Next Paint ≤ 200ms Responsiveness — delay between user input and visual update

1. LCP (Largest Contentful Paint) checks

Identify the likely LCP element and check for blockers:

Identify LCP candidate

The LCP element is typically the largest visible element above the fold:

  • Hero image (<img> near top of <body>)
  • Hero background image (CSS background-image)
  • Large heading (<h1>) with significant text
  • Video poster image

LCP blockers to flag

Check Status
Hero/banner <img> missing fetchpriority="high" ⚠️ WARN "Add fetchpriority=high to LCP image"
Hero image uses loading="lazy" ❌ FAIL "Never lazy-load the LCP element"
LCP image not preloaded (<link rel="preload" as="image">) ⚠️ WARN "Preload LCP image for faster rendering"
Render-blocking CSS in <head> (stylesheets without media attribute) ⚠️ WARN
Render-blocking JS in <head> (scripts without async/defer) ⚠️ WARN
LCP image served in legacy format (JPG/PNG instead of WebP/AVIF) ⚠️ WARN
No render-blocking resources ✅ PASS

Font loading

Check Status
Custom fonts without <link rel="preload" as="font"> ⚠️ WARN "Preload critical fonts"
No font-display: swap or font-display: optional in @font-face ⚠️ WARN "Add font-display to prevent invisible text"
Fonts preloaded properly ✅ PASS

2. CLS (Cumulative Layout Shift) checks

Identify HTML patterns that cause layout shift:

Check Status
<img> without width and height attributes ❌ FAIL "Missing dimensions cause layout shift"
<video> or <iframe> without width/height ⚠️ WARN
Ads/embeds without reserved space (no explicit dimensions) ⚠️ WARN "Reserve space for dynamic content"
Web fonts causing FOIT (Flash of Invisible Text) — no font-display ⚠️ WARN
Content injected above existing content (banners, cookie notices without reserved space) ⚠️ WARN
All images have dimensions ✅ PASS "No layout shift from images"

CSS animation checks

Check Status
Animations using top, left, width, height (trigger layout) ⚠️ WARN "Use transform instead for animations"
Animations using transform and opacity only ✅ PASS "GPU-accelerated, no layout shift"

3. INP (Interaction to Next Paint) checks

Identify patterns that block the main thread:

Check Status
<script> tags without async or defer ⚠️ WARN "Blocks main thread during parsing"
Inline <script> with heavy computation (> 50 lines) ⚠️ WARN "Move heavy JS to async external file"
Event handlers in HTML attributes (onclick, onchange, etc.) ⚠️ WARN "Use addEventListener instead for better performance"
Third-party scripts loaded synchronously ⚠️ WARN "Load third-party scripts with async"
All scripts properly deferred/async ✅ PASS

Third-party impact

Count third-party scripts (different domain):

  • 0–3 → ✅ PASS
  • 4–8 → ⚠️ WARN "Consider reducing third-party scripts"
  • 9+ → ❌ FAIL "Excessive third-party scripts severely impact INP"

4. General performance patterns

Check Status
<link rel="preconnect"> for third-party origins ✅ PASS if present, ⚠️ WARN if missing with 3rd-party resources
<link rel="dns-prefetch"> for third-party origins ✅ PASS if present
<link rel="preload"> for critical resources ✅ PASS if present
Excessive DOM size (> 1500 elements) ⚠️ WARN "Large DOM slows rendering"
<meta name="viewport"> with width=device-width Required for mobile CWV (see mobile-optimization for full viewport checks)

Reporting format

Core Web Vitals Audit
─────────────────────
LCP Risk Factors:  X issues found
CLS Risk Factors:  Y issues found
INP Risk Factors:  Z issues found

Overall CWV Risk:  LOW / MEDIUM / HIGH
  • 0 issues → LOW risk
  • 1–3 issues → MEDIUM risk
  • 4+ issues → HIGH risk

Edge cases

  • This skill audits HTML patterns that correlate with CWV issues — actual CWV scores require real-browser measurement (Lighthouse, CrUX data)
  • Next.js automatically handles image optimization, code splitting, and font loading — check for Next.js-specific patterns before flagging generic issues
  • Inline <style> for critical CSS is intentional and should NOT be flagged as a CLS risk — distinguish from injected layout-shifting styles
  • <script type="module"> is inherently deferred — do not flag as render-blocking
  • Third-party scripts loaded inside <iframe> do not block the main thread — exclude from INP third-party count
  • AMP pages have their own performance model — flag CWV patterns but note that AMP runtime handles many optimizations automatically

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供具体检查项和修复建议
  • 覆盖三大核心指标 LCP/CLS/INP
Trigger Precision88/100

Highlights

  • 触发描述清晰明确
  • 边界定义合理
Structure and Standards92/100

Highlights

  • 结构清晰分模块
  • frontmatter 完整
Execution Reliability87/100

Areas to improve

  • 第三方脚本计数逻辑 Reported severity: Minor

    未明确如何识别第三方脚本(域名比对逻辑)

    Recommendation: 补充第三方脚本识别的具体规则

Highlights

  • 基于官方标准
  • Edge cases 处理完善
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.