sdcorejs-review-performance-nextjs

Audit Next.js landing pages against Lighthouse mobile and bundle performance budgets.

2|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/sdcorejs/sdcorejs-agent --skill sdcorejs-review-performance-nextjs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sdcorejs-review-performance-nextjs
Source: https://github.com/sdcorejs/sdcorejs-agent/tree/main/plugin/skills/sdcorejs-review-performance-nextjs
Command: npx skills add https://github.com/sdcorejs/sdcorejs-agent --skill sdcorejs-review-performance-nextjs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects Next.js landing-site performance regressions early by comparing real Lighthouse mobile metrics and bundle/cache/image/font/server signals against defined budgets.

Core Features & Use Cases

  • Lighthouse mobile performance audit: Runs mobile preset to surface numeric Critical/Important findings (Performance, LCP, CLS, TBT, TTFB) per page.
  • Bundle-size and chunk budget checks: Uses next/bundle-analyzer plus chunk scanning to flag oversized initial or lazy route payloads.
  • Image, font, and ISR/cache strategy validation: Verifies image optimization patterns, font configuration (e.g., vietnamese subsets, swap), and "use cache" + cacheLife() on page.tsx.
  • Third-party script weight review: Flags blocking/synchronous external scripts and encourages next/script strategy usage.
  • Output as actionable audit report: Produces a structured report with Critical/Important/Minor findings tied to probes and expected thresholds for faster fixes.

Quick Start

Run the performance audit on your deployed or locally started Next.js staging site for the routes /vi, /vi/san-pham, and /vi/lien-he using your existing production build.

Frequently Asked Questions about sdcorejs-review-performance-nextjs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a Next.js performance audit before launch?

Run a Next.js performance audit by executing a production build and starting your staging or localhost site on port 3000, then analyzing key routes like home, longest-content, and interactive form pages against mobile Lighthouse metrics and bundle thresholds.

What is a performance budget and how does it validate Next.js web vitals?

A performance budget validates Next.js web vitals by comparing real Lighthouse mobile metrics like LCP, CLS, TBT, and TTFB against defined thresholds, surfacing Critical, Important, or Minor findings mapped to specific files or routes for faster fixes.

How do I check Next.js bundle size and chunk payloads?

Check Next.js bundle size and chunk payloads by using next/bundle-analyzer alongside chunk scanning to flag oversized initial or lazy route payloads, ensuring your JavaScript chunks stay within defined budget limits before deployment.

Does this performance audit require a successful production build?

Yes, this performance audit requires a successful production build running on either staging or localhost port 3000 to accurately sample server response times and validate ISR cache strategies across your key Next.js pages.

Why are my Next.js images and third-party scripts hurting web vitals?

Your Next.js images and third-party scripts might hurt web vitals if image optimization patterns are missing or external scripts are blocking; the audit flags synchronous scripts and encourages next/script strategy usage to reduce load impact.

How do I validate ISR caching and cacheLife configuration in Next.js?

Validate ISR caching and cacheLife configuration in Next.js by checking for "use cache" directives and cacheLife() implementations on page.tsx files, ensuring your cache strategy meets performance budget criteria.