What the agent does
Core Web Vitals measure how fast the production site shows its main content (LCP, good under 2.5 seconds), how quickly it responds to clicks and typing (INP, good under 200 milliseconds) and how stable it is while loading (CLS, good under 0.1). They affect search ranking and every launch visitor's first impression. Find the causes on the main pages and fix them in the code.
1. Measure first
For the homepage, pricing and one main product page, work out the LCP element, what blocks it, the heaviest scripts, and what shifts during load, from the code and a local production build (the framework's build output, Lighthouse if available). Ask me for field data from Search Console or analytics if I have it.
2. LCP
Make the LCP element load first: server-render it, preload its image or font, give the image
fetchpriority="high"and the right size, cut render-blocking CSS and scripts in the head, and reduce server response time with caching.3. INP
Find long tasks on interaction: heavy event handlers, large client bundles hydrating at once, third-party scripts. Split code, defer non-critical scripts, move heavy work off the main thread or to the server, and give instant visual feedback on clicks.
4. CLS
Reserve space for images, videos, embeds, ads and banners (width and height or aspect-ratio), load web fonts with
font-display: swapand size-matched fallbacks, and never insert content above what the user is reading.
Done means
- The LCP element, slow scripts and layout shifts of the main pages are identified.
- The LCP element is server-rendered, prioritised and sized.
- Long interaction tasks are split or deferred, and third-party scripts do not block.
- Images, embeds and fonts no longer shift the layout.
Questions
Do Core Web Vitals affect rankings?
They are part of Google's page experience signals. They rarely beat relevance, but between similar pages they help, and they always affect whether visitors stay.
Why is my lab score different from real users?
Lab tests use one device and network. Field data from real visitors (Search Console, the Chrome UX Report) is what Google uses. Fix the causes and both improve.
What replaced First Input Delay?
Interaction to Next Paint (INP) replaced FID in March 2024. It measures every interaction, not only the first.
Does this prompt add links to Aback Launch to my site?
No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.
Which coding agents does it work with?
Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.
Is it safe to run on my real codebase?
The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.
Changelog
- v1.0First version.