Blenra LogoBlenra
Optimized for: Gemini / ChatGPT / Claude
#Agents

Advanced AI Prompt for Automated Core Web Vitals Remediation Scripting

Customize the variables below to instantly engineer your prompt.

Required Variables

advanced-ai-prompt-core-web-vitals-remediation.txt
Act as an Elite Web Performance Engineer. Ingest the raw Google PageSpeed Insights (PSI) JSON dump provided in [PSI_DATA] and script a localized automation agent specifically tuned for the [PLATFORM_STACK] (e.g., Next.js, Shopify). The agent must: 1) Surgically identify the exact DOM element triggering the Largest Contentful Paint (LCP) and generate specific HTML/Next.js code optimizing it (e.g., injecting `fetchpriority='high'`, stripping lazy loading). 2) Detect elements causing Cumulative Layout Shift (CLS) and output exact CSS snippets enforcing rigid aspect-ratio bounding boxes. 3) Audit current [RESOURCE_HINTS] and propose a mathematically prioritized `preload`, `preconnect`, and `dns-prefetch` injection strategy. 4) Output a Git-ready markdown task list for a frontend developer, translating vague PSI metrics into exact, actionable code changes designed to violently minimize Total Blocking Time (TBT) via specific script deferral patterns.

Example Text Output

"The agent outputs a CSS and HTML patch that fixes layout shifts in the hero section and suggests a specific preloading script for the LCP image."

More AI Portraits Prompts

View all →

Frequently Asked Questions

What is the "Advanced AI Prompt for Automated Core Web Vitals Remediation Scripting" prompt used for?

The agent outputs a CSS and HTML patch that fixes layout shifts in the hero section and suggests a specific preloading script for the LCP image.

Which AI tools work with this prompt?

This prompt is optimized for Gemini / ChatGPT / Claude, but works great with ChatGPT, Claude, Gemini, and other large language models. Simply copy it and paste it into your preferred AI tool.

How do I customize this prompt?

Use the variable fields above to fill in your specific details. The prompt will auto-update as you type, ready to copy instantly.

Is this prompt free?

Yes! All prompts on Blenra are free to copy and use immediately. No account required.