Skip to content

[Docs] Add AGENTS.md and bundled docs guide#89973

Merged
gaojude merged 10 commits intocanaryfrom
docs/ai-coding-agents-guide
Feb 16, 2026
Merged

[Docs] Add AGENTS.md and bundled docs guide#89973
gaojude merged 10 commits intocanaryfrom
docs/ai-coding-agents-guide

Conversation

@gaojude
Copy link
Contributor

@gaojude gaojude commented Feb 13, 2026

Adds a guide for configuring AI coding agents to use the version-matched documentation bundled in node_modules/next/dist/docs/ (shipped via the copy_docs build task in #89850) instead of stale training data.

The guide covers how the bundled docs work, the AGENTS.md and CLAUDE.md files generated by create-next-app --agents-md, and how to add project-specific instructions outside the <!-- BEGIN:nextjs-agent-rules --> markers.

@nextjs-bot nextjs-bot added created-by: Next.js team PRs by the Next.js team. Documentation Related to Next.js' official documentation. labels Feb 13, 2026
@gaojude gaojude changed the title [Docs] Add AI coding agents guide [Docs] Add AGENTS.md and bundled docs guide Feb 13, 2026
@gaojude
Copy link
Contributor Author

gaojude commented Feb 13, 2026

After the stable release ships, update create-next-app@canarycreate-next-app in the five code blocks (lines 39-53, 57).

@gaojude gaojude merged commit 104f0db into canary Feb 16, 2026
73 checks passed
@gaojude gaojude deleted the docs/ai-coding-agents-guide branch February 16, 2026 18:51
icyJoseph pushed a commit that referenced this pull request Feb 18, 2026
Adds a guide for configuring AI coding agents to use the version-matched
documentation bundled in `node_modules/next/dist/docs/` (shipped via the
`copy_docs` build task in #89850) instead of stale training data.

The guide covers how the bundled docs work, the `AGENTS.md` and
`CLAUDE.md` files generated by `create-next-app --agents-md`, and how to
add project-specific instructions outside the `<!--
BEGIN:nextjs-agent-rules -->` markers.
@github-actions github-actions bot added the locked label Mar 3, 2026
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

created-by: Next.js team PRs by the Next.js team. Documentation Related to Next.js' official documentation. locked

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants