nextjs

Implement Next.js 16 App Router patterns with proxy-based authentication.

2|Updated Dec 7, 2025
One-click install
npx skills add https://github.com/ayesha-aziz123/Hackathon_II --skill nextjs-ayesha-aziz123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs
Source: https://github.com/ayesha-aziz123/Hackathon_II/tree/main/Evolution-Todo/.claude/skills/nextjs
Command: npx skills add https://github.com/ayesha-aziz123/Hackathon_II --skill nextjs-ayesha-aziz123

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides modern Next.js patterns for building apps with App Router, Server/Client Components, proxy.ts authentication patterns, data fetching, caching, and React Server Components. It helps developers implement scalable architecture quickly.

Core Features & Use Cases

  • App Router patterns for structured layouts and nested routing.
  • Server vs Client Components guidance for optimal performance and interactivity.
  • Auth proxy (proxy.ts) pattern for protecting routes and handling authentication.
  • Data Fetching & Caching strategies and route handlers to optimize performance.
  • Use Case: Build a dashboard with protected routes and server-side data fetching using Next.js 16 patterns.

Quick Start

Use the nextjs skill to scaffold an App Router project with an auth proxy and server/client components.

Frequently Asked Questions about nextjs

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

FAQPage Schema
How do I protect routes and handle authentication in Next.js 16 App Router?

Use a proxy.ts authentication pattern to intercept requests and protect routes across your App Router. This approach validates user credentials server-side before granting access to protected dashboards and API routes, enforcing access control centrally without duplicating auth logic in each route.

What's the difference between Server Components and Client Components in Next.js, and when should I use each?

Server Components run only on the server and are ideal for data fetching and sensitive operations; Client Components run in the browser for interactivity. Use Server Components by default for dashboards and data fetching, Client Components for forms and real-time UI updates to optimize performance and reduce bundle size.

How do I implement data fetching with caching in Next.js App Router?

Data fetching with caching in App Router leverages server-side route handlers and fetch strategies to cache responses and reduce redundant requests. Configure cache revalidation timing and use incremental static regeneration for dynamic routes to balance freshness and performance.

Can I use dynamic routes with server-side data fetching in Next.js App Router?

Yes, App Router supports dynamic routes with server-side data fetching using route parameters and Server Components. Fetch data server-side during render for protected dashboards and nested routes, using caching strategies to optimize load times across dynamic segments.

What are the key architectural patterns for building scalable Next.js applications with App Router?

Scalable Next.js architecture combines App Router's nested layouts, Server/Client Component separation, proxy-based authentication, and optimized data fetching with caching. This pattern provides structured routing, centralized auth control, and performance-driven component placement for complex dashboards and multi-tenant apps.

Related Skills