Skip to content

Commit 35bbd86

Browse files
committed
docs: Add AGENTS.md for Next.js agent rules and reference in CLAUDE.md
* Introduced AGENTS.md to outline breaking changes and guidelines for the Next.js agent, emphasizing the differences from previous versions. * Updated CLAUDE.md to reference AGENTS.md, ensuring documentation consistency and accessibility for users.
1 parent 31117ac commit 35bbd86

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!-- BEGIN:nextjs-agent-rules -->
2+
3+
# This is NOT the Next.js you know
4+
5+
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/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.
6+
7+
This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
8+
9+
<!-- END:nextjs-agent-rules -->

CLAUDE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,6 @@ only `INSERT` raises, which is why that suite has both `expectRefused` and
158158
| [`docs/manager-queries.md`](docs/manager-queries.md) | Tables, columns, joins, manager SQL |
159159
| [`SECURITY.md`](SECURITY.md) | The shared-origin exposure, accepted risks, operational rules |
160160
| [`supabase/README.md`](supabase/README.md) | Applying the schema |
161+
162+
163+
@AGENTS.md

0 commit comments

Comments
 (0)