Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

next-best-practices

Skill by socius-org

Next.js best practices is a skill that guides an AI assistant when it writes or reviews Next.js code. It covers file conventions, React Server Component boundaries, data patterns, async APIs and more.

  • Score 87
  • 100 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install next-best-practices

Built from the published package, never by AI.

git clone --depth 1 https://github.com/socius-org/RedditHarbor /tmp/RedditHarbor && mkdir -p ~/.claude/skills && cp -r /tmp/RedditHarbor/app/.agents/skills/next-best-practices ~/.claude/skills/next-best-practices

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install next-best-practices in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant a set of Next.js best practice rules to apply when writing or reviewing code. The main file is a SKILL.md that points to separate reference files for each topic. The topics include project structure and special files, route segments, RSC boundaries, async params and cookies, runtime selection, directives, error handling, route handlers, metadata and OG images, next/image, next/font, bundling, next/script, hydration errors, Suspense boundaries, parallel routes, self-hosting and debugging.

The skill is written for developers who build or review Next.js applications. It is marked as not user-invocable, so the assistant applies these rules as context while it works on Next.js code. The source describes the rules at a high level and mentions Next.js 15 async API changes and the v16 middleware rename.

Written from the project's SKILL.md and checked against it.

What it can do

  • File conventionsCovers project structure, special files, route segments, parallel and intercepting routes, and the v16 middleware rename.
  • RSC boundariesDetects invalid React Server Component patterns such as async client components and non-serializable props.
  • Async patternsExplains async params, searchParams, cookies and headers in Next.js 15 and later, with a migration codemod.
  • Data patternsCompares Server Components, Server Actions and Route Handlers, and covers avoiding data waterfalls.
  • Error handlingCovers error.tsx, not-found.tsx, redirect, notFound, forbidden, unauthorized and unstable_rethrow.
  • Metadata and OG imagesCovers static and dynamic metadata, generateMetadata, OG image generation with next/og and file-based metadata.
  • Image and font optimizationCovers next/image usage, remote images, sizes, blur placeholders, next/font setup and preloading subsets.
  • Hydration and SuspenseCovers common hydration error causes and which hooks need Suspense boundaries.
  • Self-hosting and debuggingCovers output standalone for Docker, cache handlers, the MCP debug endpoint and --debug-build-paths.

Try asking

  • Review this Next.js page for invalid React Server Component patterns
  • Check my route handler and suggest when to use a Server Action instead
  • Fix the async params and searchParams usage in this Next.js 15 page

Good to know

  • Marked as not user-invocable, so it is applied as guidance rather than run directly.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: app/.agents/skills/next-best-practices/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB
  • async-patterns.md2 KB
  • bundling.md5 KB
  • data-patterns.md7 KB
  • debug-tricks.md3 KB
Show all 20 files
  • directives.md1 KB
  • error-handling.md5 KB
  • file-conventions.md4 KB
  • font.md5 KB
  • functions.md6 KB
  • hydration-error.md2 KB
  • image.md4 KB
  • metadata.md7 KB
  • parallel-routes.md7 KB
  • route-handlers.md3 KB
  • rsc-boundaries.md5 KB
  • runtime-selection.md986 B
  • scripts.md4 KB
  • self-hosting.md9 KB
  • suspense-boundaries.md1 KB

Alternatives to next-best-practices

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

next-best-practices: common questions

What does the Next.js best practices skill do?

It gives an AI assistant Next.js rules to follow when writing or reviewing code. The rules cover topics such as file conventions, RSC boundaries, data patterns and metadata.

Does it cover Next.js 15 and 16?

The source mentions Next.js 15 async API changes and the middleware rename in v16. It does not list every version-specific change.

How is the skill organized?

The SKILL.md file links to separate reference files for each topic, such as error handling, image optimization and bundling.

How do I install next-best-practices?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is next-best-practices free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is next-best-practices safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to next-best-practices?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

next-best-practices Install

Add to stack

Loading.