Add Next.js Best Practices for LLMs (2025)#120
Merged
Conversation
Introduced a new document outlining best practices for building, structuring, and maintaining Next.js applications. This guide is intended for LLMs and developers to ensure code quality, maintainability, and scalability, covering project structure, component integration, naming conventions, API routes, and general best practices.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request adds a new Next.js best practices instruction file targeting LLMs and developers for 2025. The document provides comprehensive guidelines for building modern Next.js applications using the App Router, covering project structure, component patterns, naming conventions, API design, and general development practices.
Key changes include:
- Introduction of a structured Next.js instruction document with current best practices
- Emphasis on App Router over legacy Pages Router approach
- Specific guidance on Server/Client Component integration patterns
- Updated README.md to include the new instruction file
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| instructions/nextjs.instructions.md | New comprehensive Next.js best practices guide covering project structure, component patterns, API routes, and development standards |
| README.md | Added table entry for the new Next.js instructions file with installation links |
Comments suppressed due to low confidence (1)
README.md:53
- The description '(2025) specific coding standards and best practices' is incomplete and unclear. It should be more descriptive, such as 'Next.js specific coding standards and best practices for 2025' to match the content and purpose of the instruction file.
| [Next.js Best Practices for LLMs (2025)](instructions/nextjs.instructions.md) | (2025) specific coding standards and best practices | [](https://vscode.dev/redirect?url=vscode%3Achat-instructions%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Finstructions%2Fnextjs.instructions.md) [](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Achat-instructions%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Finstructions%2Fnextjs.instructions.md) |
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.
Introduced a new document outlining best practices for building, structuring, and maintaining Next.js applications. This guide is intended for LLMs and developers to ensure code quality, maintainability, and scalability, covering project structure, component integration, naming conventions, API routes, and general best practices.
Pull Request Checklist
node update-readme.jsand verified thatREADME.mdis up to date.Description
This is an opinionated instructions file for NextJS apps that is based on research of "best practices" as of July, 2025.
Type of Contribution
Additional Notes
Aaron Powell is a legend.
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.