Next.js App Router & CWV Optimizer

    1

    Audits Next.js App Router apps for Core Web Vitals (LCP, INP, CLS), waterfall fetches, bloated client bundles, and caching misconfigurations.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Next.js App Router & CWV Optimizer

    Example session with this skill installed

    Fix slow Next.js App Router pages, bloated client JS bundles, and failing Core Web Vitals.

    This skill directs your AI coding agent to:

    • Eliminate sequential Server Component fetch waterfalls with Promise.all and streaming <Suspense>
    • Push 'use client' boundaries to leaf interactive components only
    • Optimize LCP (next/image priority + sizes), CLS (explicit dimensions + next/font), and INP
    • Verify bundle size and route rendering improvements.
    • Read your context and instructions
    • Compiled the next js app

    Our /dashboard page in Next.js 15 has a 3.4s LCP and 420KB client JS bundle.

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

    About this skill

    Next.js performance suffers when Server Components are treated like legacy pages. This skill audits App Router applications to fix request waterfalls, bloated client bundles, and failing Core Web Vitals that tank search rankings and user retention.

    What it does

    • Eliminate Waterfalls: Replaces sequential await calls with Promise.all or <Suspense> boundaries to enable streaming SSR.
    • Client Bundle Pruning: Identifies "use client" directives that should be pushed to leaf nodes to reduce the main thread payload.
    • LCP Optimization: Audits hero elements to ensure next/image uses priority and fetchPriority for faster first meaningful paints.
    • CLS Prevention: Enforces explicit dimensions on media and skeletons while configuring next/font for zero-shift loading.
    • INP Remediation: Identifies synchronous layout thrashing and expensive input handlers that delay interaction responsiveness.

    How it works

    1. Component Audit: Provide a Server Component or Layout file to detect sequential data fetching patterns.
    2. Boundary Refactoring: The skill moves interactivity to the smallest possible client-side scope.
    3. Metric Patching: It applies specific attributes to images, fonts, and scripts to meet CWV thresholds.

    Frameworks & tools

    Specifically designed for Next.js 14, 15, and 16 using the App Router. Works with React Server Components, next/image, next/font, and standard Web Vitals metrics.

    Why this beats prompting it yourself

    Standard LLMs often default to Page Router patterns or generic React advice. This skill specifically understands App Router streaming mechanics and how to leverage React cache() to deduplicate DB calls across the request tree.

    Use cases

    • Fixing a slow LCP caused by hero images being lazy-loaded by default.
    • Refactoring nested Server Components to prevent data fetching blocks.
    • Reducing a page's initial JS bundle by shifting logic to the server.
    • Resolving layout shifts during font or ad loading.

    Known limitations

    Does not support the legacy Pages Router. Cannot fix performance issues originating from third-party scripts or external API latency.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.

    Supports Next.js 14+ App Router only; no support for Pages Router. Cannot optimize cold starts on serverless functions or external API response times.

    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 buying a skill.

    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 7 days ago

    Permissions

    No special permissions declared or detected

    Listed7 days ago

    What's inside

    Frequently Asked Questions

    This skill specifically targets the Next.js App Router, addressing architectural issues like Server Component waterfalls, 'use client' bloat, and streaming-specific optimizations that generic prompts often miss.

    The skill is optimized for Next.js 14, 15, and 16, utilizing the latest features like React Server Components, the cache() function, and advanced streaming boundaries.

    No complex setup is required; simply provide your Server Component or Layout file to the AI agent to receive a performance audit and refactored code blocks.

    It focuses on code-level issues like LCP, CLS, and INP, but it cannot resolve performance bottlenecks caused by third-party tracking scripts or slow external API responses.

    Yes, the skill includes specialized logic for configuring next/font and next/image to ensure zero layout shift and prioritized loading for hero elements.

    New in Frontend & Web Apps