Next.js 16.3 Preview では、エージェント駆動の開発向けの機能が拡充された。next-browser は汎用の agent-browser に統合され、React ツリーの検査も可能になっている。
next dev は AI コーディングエージェントを検出すると、AGENTS.md にバンドル docs への案内ブロックを自動で書き込み・更新する。16.1 以前では npx @next/codemod@canary agents-md を手動実行する。オプトアウトは next.config.ts の agentRules: false。
md
<!-- BEGIN:nextjs-agent-rules -->
# This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices.
<!-- END:nextjs-agent-rules -->ファーストパーティ Skills として、開発フィードバックループ用の next-dev-loop、Cache Components 導入用の next-cache-components-adoption、静的シェル最適化用の next-cache-components-optimizer が追加された。バンドル docs 経由で届く知識は AGENTS.md 側に寄せ、skills.sh の旧 knowledge Skills は退役する。
変更点の要約は次のとおり。
- Instant Insights にラベル付き修正メニューと Copy prompt が付き、ターミナル/ビルド出力にも同内容が出る
- エラーごとの docs/messages ページがエージェント向けに整理された
- DevTools MCP から knowledge base 系ツールを外し、
get_compilation_issuesとcompile_routeを追加した - docs URL に
.mdを付けると Markdown 版が得られ、/docs/llms.txtと/docs/llms-full.txtも提供される
bash
npx skills add vercel/next.js --skill next-dev-loop
npm install -g agent-browser@^0.27