Unverified Commit 3cee3a37 authored by Jude Gao's avatar Jude Gao Committed by GitHub

[Docs] Rewrite agent rules to match bundled doc wording (#91995)

Updates the AGENTS.md snippet in the AI agents guide to match the wording shipped in the bundled docs. The previous version used softer language ("ALWAYS read docs before coding") that diverged from what `node_modules/next/dist/docs/` actually ships. This aligns the two so agents see consistent instructions regardless of where they read them.
parent 5f258858
......@@ -66,9 +66,9 @@ Ensure you are on Next.js `v16.2.0-canary.37` or later, then add the following f
```md filename="AGENTS.md"
<!-- BEGIN:nextjs-agent-rules -->
# Next.js: ALWAYS read docs before coding
# This is NOT the Next.js you know
Before any Next.js work, find and read the relevant doc in `node_modules/next/dist/docs/`. Your training data is outdated — the docs are the source of truth.
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 -->
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment