Next.js scaffold AGENTS.md says read bundled docs first
@marcdasilva▲ 3 net votes
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.