Review code for Next.js 16 compliance - security patterns, caching, breaking changes. Use when reviewing Next.js code, preparing for migration, or auditing for violations.
Reviews Next.js 16 code for security vulnerabilities (CVE-2025-29927), proper async API usage, caching patterns, and breaking changes. Used when auditing code, preparing migrations, or reviewing PRs for Next.js 16 compliance.
/plugin marketplace add djankies/claude-configs/plugin install nextjs-16@claude-configsThis skill is limited to using the following tools:
Comprehensive review for Next.js 16 compliance covering security vulnerabilities, caching patterns, breaking changes, and migration readiness.
For comprehensive security review patterns, use the reviewing-security skill from the review plugin. For dependency auditing, use the reviewing-dependencies skill from the review plugin.
CVE-2025-29927 - Server Action Authentication
Check all Server Actions for proper authentication:
# Find all Server Actions
grep -r "use server" --include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx"
For each Server Action verify:
Middleware Security
# Find middleware files
find . -name "middleware.ts" -o -name "middleware.js"
Verify:
Server Component Data Access
# Find async Server Components
grep -r "export default async function" app/
Check each Server Component:
use cache Adoption
# Find fetch calls that should use cache
grep -r "fetch(" --include="*.ts" --include="*.tsx"
# Find functions that should be cached
grep -r "export async function" --include="*.ts"
Verify:
use cache directive for cacheable functionscacheTag() for revalidationcacheLife()Cache Lifecycle Configuration
Check for proper cache profiles:
cacheLife('seconds') for rapidly changing datacacheLife('minutes') for moderate update frequencycacheLife('hours') for stable contentcacheLife('days') for rarely changing datacacheLife('weeks') for static contentRevalidation Strategy
# Find revalidation calls
grep -r "revalidateTag\|revalidatePath" --include="*.ts" --include="*.tsx"
Verify:
Async Request APIs
# Find synchronous API usage
grep -r "cookies()\|headers()\|params\|searchParams" --include="*.ts" --include="*.tsx"
Check for required async usage:
await cookies() in Server Components/Actionsawait headers() in Server Components/Actionsawait params in page/layout/route componentsawait searchParams in page componentsMiddleware to Proxy Migration
# Check for removed middleware patterns
grep -r "NextResponse.rewrite\|NextResponse.redirect" middleware.ts
Verify migration:
Route Handler Changes
# Find route handlers
find app -name "route.ts" -o -name "route.js"
Check each route handler:
generateStaticParams Changes
# Find static param generation
grep -r "generateStaticParams" --include="*.ts" --include="*.tsx"
Verify:
Dependency Updates
Check package.json:
Configuration Updates
Check next.config.js:
Build Validation
Run and verify:
npm run build
Runtime Testing
Critical
High
Medium
Nitpick
Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.