Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Web Vitals Performance Optimizer

    1

    Diagnose and fix LCP, CLS, and INP issues with automated frontend code refactoring and performance auditing.

    $15

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Web Vitals Performance Optimizer

    Web Vitals Performance Optimizer

    Example session with this skill installed

    My Next.js landing page has a poor LCP and the hero image is shifting the layout. Optimize it for Core Web Vitals.

    • Read your context and instructions
    • Compiled the web vitals performance
    • Generated the image

    I have audited the landing page components and identified three critical issues affecting LCP and CLS. I have implemented high-priority fetching for the hero asset and enforced explicit aspect-ratio containers to stabilize the layout.

    Core Web Vitals Optimization Audit

    MetricIssue IdentifiedResolution Applied
    LCPHero image banner.webp discovered without priority hints.Added fetchpriority="high" and loading="eager".
    CLSAd slot and Hero container lack explicit height/width.Wrapped in CSS Aspect Ratio containers with fixed dimensions.
    INPSynchronous heavy JS block in Navbar.tsx blocking input.Refactored using scheduler.yield() to break long tasks.

    Code Refactoring: HeroComponent.tsx

    // Optimized for LCP and CLS
    export const Hero = () => {
      return (
        <section className="hero-container" style={{ minHeight: '600px', aspectAppearance: 'auto' }}>
          <img 
            src="/assets/banner.webp"
            alt="Product Banner"
            width={1200}
            height={600}
            fetchpriority="high"
            style={{ objectFit: 'cover', width: '100%', height: 'auto' }}
          />
          <div className="content-overlay">
            <h1>Building the future of web apps</h1>
          </div>
        </section>
      );
    };
    

    Next steps

    1. Verify the LCP improvement using Chrome DevTools Performance tab with 4G throttling.
    2. Ensure the new aspect-ratio containers do not conflict with global responsive CSS rules.
    3. Run the automated evaluation suite in evals/eval-suite.json to confirm the fix.

    Navbar.tsx

    PNG · 1536×1024

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Slow page loads and poor Core Web Vitals kill conversion rates and search rankings. Most developers struggle to pinpoint exactly why a site feels sluggish or jumps around during loading. This skill acts as a specialized performance engineer to diagnose and fix LCP, CLS, and INP issues.

    What it does

    • LCP Acceleration: Identifies hero elements and implements fetchpriority="high" and preloading to speed up the largest contentful paint.
    • Layout Shift Elimination: Audits images, videos, and ad slots to enforce explicit dimensions and prevent cumulative layout shifts.
    • Interaction Optimization: Analyzes main-thread tasks and implements scheduler.yield() or Web Workers to improve Interaction to Next Paint.
    • Font & Asset Loading: Refactors loading strategies for fonts and static assets to reduce render-blocking delays.

    How it works

    1. Audit phase: The skill scans the frontend codebase to identify performance bottlenecks in the rendering path.
    2. Diagnostic report: It categorizes issues by specific Core Web Vitals metrics.
    3. Refactoring: It generates specific HTML and JavaScript modifications to resolve identified regressions.

    Frameworks & tools

    Works with modern frontend stacks including React, Next.js, and vanilla HTML/JS. Utilizes native browser APIs like the Performance API and Scheduler API.

    Why this beats prompting it yourself

    Generic prompts often suggest broad advice like "optimize images." This skill follows a deterministic workflow to provide specific, production-ready code changes for specific CWV metrics, ensuring you don't miss technical details like fetch priority or main-thread yielding.

    Use cases

    • Stabilizing a jumping UI by fixing Cumulative Layout Shift.
    • Reducing time-to-first-paint for hero images on landing pages.
    • Resolving input lag in complex React applications.
    • Preparing a site for a Google Search Console performance audit.

    Known limitations

    Restricted to frontend optimizations within the active workspace. It does not perform server-side infrastructure tuning or global system package installations.

    Restricted to frontend workspace file analysis. Cannot perform server-side infra tuning or global package installs.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 3 days ago

    Requires

    File System Read/Write (strictly scoped to current project workspace `./`).
    Zero global installation or elevated privileges required.

    Permissions

    Read Files
    Write Files

    Target Use Cases: - Optimize my website to pass Core Web Vitals LCP and CLS. - Fix high Cumulative Layout Shift caused by dynamic content. - Improve Interaction to Next Paint (INP) performance in JavaScript.

    Listed3 days ago

    What's inside

    Frequently Asked Questions

    The skill performs a deep scan of your frontend code to identify specific elements causing slow paints (LCP), unstable layouts (CLS), and input lag (INP), then generates production-ready code fixes to resolve them.

    It is optimized for modern frontend frameworks like React and Next.js, as well as vanilla HTML/CSS/JS environments, making it ideal for most modern web applications.

    This skill focuses exclusively on frontend code refactoring; it does not handle server-side configurations, database tuning, or global infrastructure changes like CDN setups.

    Unlike generic prompts, this skill uses a deterministic workflow to implement advanced browser APIs—like the Scheduler API and fetchpriority attributes—ensuring technical precision that basic AI models often overlook.

    You receive the full diagnostic and refactoring logic for the Web Vitals Performance Optimizer, including all future updates and improvements to the skill's optimization patterns.

    Setup is near-instant; once added to your AI agent's workspace, you simply point it toward your component or page directory to begin the audit and refactoring process.

    New in Frontend & Web Apps