Back to Skills

nextjs

Next.js App Router expert guidance. Use when building, debugging, or architecting Next.js applications — routing, Server Components, Server Actions, Cache Components, layouts, middleware/proxy, data fetching, rendering strategies, and deployment on Vercel.

158stars20forksUpdated 5/9/2026

Security Assessment

Medium Risk(50/100)

Detected risks:

Secret Exposure([references/self-hosting.md] SECRET=, [references/route-handlers.md] token =, [upstream/references/self-hosting.md] SECRET=)
Sensitive File Access([references/self-hosting.md] .env, [upstream/references/self-hosting.md] .env)
Security Score50/100

About nextjs

The Next.js skill provides expert guidance for developers working with the Next.js framework, specifically focusing on the App Router architecture. It helps solve common challenges encountered when building, debugging, or architecting Next.js applications by offering best practices for routing, server components, server actions, and modern data fetching strategies. This skill also assists in migrating from legacy Pages Router patterns to App Router conventions, ensuring developers adhere to updated frameworks and avoid deprecated approaches such as getServerSideProps, getStaticProps, and next/router.

The skill encompasses a comprehensive set of features and capabilities including guidance on layouts, middleware and proxy configuration, caching strategies, rendering techniques, and deployment on Vercel. It includes validation rules to detect deprecated patterns and offers actionable advice to migrate code safely to modern Next.js practices. It also recognizes common prompts, code patterns, and configuration files, enabling automated insights and recommendations on the correct use of client and server components, React hooks, and metadata management in the App Router environment.

This skill is ideal for frontend developers, full-stack engineers, and technical architects who are building or maintaining Next.js applications. It is particularly useful for teams migrating existing projects from the Pages Router to the App Router or integrating advanced features like Server Components and Server Actions. By following the guidance provided, developers can improve code quality, ensure framework compatibility, and leverage the latest Next.js capabilities for scalable and maintainable web applications.

FAQ

Can this skill help migrate from Pages Router to App Router?

Yes, the skill includes validations and guidance for replacing getServerSideProps, getStaticProps, and next/router with App Router server components, generateStaticParams, and next/navigation hooks.

Which Next.js versions does this skill target?

The skill focuses on modern Next.js App Router patterns and Next.js 16 migration requirements, including updated middleware (proxy.ts) and revalidateTag usage.

Does it provide deployment guidance?

Yes, it includes guidance for deploying Next.js applications on Vercel and best practices for server and caching strategies.

Are React hooks supported in server components?

React hooks require the 'use client' directive and should only be used in client components. The skill provides warnings if hooks are used incorrectly.

Does it cover metadata management?

Yes, the skill advises migrating from next/head to App Router metadata APIs, using export const metadata or generateMetadata() for page-level metadata.

All Files

43 files
SKILL.md17.5 KB
View
overlay.yaml13.8 KB
View
references/app-router-files.md2.5 KB
View
references/async-patterns.md1.6 KB
View
references/bundling.md4.4 KB
View
references/data-patterns.md6.4 KB
View
references/debug-tricks.md2.9 KB
View
references/directives.md1.4 KB
View
references/error-handling.md4.6 KB
View
references/rsc-boundaries.md4.2 KB
View
references/file-conventions.md3.2 KB
View
references/font.md5.1 KB
View
references/functions.md4.3 KB
View
references/hydration-error.md1.8 KB
View
references/image.md3.8 KB
View
references/metadata.md6.9 KB
View
references/parallel-routes.md6.8 KB
View
references/runtime-selection.md1.0 KB
View
references/self-hosting.md8.1 KB
View
references/route-handlers.md3.1 KB
View
upstream/references/hydration-error.md1.8 KB
View
references/scripts.md3.2 KB
View
upstream/references/parallel-routes.md6.8 KB
View
references/suspense-boundaries.md1.3 KB
View
upstream/references/rsc-boundaries.md4.2 KB
View
upstream/SKILL.md3.9 KB
View
upstream/references/runtime-selection.md1.0 KB
View
upstream/references/app-router-files.md2.5 KB
View
upstream/references/scripts.md3.2 KB
View
upstream/references/async-patterns.md1.6 KB
View
upstream/references/self-hosting.md8.1 KB
View
upstream/references/bundling.md4.4 KB
View
upstream/references/suspense-boundaries.md1.3 KB
View
upstream/references/data-patterns.md6.4 KB
View
upstream/references/debug-tricks.md2.9 KB
View
upstream/references/directives.md1.4 KB
View
upstream/references/error-handling.md4.6 KB
View
upstream/references/file-conventions.md3.2 KB
View
upstream/references/font.md5.1 KB
View
upstream/references/functions.md4.3 KB
View
upstream/references/image.md3.8 KB
View
upstream/references/metadata.md6.9 KB
View
upstream/references/route-handlers.md3.1 KB
View

Install nextjs

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill