Skip to main content
skill CX Codex

nextjs-v16 — Claude Code skill: migrate to Next.js 16

A skill that walks a project through the Next.js 16 migration: async request APIs, opt-in caching with "use cache", Turbopack. Useful when upgrading an existing app.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add bobmatnyc/claude-mpm-skills --skill nextjs-v16 -a claude-code
Open on GitHub

What nextjs-v16 does

The skill covers the move to Next.js 16 and gathers the usual migration mistakes into one list. It pairs each anti-pattern with the fix: sync request APIs versus await on params, cookies() and headers(); middleware.ts versus proxy.ts with export function proxy; the old revalidateTag("posts") call versus revalidateTag("posts", "max") or the { expire: ... } form.

Beyond the summary there are three references: references/migration-checklist.md, references/cache-components.md and references/turbopack.md. So a step-by-step checklist, a cache components write-up, and a separate note on Turbopack, which is the default in 16.

The skill is marked user-invocable: false and disable-model-invocation: true, so you cannot call it by hand. It loads on its own when the agent touches Next.js code. If your project still has sync params and cookies(), that is worth checking.

What it helps with

  • switch sync params and cookies() to await
  • replace middleware.ts with proxy.ts and export function proxy
  • fix revalidateTag calls for the new signature
  • turn on opt-in caching with "use cache"
  • sort out Turbopack as the default in 16

Example prompts for the agent

  • check my project for Next.js 16 anti-patterns
  • help me migrate middleware.ts to proxy.ts
  • how should I call revalidateTag in Next.js 16

How to install nextjs-v16

1Skills CLI (Vercel)

npx skills add bobmatnyc/claude-mpm-skills --skill nextjs-v16 -a claude-code

2Manually: put the files in place

~/.claude/skills/nextjs-v16/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/nextjs-v16/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about nextjs-v16

How do I install nextjs-v16 in Claude?

Run npx skills add bobmatnyc/claude-mpm-skills --skill nextjs-v16 -a claude-code. The skill lands in ~/.claude/skills/nextjs-v16/SKILL.md.

What does nextjs-v16 do?

It guides the Next.js 16 migration: async request APIs, opt-in caching with "use cache", Turbopack. It also ships an anti-pattern list and three references under references/.

Can I invoke this skill manually?

No. It sets user-invocable: false and disable-model-invocation: true, so it fires on its own while the agent works on Next.js code.

Source text

SKILL.md · MIT
---
name: nextjs-v16
description: Next.js 16 migration guide (async request APIs, "use cache", Turbopack)
user-invocable: false
disable-model-invocation: true
version: 1.1.0
category: toolchain
progressive_disclosure:
  entry_point:
    summary: "Next.js 16 migration: async request APIs + opt-in caching"
tags: [nextjs, nextjs-16]
---

# Next.js 16

- Async `params`/`cookies`/`headers`; opt-in caching via `"use cache"`; Turbopack default.

Anti-patterns:

- ❌ Sync request APIs; ✅ `await` `params`, `cookies()`, and `headers()`.
- ❌ Keep `middleware.ts`; ✅ use `proxy.ts` and `export function proxy`.
- ❌ `revalidateTag("posts")`; ✅ `revalidateTag("posts", "max")` or `{ expire: ... }`.

References: `references/migration-checklist.md`, `references/cache-components.md`, `references/turbopack.md`

© bobmatnyc · MIT · bobmatnyc/claude-mpm-skills

Similar skills

Everything for Frontend and UI →

From the same set66

systematic-debugging This skill guides an agent from reproducing a bug to checking the fix. Use it when an error or unexpected behavior has no clear cause. CX Codex +1 382installs vue A Vue 3 skill for your coding agent: Composition API, reactivity, single-file components, Vue Router, Pinia, TypeScript and Vite. Useful when the agent writes Vue frontend code. CX Codex +1 381installs api-documentation A set of rules that tells the agent how to write docstrings, JSDoc, Godoc and endpoint descriptions. Useful when several agents each carry their own copy of the same guidance. CX Codex +1 379installs software-patterns Compares tradeoffs between architectural patterns and points to the one that fits your problem: coupling, resilience, service boundaries. Useful when code resists testing. CX Codex +1 373installs testing-anti-patterns A skill for spotting tests that verify mock behavior, add test-only production methods, or use incomplete mocks. CX Codex +1 368installs vercel-deployments-builds Walks through the Vercel deployment lifecycle: builds, previews, release phases and rollback. Useful when you configure build output or control releases. CX Codex +1 368installs stacked-prs A skill that walks the agent through building stacks of dependent pull requests, where each branch grows from the previous one instead of main. Useful when a large feature is split into phases. CX Codex +1 362installs better-auth-core A skill for wiring Better Auth into TypeScript apps: the instance, server handlers, client, and sessions. Useful when you need auth running without digging through docs. CX Codex +1 358installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor