nextjs-quality
Skill4 starsChanged 5 months agoMITView on GitHub
Next.js 16 App Router best practices for this repo. Use when creating routes, layouts, data fetching, metadata, or anything touching the Next.js framework surface.
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Paldom/node-skillstheir own version, first seen Sep 10, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Paldom/node-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- clean-codeSkill
- evaluateSkill
- impeccable-intentSkill
- security-best-practicesSkill
- ui-ux-pro-maxSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 14
Server Components by default: Add "use client" only when the component needs state, effects, event handlers, or browser APIs — and push …
- Very specific: line 19
Fetch data on the server: Prefer async Server Components and route handlers over client-side useEffect fetching.
- Very specific: line 29
Use the special files for their purpose: layout.tsx (persistent shell), loading.tsx (Suspense fallback), error.tsx (error boundary, must be …
- Very specific: line 55
After framework-level changes, run npm run build — it type-checks generated route types and catches invalid segment configs that dev mode …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Next.js Quality
This repo runs Next.js 16 — newer than most training data. When in doubt about an
API, read the bundled docs in node_modules/next/dist/docs/ instead of guessing from
memory. Heed deprecation notices.
Golden rules
- Server Components by default. Add
"use client"only when the component needs state, effects, event handlers, or browser APIs — and push that directive as deep into the tree as possible (leaf components, not layouts). next lintdoes not exist in Next 16. Linting is the plaineslintCLI (npm run lint). Never addnext lintto scripts or docs.- Fetch data on the server. Prefer
asyncServer Components and route handlers over client-sideuseEffectfetching. Cache deliberately — know whether each fetch is static, revalidated, or dynamic. - Never leak server code to the client. Secrets, DB clients, and privileged logic stay
in Server Components, server actions, or
route.tshandlers.
Routing conventions
- New route =
src/app/<segment>/page.tsx. Route-specific components live next to the route; shared components go insrc/components/. - Use the special files for their purpose:
layout.tsx(persistent shell),loading.tsx(Suspense fallback),error.tsx(error boundary, must be a client component),not-found.tsx. - Dynamic params and
searchParamsare async in Next 16 —awaitthem:const { slug } = await params. - Navigation uses
next/link; programmatic navigation usesuseRouterfromnext/navigation(nevernext/router).
Framework features over hand-rolling
- Images:
next/image(automatic sizing/optimization) — never bare<img>. - Fonts:
next/font(already configured with Geist in the root layout). - Metadata: export
metadataorgenerateMetadatafrom pages/layouts — never manual<head>tags. - Env vars: server-side via
process.env.X; browser-visible only withNEXT_PUBLIC_prefix. Document new variables in.env.example.
Legacy patterns — never introduce
pages/directory,getServerSideProps,getStaticProps,getInitialPropsnext/head,next/routeruseEffect+fetchfor data that could be fetched on the server- API routes under
pages/api/(usesrc/app/**/route.ts)
Verify
After framework-level changes, run npm run build — it type-checks generated route types
and catches invalid segment configs that dev mode tolerates.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

