Claude Templates / C-tier · Discipline

Discipline

The CWV Performance Audit Playbook

LCP, CLS, INP: measure it properly, then fix the things that actually move it.

CWV-PERFORMANCE-AUDIT-PLAYBOOK.md · 17 sections · 1,898 words · 13 KB · markdown

By Moe Ameen, founder of BILT · Published · Updated

The CWV Performance Audit Playbook runs a repeatable Core Web Vitals check with Claude Code and Chrome DevTools MCP. It targets LCP under 2.5s, CLS under 0.1 and INP under 200ms at the 75th percentile, tests five priority URLs on mobile and desktop against production, saves Lighthouse JSON, HTML and screenshots under docs/audits, and locks a performance budget into the repo's CLAUDE.md.

Key takeaways

  • Targets: LCP < 2.5s, CLS < 0.1, INP < 200ms at the 75th percentile.
  • Test production builds, never dev mode.
  • Five URLs on mobile and desktop each run.
  • Lab tools can't measure INP without scripted interactions; use field data.

A repeatable performance audit: how to measure with Lighthouse and DevTools without fooling yourself, what performance budget to hold, and the culprits that come up over and over: including the dashboard-hydration anti-pattern that turns a fast app into a five-second loading screen.

What does the CWV Performance Audit Playbook produce?

It produces a dated audit folder with a REPORT.md verdict per URL, raw Lighthouse JSON and HTML, and full-page screenshots.

It also ranks common LCP, CLS and INP culprits and covers a dashboard hydration anti-pattern.

When should you run a performance audit?

Run it before launch, then again every 60-90 days using field data.

Run it after big UI changes too, since a performance budget only works if someone checks it.

What do you need first?

You need a production URL, five priority pages (landing, a hub, a long-form page, the dashboard's first load and a free tool), Chrome DevTools MCP access and write access to the repo.

No other playbook is required.

What's inside

What does the playbook give you?

When to use it

Pre-launch, then every 60-90 days.

Build these first

Nothing. This one stands alone.

Straight from the file

What does the writing look like?

INP replaced FID in March 2024. Lab tools (Lighthouse, DevTools) cannot measure INP without scripted interactions — it surfaces only via field data (CrUX / RUM).

Table of contents

Which sections does the file cover?

  1. 0. Use this spec
  2. 1. The three metrics (Google CWV thresholds)
  3. 2. Lab vs field
  4. 3. URLs to test on each launch
  5. 4. Device profiles — mobile + desktop both
  6. 5. Running the audit — Chrome DevTools MCP
  7. 6. Performance budget (hard limits — set in CLAUDE.md, enforce in PRs)
  8. 7. Common LCP culprits + fixes
  9. 8. Common CLS culprits + fixes
  10. 9. Common INP culprits + fixes
  11. 10. Performance-impacting Next.js settings (lock in at scaffold time)
  12. 11. Audit artifact storage
  13. 12. REPORT.md structure
  14. 13. 60–90 day re-audit (field data)
  15. 14. The workspace-loading anti-pattern (BKE-specific, generalizes)
  16. 15. Common pitfalls
  17. 16. Kickoff prompt

How do you run it?

Drop CWV-PERFORMANCE-AUDIT-PLAYBOOK.md into your repo, then tell Claude Code: “Read CWV-PERFORMANCE-AUDIT-PLAYBOOK.md and implement it in this codebase.” It's written for an agent to execute end to end. Search the file for angle-bracket placeholders and swap in your own project names, domains, and keys before the first run.

↓ Download the playbook

Who is this for, and who should skip it?

Best for

  • Next.js apps before launch
  • Teams using Claude Code with Chrome DevTools MCP
  • Sites where search traffic matters

Not ideal for

  • Native mobile apps
  • Teams already running continuous performance monitoring
  • Sites with no production deploy yet
  • Builders who won't adapt paths: the file points to a reference app you won't have

What else do people ask?

Why doesn't INP show up in the CWV Performance Audit lab run?

The CWV Performance Audit Playbook says lab tools like Lighthouse and DevTools can't measure INP without scripted interactions. Real INP comes from field data (CrUX or your own RUM), and CrUX needs about 28 days of traffic, which is why the file plans a PageSpeed Insights re-audit 60-90 days after launch.

What performance budget does it set?

The CWV Performance Audit Playbook sets mobile budgets of under 150KB compressed initial JS, under 50KB initial CSS, under 500KB total page weight and zero third-party scripts at launch. A PR that breaks the budget doesn't merge until the regression is fixed or justified.

Can I skip some of the five URLs or the tablet runs?

Yes. The CWV Performance Audit Playbook says to skip any URL type your site doesn't have rather than pad the audit. Tablet runs at 768x1024 are for visual regression only, since Lighthouse doesn't score tablet separately.

Does it work without Next.js or Chrome DevTools MCP?

The CWV Performance Audit Playbook's run steps call Chrome DevTools MCP tools (new_page, emulate, lighthouse_audit, take_screenshot), and many fixes are Next.js settings like experimental.inlineCss and next/image priority. The thresholds, device profiles and REPORT.md structure don't depend on Next.js.

Which LCP fix made the biggest difference?

The CWV Performance Audit Playbook credits inlining critical CSS (experimental: { inlineCss: true } in next.config.ts) with saving 1 to 1.3 seconds of mobile LCP in the reference app. It also notes trackers like Hotjar, Mixpanel and Intercom each cost 50-300ms of LCP, so it allows first-party analytics only at launch.

How do we know this?

This page is based on the playbook file itself, CWV-PERFORMANCE-AUDIT-PLAYBOOK.md, which Moe Ameen wrote from the Kompozy codebase (called BKE in the file). We read the file on November 4, 2026; the facts here come from it, not from independent testing in other codebases.

More discipline playbooks

← All 28 Claude templates