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 ollieb89
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/ollieb89-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 ollieb89/openrepo, MIT.
More from ollieb89/openrepo
- 0.409score
tailwind-v4-shadcn
ollieb89
Use when installing, configuring, or extending Tailwind CSS v4 with shadcn/ui — covers Turborepo monorepo shared-package architecture, CSS config format…
SkillDFreshness: DClaude Code +9 - 0.406score
shadcn-ui
ollieb89
Provides complete shadcn/ui component library patterns including installation, configuration, and implementation of accessible React components.
SkillDFreshness: DClaude Code +9 - 0.403score
route_directive
ollieb89
Analyzes incoming directives and intelligently routes them to appropriate domain PMs, generic L3 execution, or escalation.
SkillDFreshness: DClaude Code +9 - 0.403score
swarm_query
ollieb89
Read-only cross-project state aggregation for L1 visibility.
SkillDFreshness: DClaude Code +9 - 0.403score
coordinate_parallel
ollieb89
Coordinates execution across multiple domain PMs for cross-domain directives.
SkillDFreshness: DClaude Code +9 - 0.385score
brand-guidelines
ollieb89
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.
SkillDFreshness: DClaude Code +9 - 0.385score
finishing-a-development-branch
ollieb89
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting…
SkillDFreshness: DClaude Code +9 - 0.384score
dispatching-parallel-agents
ollieb89
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
SkillDFreshness: DClaude Code +9 - 0.384score
executing-plans
ollieb89
Use when you have a written implementation plan to execute in a separate session with review checkpoints
SkillDFreshness: DClaude Code +9 - 0.382score
brainstorming
ollieb89
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior.
SkillDFreshness: DClaude Code +9 - 0.214score
rss-skill
ollieb89
No description from the publisher yet.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Mar 5, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ollieb89/openrepo
- 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.332score
next-best-practices
jralvarenga
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization…
SkillCFreshness: C★ 23Claude 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.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 ollieb89
- 0.409score
tailwind-v4-shadcn
ollieb89
Use when installing, configuring, or extending Tailwind CSS v4 with shadcn/ui — covers Turborepo monorepo shared-package architecture, CSS config format…
SkillDFreshness: DClaude Code +9 - 0.406score
shadcn-ui
ollieb89
Provides complete shadcn/ui component library patterns including installation, configuration, and implementation of accessible React components.
SkillDFreshness: DClaude Code +9 - 0.403score
route_directive
ollieb89
Analyzes incoming directives and intelligently routes them to appropriate domain PMs, generic L3 execution, or escalation.
SkillDFreshness: DClaude Code +9 - 0.403score
swarm_query
ollieb89
Read-only cross-project state aggregation for L1 visibility.
SkillDFreshness: DClaude Code +9 - 0.403score
coordinate_parallel
ollieb89
Coordinates execution across multiple domain PMs for cross-domain directives.
SkillDFreshness: DClaude Code +9 - 0.385score
finishing-a-development-branch
ollieb89
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting…
SkillDFreshness: DClaude Code +9
Cite this page
next-best-practices skill. Agent Mart. https://agentmart.dev/skills/ollieb89-next-best-practices (last updated 2026-10-24)