nextjs Cursor ruleA
nextjs from thedaviddias/llms-txt-hub is a Cursor rule: instructions the Cursor agent follows in that repo.
mdr add thedaviddias/llms-txt-hub/.cursor/rules/nextjs.mdc@git:20250301.62fad3cPins git:20250301.62fad3c in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- Cursor rule
- Repository
- thedaviddias/llms-txt-hub
- Path
.cursor/rules/nextjs.mdc- Versions recorded
- 2
- Latest version
- git:20250301.62fad3c, committed Mar 1, 2025
- First version recorded
- Feb 24, 2025
- Size
- 716 bytes
- Repository stars
- 914
- License
- a license file GitHub does not identify
Best Practices for Next.js with App Router.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
- Prioritize using server components (RSC) for performance, SEO, and data fetching - Use client components sparingly, only when interactivity is required - Take advantage of Next.js file-based routing system for simplicity - Centralize shared layouts in 'layout.tsx' for consistency across pages - Add 'loading.tsx' to handle loading states for better UX - Implement custom error pages with 'error.tsx' to handle errors gracefully - Use API route handlers to manage backend logic within the app structure - Optimize server-side rendering (SSR) and static site generation (SSG) for faster loading times
Read the whole file at its exact version.
How to install
mdr add thedaviddias/llms-txt-hub/.cursor/rules/nextjs.mdc@sha256:1d9f33278b963ee2The line at the top of this page pins the label git:20250301.62fad3c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_sdghn4friqmr2nlu)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Feb 24, 2025 and Mar 1, 2025, about one every 6 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20250301.62fad3c latest | 2025-03-01 | 62fad3c | 716 B | A | view · diff |
| git:20250224.001a864 | 2025-02-24 | 001a864 | 698 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (716 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
thedaviddias/llms-txt-hub · 914 stars · license a license file GitHub does not identify · pushed 2026-10-20 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_sdghn4friqmr2nlu GET https://markdownregistry.com/api/v1/resolve?ref=thedaviddias/llms-txt-hub/.cursor/rules/nextjs.mdc GET https://markdownregistry.com/api/v1/blob/1d9f33278b963ee2c2e4f059822ffa1a1957f7e2ab1771dc5df4fa846b0d2169
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: Cursor rules vs AGENTS.md · which agent file does what.
More from thedaviddias/llms-txt-hub
Every file in thedaviddias/llms-txt-hub