next-best-practices
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization…
Skill by jralvarenga
Chalk Labs
Need help deploying next-best-practices?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jralvarenga-next-best-practices
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
next-best-practices- Description
- Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
- License
- MIT
- Instructions
- 149 lines in SKILL.md · view on GitHub
Files (20)
- SKILL.md
- async-patterns.md
- bundling.md
- data-patterns.md
- debug-tricks.md
- directives.md
- error-handling.md
- file-conventions.md
- font.md
- functions.md
- hydration-error.md
- image.md
- metadata.md
- parallel-routes.md
- route-handlers.md
- rsc-boundaries.md
- runtime-selection.md
- scripts.md
- self-hosting.md
- suspense-boundaries.md
SKILL.md (first lines)
# Next.js Best Practices Apply these rules when writing or reviewing Next.js code. ## File Conventions See [file-conventions.md](./file-conventions.md) for: - Project structure and special files - Route segments (dynamic, catch-all, groups) - Parallel and intercepting routes - Middleware rename in v16 (middleware → proxy) ## RSC Boundaries Detect invalid React Server Component patterns. See [rsc-boundaries.md](./rsc-boundaries.md) for: - Async client component detection (invalid) - Non-serializable props detection - Server Action exceptions ## Async Patterns Next.js 15+ async API changes. See [async-patterns.md](./async-patterns.md) for: - Async `params` and `searchParams` - Async `cookies()` and `headers()` - Migration codemod ## Runtime Selection See [runtime-selection.md](./runtime-selection.md) for: - Default to Node.js runtime - When Edge runtime is appropriate ## Directives See [directives.md](./directives.md) for: - `'use client'`, `'use server'` (React) - `'use cache'` (Next.js) ## Functions See [functions.md](./functions.md) for: - Navigation hooks: `useRouter`, `usePathname`, `useSearchParams`, `useParams` - Server functions: `cookies`, `headers`, `draftMode`, `after` - Generate functions: `generateStaticParams`, `generateMetadata` ## Error Handling See [error-handling.md](./error-handling.md) for: - `error.tsx`, `global-error.tsx`, `not-found.tsx` - `redirect`, `permanentRedirect`, `notFound` - `forbidden`, `unauthorized` (auth errors) - `unstable_rethrow` for catch blocks ## Data Patterns See [data-patterns.md](./data-patterns.md) for: - Server Components vs Server Actions vs Route Handlers - Avoiding data waterfalls (`Promise.all`, Suspense, preload) - Client component data fetching ## Route Handlers See [route-handlers.md](./route-handlers.md) for: - `route.ts` basics - GET handler conflicts with `page.tsx` - Environment behavior (no React DOM) - When to use vs Server Actions ## Metadata & OG Images See [metadata.md](./metadata.md) for: - Static and dynamic metadata - `generateMetadata` function - OG image generation with `next/og` - File-based metadata conventions ## Image Optimization See [image.md](./image.md) for: - Always use `next/image` over `<img>` - Remote images configuration - Responsive `sizes` attribute - Blur placeholders - Priority loading for LCP ## Font Optimization See [font.md](./font.md) for: - `next/font` setup - Google Fonts, local fonts - Tailwind CSS integration - Preloading subsets ## Bundling See [bundling.md](./bundling.md) for: - Server-incompatible packages - CSS imports (not link tags) - Polyfills (already included) - ESM/CommonJS issues - Bundle analysis ## Scripts See [scripts.md](./scripts.md) for: - `next/script` vs native script tags - Inline scripts need `id` - Loading strategies - Google Analytics with `@next/third-parties` ## Hydration Errors See [hydration-error.md](./hydration-error.md) for: - Common causes (browser APIs, dates, invalid HTML) - Debugging with error overlay
From jralvarenga/better-translate, MIT.
More from jralvarenga/better-translate
- 0.555score
elysiajs
jralvarenga
Create backend with ElysiaJS, a type-safe, high-performance framework.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
skills
jralvarenga
Package map and reading order for Better Translate product skills.
SkillCFreshness: C★ 23Claude Code +9 - 0.531score
frontend-design
jralvarenga
Create distinctive, production-grade frontend interfaces with high design quality.
SkillCFreshness: C★ 23Claude Code +9 - 0.386score
vercel-react-best-practices
vercel
React and Next.js performance optimization guidelines from Vercel Engineering.
SkillCFreshness: C★ 23Claude Code +9
Signals
- Stars
- 23
- Forks
- 0
- Open issues
- 23
- Last commit (this folder)
- Mar 14, 2026 (7 months ago)
- Last release
- Jun 6, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/jralvarenga/better-translate
- Website
- better-translate.com
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.693score
next-best-practices
pedronauck
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization…
SkillCFreshness: C★ 641Claude Code +9 - 0.407score
next-best-practices
yamcodes
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization…
SkillAFreshness: A★ 147Claude Code +9 - 0.296score
next-best-practices
dmvthrowers
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization…
SkillCFreshness: C★ 1Claude Code +9 - 0.295score
next-best-practices
cagdotin
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization…
SkillDFreshness: D★ 38Claude Code +9 - 0.293score
next-best-practices
WannaCry081
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization…
SkillCFreshness: C★ 1Claude Code +9 - 0.244score
next-best-practices
artivilla
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization…
SkillDFreshness: DClaude Code +9 - 0.244score
next-best-practices
ollieb89
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization…
SkillDFreshness: DClaude Code +9 - 0.241score
next-best-practices
tusosos
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization…
SkillDFreshness: DClaude Code +9 - 0.235score
next-best-practices
pvlppv
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization…
SkillDFreshness: DClaude Code +9
More from jralvarenga
- 0.555score
elysiajs
jralvarenga
Create backend with ElysiaJS, a type-safe, high-performance framework.
SkillCFreshness: C★ 23Claude Code +9 - 0.550score
skills
jralvarenga
Package map and reading order for Better Translate product skills.
SkillCFreshness: C★ 23Claude Code +9 - 0.531score
frontend-design
jralvarenga
Create distinctive, production-grade frontend interfaces with high design quality.
SkillCFreshness: C★ 23Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get next-best-practices running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
next-best-practices skill. Agent Mart. https://agentmart.dev/skills/jralvarenga-next-best-practices (last updated 2026-10-24)