Pagespeed-optimizer fixes site code until Lighthouse scores reach 90

For local sites, the agent builds the production version, maps failing audits to files, and re-runs project tests and lint.

· Source: github.com

Pagespeed-optimizer targets and setup
Target score
At least 90 in Performance, Accessibility, Best Practices, and SEO
Runtime requirement
Node.js 18 or higher
Local mode browser
Google Chrome
Public URL API key
Optional PSI_API_KEY to avoid HTTP 429 quota errors
Score variance
About 5 points between runs
github.com

The pagespeed-optimizer skill measures a URL with PageSpeed Insights or Lighthouse and fixes code until Performance, Accessibility, Best Practices, and SEO all score at least 90.

For local sites, the agent builds the production version, maps failing audits to files, fixes Total Blocking Time and Largest Contentful Paint first, and re-runs project tests and lint.

The README says the agent will not remove features like analytics or chat without asking, and will not serve Lighthouse a different page to game the score.

Score variance and setup

The README notes that scores vary by about 5 points between runs and that local runs differ from real PageSpeed Insights results.

This matters to web builders using SKILL.md coding agents like Claude Code, Cursor, or Codex who want to automate Lighthouse fixes.

Add .pagespeed/ to your .gitignore and export a PSI_API_KEY before starting your agent if you plan to test public URLs.