Replies: 1 comment
-
Hi, We are definitely looking into this - I don't have an estimated time for it. Thanks for the input too! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
Background
With the rapid adoption of AI-powered developer tools, many of us rely on them for boilerplate, component generation, and debugging. However, for a rapidly evolving framework like Next.js, LLMs often provide code that is outdated or suboptimal. For example, they might generate code using the Pages Router instead of the App Router, misuse
useEffect
for data fetching in Server Components, or fail to leverage newer features like the Metadata API. This leads to confusion, particularly for developers new to the ecosystem.A great example of a solution to this problem comes from the Angular team. They have created a set of curated files to provide context to LLMs, resulting in much more accurate code generation. Their approach includes:
.github/copilot-instructions.md
).You can see their approach here: Angular AI/LLM Guidance
These are kind of "blessed" instruction files that are periodically maintained and updated by the team.
Adopting a similar strategy would be good for the Next.js community
Proposal
I propose that the Next.js team create and maintain a set of official guidance files for LLMs. This could be a community-driven effort managed by Vercel and core contributors.
nextjs-best-practices.md
file. This document would be the single source of truth for AI guidance, covering topics like:next/link
andnext/image
.nextjs-best-practices.md
file, create ready-to-use instruction files for major platforms:.github/copilot-instructions.md
for GitHub Copilot in VS Code.guidelines.md
for JetBrains IDEs.Beta Was this translation helpful? Give feedback.
All reactions