docs(claude): accept the Next.js agent-rules block - #329
Merged
Conversation
`next dev` appends this block to CLAUDE.md itself (Next 16.3.1, generate-agent-files.js) and re-adds it on every run, so it will land here the first time anyone starts the dev server. Committing it now keeps it from surfacing later as an unexplained diff mid-task. It is worth keeping on its merits: it points at the complete, version- matched Next.js docs bundled at node_modules/next/dist/docs/, which is a better source for Next 16 conventions than either model recollection or a web search that may resolve to a different major. Written by invoking the same writeAgentFiles() the dev server calls, so the block is byte-identical to the one in robosystems-app.
Member
Author
|
@claude please review this PR |
|
Claude finished @jfrench9's task in 46s —— View job Review: docs(claude): accept the Next.js agent-rules block
Summary: Clean, low-risk documentation-only change. The 10-line block is appended after the existing "Core Library" section in Verification:
Assessment:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Commit the managed
nextjs-agent-rulesblock that Next 16.3.1 writes intoCLAUDE.mdon its own.This is not a new convention being introduced —
next devcallswriteAgentFiles()(node_modules/next/dist/server/lib/generate-agent-files.js) on startup and appends the block whenever it is missing, then re-adds it on every subsequent run. It will therefore land in this repo the first time anyone starts the dev server. Committing it deliberately now keeps it from showing up later as an unexplained modification in the middle of unrelated work, which is how it was noticed inrobosystems-app.It also earns its place. The block points at the full Next.js documentation bundled under
node_modules/next/dist/docs/— 444 files, version-matched to the installed 16.3.1. For an agent working in this repo that is a better source for Next 16 conventions than model recollection (Next 16 moved Turbopack to default, changed'use client'/'use cache'boundaries, and made request APIs async) or a web search that may resolve to a different major.Companion to the same change in
robosystems-app(RoboFinSystems/robosystems-app#350).Changes
CLAUDE.md— appended the 10-line managed block, delimited by<!-- BEGIN:nextjs-agent-rules -->/<!-- END:nextjs-agent-rules -->. No existing content was altered.Generated by invoking Next's own
writeAgentFiles()rather than transcribing the text by hand, so the block is byte-identical to the one inrobosystems-app(verified by checksum across all three repos). The generator is idempotent and replaces the block in place on a version bump, so a future Next release that revises the wording will produce a clean one-block diff rather than a duplicate.Deploy Notes
None. Documentation only — no source, config, dependency or infrastructure change.
Testing
npm run test:all— passing, via the pre-commit hook (format check, lint, typecheck, test suite, cf-lint). Nothing executable changed, so there is no behavior to exercise beyond the repo gate.