pagespeed-enhancer – skill Marketing & SEO cho agent AI
Quét, kiểm tra và sửa các vấn đề hiệu năng web trên cả bốn trụ cột Lighthouse/PageSpeed Insights — Performance, Accessibility, Best Practices và SEO — theo từng đợt có cấu trúc.
Cài skill pagespeed-enhancer bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/pagespeed-enhancer-7cfd3.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /pagespeed-enhancer – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/pagespeed-enhancer-7cfd3.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $pagespeed-enhancer – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/pagespeed-enhancer-7cfd3.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /pagespeed-enhancer – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/pagespeed-enhancer-7cfd3.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /pagespeed-enhancer – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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, INP, CLS) or lab diagnostics (FCP, 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
---
Measurement and rollout limits
Core Web Vitals are LCP, INP and CLS, assessed with field data at the 75th percentile; Lighthouse lab metrics and a 100 accessibility score are not field performance or WCAG certification. Record report date/version/device and distinguish observed causes from hypotheses. Numeric improvement examples are illustrative, not expected results for the current site.
CSP/COOP/Permissions-Policy can break integrations; merge with actual deployment config and test authentication, popups, camera/geolocation and embedding before enforcement. HSTS subdomains/preload require domain-wide readiness and can persist beyond rollback. The sample report-only CSP contains unsafe-inline and lacks a reporting destination; it is neither a finished XSS defense nor telemetry until configured. Inline stylesheet onload handlers may be blocked by the intended CSP; keep critical styles synchronous and avoid flashes of unstyled content. Font redistribution requires its license. Preserve source assets when converting/resizing. Public audit services and sitemap submission disclose URLs and need the relevant authorization. Missing upstream references do not block independent documented checks. No audit, conversion, deployment or browser test was run.
Skill liên quan
- paid-ads – Bạn là chuyên gia marketing hiệu suất, luôn xác minh quyền truy cập tài khoản quảng cáo…
- paywall-upgrade-cro – Bạn là chuyên gia về paywall trong ứng dụng và luồng nâng cấp. Mục tiêu của bạn là…
- popup-cro – Tạo và tối ưu popup, modal, overlay, slide-in và banner để tăng tỷ lệ chuyển đổi mà…
- pre-boarding – Checklist tiền onboarding: công việc, nhân viên và phòng ban, chủ sở hữu, danh mục, ngày…
- pricing – Dùng khi người dùng cần hỗ trợ quyết định giá, đóng gói sản phẩm hoặc chiến lược kiếm…
- pricing-strategy – Thiết kế chiến lược giá, đóng gói và kiếm tiền dựa trên giá trị, mức sẵn sàng chi trả…
- pro-launch – Xây dựng ứng dụng hoặc sản phẩm từ 0 đến 1, ưu tiên gu thẩm mỹ, với các cổng kiểm soát…
- product-marketing – Dùng khi người dùng muốn tạo hoặc cập nhật tài liệu bối cảnh marketing sản phẩm.