- Home
- Skills
- Frontend & Web Apps
- Next.js App Router & CWV Optimizer
Next.js App Router & CWV Optimizer
Audits Next.js App Router apps for Core Web Vitals (LCP, INP, CLS), waterfall fetches, bloated client bundles, and caching misconfigurations.
$7
Works with the AI Agents you already use
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
awaitcalls withPromise.allor<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/imageusespriorityandfetchPriorityfor faster first meaningful paints. - CLS Prevention: Enforces explicit dimensions on media and skeletons while configuring
next/fontfor zero-shift loading. - INP Remediation: Identifies synchronous layout thrashing and expensive input handlers that delay interaction responsiveness.
How it works
- Component Audit: Provide a Server Component or Layout file to detect sequential data fetching patterns.
- Boundary Refactoring: The skill moves interactivity to the smallest possible client-side scope.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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