跳到主要内容
知仓学习社ZHICANG

pagespeed-enhancer

Scan, audit, and fix web performance issues across all four Lighthouse/PageSpeed Insights pillars — Performance, Accessibility, Best Practices, and …

不碰外部(只输出文字)无严重或高危命中sickn33/agentic-awesome-skills

它会碰到什么

扫了多少2 个文本文件,23 KB
它会碰到什么不碰外部(只输出文字)
命中总数1 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

PageSpeed Enhancer Skill

A structured, batch-wise audit-and-fix workflow for all four Lighthouse pillars. Always follow the batch flow in order. Never jump straight to fixes without completing the scan and risk assessment phases.


Detailed Guide

Read [the detailed guide](references/detailed-guide.md) before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.

When to Use This Skill

  • User pastes a PageSpeed Insights report or mentions Lighthouse scores
  • User asks to improve Core Web Vitals (LCP, FCP, CLS, TBT, SI)
  • User needs help with render-blocking resources, unused JavaScript, image optimisation, security headers, ARIA compliance, or SEO meta-tag fixes
  • User asks "why is my LCP slow", "fix accessibility issues", "improve my SEO score", or "my site scores 80 on performance"
  • Any mention of PageSpeed, Lighthouse, Web Vitals, or site speed

Examples

Example 1: User pastes a PageSpeed report

User: "My site scores 65 on Performance. LCP is 4.2s."

Agent:

  1. Parses the score summary table — identifies LCP as critical bottleneck
  2. Runs Batch A scan — finds lazy-loaded hero image and render-blocking CSS
  3. Outputs risk report: F1.1 (CSS @import → link) ranked P1, F1.5 (LCP image eager) ranked P1
  4. Applies Fix Batch 1, verifies with re-test

Example 2: User asks about slow LCP

User: "Why is my LCP slow?"

Agent:

  1. Asks for a PageSpeed report URL or pasted results
  2. Runs LCP-specific audit from Batch A — checks TTFB, element render delay, lazy loading
  3. Identifies the LCP element, its current loading strategy, and the critical path chain
  4. Recommends targeted fix (preload, eager loading, or server response time improvement)

Limitations

  • Does not run actual Lighthouse or PageSpeed tests — the user must provide the report or URL
  • Security header recommendations assume the user controls the deployment platform (Netlify, Vercel, etc.)
  • Fixes are general patterns; exact file paths and config syntax may vary by project setup
  • Does not cover server-level optimisations (CDN config, PHP opcode caching, database queries, etc.)
  • Image conversion commands assume the user has the required tools installed (cwebp, sharp, Pillow)
  • CSP guidance uses a report-only iterative approach — the final policy must be tuned to each project's actual resource origins

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

同名技能的其他版本

有 3 个不同仓库或目录里都有叫 pagespeed-enhancer 的技能。它们内容并不相同,别混用: