nextjs-reviewer

Review Next.js projects for App Router usage and optimization opportunities.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/physics91/claude-vibe --skill nextjs-reviewer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-reviewer
Source: https://github.com/physics91/claude-vibe/tree/main/skills/nextjs-reviewer
Command: npx skills add https://github.com/physics91/claude-vibe --skill nextjs-reviewer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill analyzes Next.js projects for App Router usage, server/client component separation, data fetching, and image/font optimization to speed development and improve UX.

Core Features & Use Cases

  • Server/Client Component guidance: optimize component placement for performance.
  • Data fetching patterns: recommend server vs client data loading strategies.
  • Image/font optimization: promote next/image and font optimization.
  • Routing patterns: analyze app router usage and layout strategies.
  • Use Case: Convert a pages-based app to app router with server components where beneficial.

Quick Start

Run the nextjs-reviewer on a project with app/ or pages/ to receive a pattern and optimization report.

Frequently Asked Questions about nextjs-reviewer

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

FAQPage Schema
How do I review Next.js App Router patterns in my project?

App Router pattern review analyzes your app/ directory structure, server/client component separation, and routing layouts to identify optimization opportunities. Run the nextjs-reviewer on a project with app/ or pages/ directories to receive a structured pattern and optimization report identifying routing inefficiencies and best-practice violations.

What's the best way to optimize data fetching in Next.js?

Data fetching optimization distinguishes server-side versus client-side loading strategies based on your component placement and data requirements. The reviewer recommends fetch patterns—server components for database queries, client components for user interactions—and flags anti-patterns like N+1 queries or unnecessary client-side data loading.

How do I use next/image and font optimization correctly?

Next.js image and font optimization reduces bundle size and improves page load performance through automatic format serving and font subsetting. The reviewer scans your project for unoptimized images and fonts, recommending next/image adoption and font strategy improvements aligned with your app structure.

Can I convert a pages directory structure to App Router?

Pages-to-App Router migration reorganizes route definitions from pages/ to app/ with server components, layouts, and nested routing. The reviewer identifies conversion opportunities by analyzing your current routing patterns, component separation, and data fetching, providing guidance on where App Router benefits are highest.

Does this work with next.config.js configuration?

Configuration analysis includes next.config.js and next.config.mjs files to validate optimization settings, image loaders, and routing configuration. The reviewer checks your Next.js dependency declaration and config file for compatibility with App Router patterns and recommends config-level improvements.

What are common Next.js optimization mistakes this catches?

Common optimization gaps include improper server/client component boundaries, inefficient data fetching placement, missing image optimization, unoptimized fonts, and suboptimal App Router layout strategies. The reviewer flags these anti-patterns with actionable recommendations to improve performance and maintainability.