senternet-site-lighthouse

Optimizes marketing sites to hit Lighthouse performance, accessibility, and SEO score targets.

Updated May 8, 2026
One-click install
npx skills add https://github.com/MattSenter/senternet-site-skills --skill senternet-site-lighthouse-mattsenter
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: senternet-site-lighthouse
Source: https://github.com/MattSenter/senternet-site-skills/tree/main/.claude/skills/senternet-site-lighthouse
Command: npx skills add https://github.com/MattSenter/senternet-site-skills --skill senternet-site-lighthouse-mattsenter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Marketing sites often fail Lighthouse audits due to slow LCP, render-blocking scripts, layout shifts, and missing SEO metadata. This Skill provides a measurement workflow and a decision checklist to reach Performance ≥94, Accessibility ≥98, Best Practices ≥96, and SEO 100 on mobile. ## Core Features & Use Cases - PageSpeed Insights measurement: Creates a restricted PSI API key via gcloud and runs mobile audits against the live site with a curl-based scoring script. - Optimization checklists: Covers LCP, FCP, CLS, TBT, Speed Index, accessibility, best practices, and SEO with concrete fixes like hero image preloading, hydrateRoot, manualChunks, and deferred GA loading. - Framework-specific guidance: Separate tracks for Vite/React and Next.js, including client boundary sizing, next/image priority, and cold-start handling. - Use Case: After deploying a new marketing site to Firebase, run the PSI audit, find LCP at 3.5s, then apply the checklist — preload the hero WebP image, switch to hydrateRoot, and lazy-load GA — to bring the score above 94. ## Quick Start Run a PageSpeed Insights audit on my deployed site and apply the Lighthouse optimization checklist to fix the lowest scores.

Frequently Asked Questions about senternet-site-lighthouse

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I improve my Lighthouse performance score on a marketing site?▼

Measure with the PageSpeed Insights API on mobile, then work through the LCP, FCP, CLS, and TBT checklists. Key fixes include preloading the hero image, using hydrateRoot instead of createRoot, deferring third-party scripts until after window.load, and splitting vendor code with Rollup manualChunks.

How to run a PageSpeed Insights audit from the command line?▼

Create an API key restricted to the PageSpeed Insights API using gcloud alpha services api-keys create, then call the runPagespeed endpoint with curl passing your URL, mobile strategy, and key. Parse the JSON response with python3 to print category scores and core metrics.

Why is my PageSpeed Insights score lower than local Lighthouse?▼

PSI differs from local runs due to CDN cold cache after deploys, geographic variance across CDN points of presence, and lazy-loaded third-party scripts that never fire in audits. Wait 10-15 minutes after deployment and re-run before treating the gap as a real regression.

Does this Lighthouse workflow work with Next.js sites?▼

Yes, a dedicated Next.js track covers shrinking the client boundary, using next/image priority only on the LCP image, next/font for self-hosted fonts, and lazyOnload for third-party scripts. Test against npm run build && npm start rather than a served static directory.

What causes high Largest Contentful Paint on React sites?▼

Common causes include using createRoot instead of hydrateRoot on prerendered DOM, missing preload hints for the hero image, hashed asset filenames that break preload matching, and render-blocking scripts like GA loaded in the head. Each has a specific fix in the LCP checklist.