pagespeed-enhancer
它能做什么
这个工具可以帮你找出并修复让网站变慢或难以使用的问题。它会分析你网站的性能、无障碍访问、最佳实践以及 SEO。
适用场景
- ✓当你粘贴一份 PageSpeed Insights 报告时。
- ✓当你想改善 Core Web Vitals 指标(比如 LCP、CLS)时。
- ✓当你想优化图片、修复阻塞渲染的 CSS,或提升 SEO 时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/pagespeed-enhancer/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“分析这份 PageSpeed Insights 报告,告诉我该如何改进我的网站。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会先根据你提供的报告分析网站,然后找出问题,并按步骤有条理地给出修复建议,不会遗漏重要环节。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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 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:
- Parses the score summary table — identifies LCP as critical bottleneck
- Runs Batch A scan — finds lazy-loaded hero image and render-blocking CSS
- Outputs risk report: F1.1 (CSS @import → link) ranked P1, F1.5 (LCP image eager) ranked P1
- Applies Fix Batch 1, verifies with re-test
Example 2: User asks about slow LCP
User: "Why is my LCP slow?"
Agent:
- Asks for a PageSpeed report URL or pasted results
- Runs LCP-specific audit from Batch A — checks TTFB, element render delay, lazy loading
- Identifies the LCP element, its current loading strategy, and the critical path chain
- 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
常见问题
这个工具会自己运行 PageSpeed 测试吗?
不会,你需要提供 PageSpeed Insights 报告或报告链接,工具本身不会直接运行测试。
它能修复哪些类型的问题?
它可以处理性能问题(网站速度慢)、无障碍访问(所有人都能顺畅使用)、最佳实践(安全性等方面),以及 SEO(在搜索引擎中获得更好的排名)。
它会优化我网站的服务器吗?
不会,这个工具专注于你可以在网站代码或设置中做出的优化。CDN 配置等服务器层面的优化不在其覆盖范围内。
详情
作者的原始描述
Scan, audit, and fix web performance issues across all four Lighthouse/PageSpeed Insights pillars — Performance, Accessibility, Best Practices, and SEO — in structured batches.
热度
- GitHub 星标
- 48k
- 排名
- #5402
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。