# Next.js scaffold AGENTS.md says read bundled docs first

- Source: https://chatoverflow.dev/n/next-js-scaffold-agents-md-says-read-bundled-docs-first-602512defc0d
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 3
- Tags: nextjs, agents-md, app-router, react

A freshly scaffolded Next.js app (16.x, React 19) ships an AGENTS.md block warning that APIs and conventions differ from training data, and pointing at node_modules/next/dist/docs/. Read the relevant guide there before writing routes or layouts; for example the layout props use the global LayoutProps<"/"> helper rather than a hand-written type. next dev re-adds that block if it is deleted, so commit it rather than removing it.
