What you get
A repo-ready brief that turns abstract Lighthouse output into work Claude Code can act on.
Real fix suggestions
Each failing audit comes with a concrete, prescriptive action across Performance, Accessibility, Best Practices and SEO.
Top offenders, ranked
The exact URLs, selectors, and HTML snippets responsible, with potential savings in ms or KB.
One-click handoff
Open Claude Code with the full plan pre-loaded, or copy / download the CLAUDE.md.
How it works
From URL to merged PR in four steps.
- Paste a URL. Pick mobile or desktop strategy.
- We call PageSpeed Insights v5. Lighthouse runs in the cloud, takes 10–30 seconds.
- Review failing audits. Every audit below 0.9 gets a fix suggestion and offender list.
- Hand off to Claude Code. Open it with the prompt loaded, or drop CLAUDE.md into your repo.
Common Lighthouse audits, explained
Plain-English deep-dives on the audits we see most often. Browse the full reference library →
Largest Contentful Paint (LCP)
How quickly the biggest visible element renders. Good: under 2.5 s. Preload, drop lazy-loading, fix render-blocking.
Total Blocking Time (TBT)
Main-thread blocking by long JS tasks. Good: under 200 ms. Code-split, defer third-parties, Web Workers.
Cumulative Layout Shift (CLS)
Unexpected layout movement. Good: under 0.1. Set image dimensions, reserve ad space, stabilize fonts.
Reduce unused JavaScript
Bytes shipped but never executed. Code-split per route, tree-shake imports, audit third-party scripts.
Render-blocking resources
CSS and synchronous JS that delays first paint. Inline critical CSS, defer the rest.
Document does not have a main landmark
Screen reader users can't jump to primary content. Fix: wrap content in <main>.
Color contrast
Text fails WCAG AA contrast. Aim for 4.5:1 for body, 3:1 for large text and UI.
Heading order
Skipped heading levels (h1 → h3) break the semantic outline. Use CSS for sizing, not tag choice.
Image alt attributes
Missing alt breaks accessibility and image SEO. Empty alt is OK for decorative images.
Meta description
Missing description hurts SERP click-through. Add 140–160 chars summarizing the page.
FAQ
Common questions about CLAUDE.md, Lighthouse, and Core Web Vitals.
What is CLAUDE.md?
CLAUDE.md is a plain markdown file Claude Code reads at the root of your repository to understand the project context. This tool generates one scoped to your failing Lighthouse audits — including the throttling profile used, third-party impact, main-thread breakdown, and the list of currently passing audits so the agent doesn't regress them.
How does the “Ask Claude” button work?
It opens Claude Code via the claude://code/new deep link with the generated fix plan pre-filled as the initial prompt. You need the Claude Code desktop app installed for the deep link to resolve.
Which audits does this cover?
All four Lighthouse categories: Performance, Accessibility, Best Practices, and SEO. Any audit scoring below 0.9 is included with an actionable fix suggestion and a ranked offender list.
How do I fix Lighthouse performance issues?
Start with the worst-scoring audits. Common wins: defer non-critical JavaScript, preload the LCP image, set explicit width and height on images to prevent layout shift, enable text compression at the server or CDN, eliminate render-blocking CSS, and remove unused third-party scripts. This tool ranks offenders by potential savings (in ms or KB) so you fix the highest-impact issues first.
What are Core Web Vitals?
Core Web Vitals are three user-experience metrics Google uses as ranking signals: Largest Contentful Paint (LCP) under 2.5 s, Interaction to Next Paint (INP) under 200 ms, and Cumulative Layout Shift (CLS) under 0.1. Lighthouse and PageSpeed Insights report these alongside the audits that affect them.
Is there a Chrome Extension?
Yes. Install PageSpeed → CLAUDE.md from the Chrome Web Store. It analyzes the active tab with one click — no URL copy-pasting, and it works on private staging URLs you're already authenticated to.
Can Claude Code actually fix Lighthouse audits?
Yes, given proper context. The CLAUDE.md this tool generates is designed specifically as agent context — it includes the throttling profile, prescriptive fix per audit, ranked offenders, and a "do not regress" list of currently passing audits. Most audits in Performance, Accessibility, Best Practices, and SEO can be resolved by Claude Code with this brief as input.
What is a good Lighthouse score?
Lighthouse uses three thresholds per category: 90–100 Good (green), 50–89 Needs Improvement (orange), 0–49 Poor (red). For SEO ranking and Core Web Vitals, aim for 90+ on Performance with all three Core Web Vitals in the Good range.
What is Largest Contentful Paint (LCP)?
LCP measures how quickly the largest visible element (usually the hero image or main heading) renders. Aim for under 2.5 seconds. Common fixes: preload the LCP image, avoid lazy-loading it, reduce server response time, eliminate render-blocking CSS.
What is Total Blocking Time (TBT)?
TBT measures how long the main thread is blocked by long JavaScript tasks during page load. Aim for under 200 ms. Fixes: code-split heavy bundles, defer non-critical scripts, replace synchronous third-party scripts, move heavy work to Web Workers.
What is Cumulative Layout Shift (CLS)?
CLS measures unexpected layout movement during page load. Aim for under 0.1. Fixes: set explicit width and height on images and embeds, reserve space for dynamically inserted content like ads, avoid inserting content above existing content unless triggered by user action.
Does this work on staging or localhost?
The web app requires the URL to be reachable by Google's PageSpeed Insights API, which means publicly accessible HTTPS. For localhost or private staging, install the Chrome Extension and use it on a deployed staging URL. Future versions of the extension may run Lighthouse locally to support localhost.
How long does an analysis take?
Typically 10–30 seconds, depending on the page complexity and Google's queue. The audit runs in Google's cloud, not in your browser, so it doesn't consume your bandwidth or CPU.
Is the data I submit private?
The URL you submit is sent to Google PageSpeed Insights to run the audit. It is not stored on our servers. See the privacy policy for full details. No account is required and we do not collect personal data.
How accurate are the “Top offenders” lists?
They come straight from Lighthouse's own audit results. We surface the first few items per audit so the brief stays actionable rather than exhaustive — Claude Code can use the patterns to find similar issues across the codebase.