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

nextjs

Skill by openai

Next.js App Router guidance for building, debugging, and architecting Next.js apps. It is for developers who use routing, Server Components, Server Actions, and Vercel deployment.

  • Score 86
  • 8.4k stars
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install nextjs

Built from the published package, never by AI.

git clone --depth 1 https://github.com/openai/plugins /tmp/plugins && mkdir -p ~/.claude/skills && cp -r /tmp/plugins/plugins/vercel/skills/nextjs ~/.claude/skills/nextjs

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

Step-by-step: install nextjs 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 best-practice rules for writing and reviewing Next.js code. It is built around the App Router and points to reference files for each area. The reference files cover project structure and special files, route segments, RSC boundaries, async params and cookies, directives, data fetching, error handling, metadata, image and font optimization, bundling, scripts, hydration errors, and self-hosting.

The skill is written for developers building, debugging, or designing Next.js applications. It applies when a prompt or project mentions Next.js, the App Router, Server Components, or Server Actions. It also activates on Next.js file paths such as next.config files and app directories, and on Next.js CLI commands.

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

What it can do

  • File conventionsExplains project structure, special files, dynamic and catch-all routes, and route groups.
  • RSC boundariesDetects invalid React Server Component patterns such as async client components.
  • Async patternsCovers async params, searchParams, cookies(), and headers() from Next.js 15 onward.
  • DirectivesExplains 'use client', 'use server', and 'use cache' usage.
  • Data patternsCompares Server Components, Server Actions, and Route Handlers, and how to avoid waterfalls.
  • Error handlingCovers error.tsx, not-found.tsx, redirect, notFound, and unstable_rethrow.
  • Metadata and OG imagesCovers static and dynamic metadata, generateMetadata, and OG images with next/og.
  • Image and font optimizationGuides use of next/image and next/font, including sizes, blur placeholders, and Tailwind setup.
  • Hydration errorsLists common causes such as browser APIs and dates, with fixes for each.
  • Self-hostingCovers output standalone for Docker and cache handlers for multi-instance ISR.

Try asking

  • Review my Next.js layout for invalid Server Component patterns
  • Help me fix a hydration error caused by a date in my page
  • Set up OG image metadata for a dynamic Next.js route

Good to know

  • Guidance is based on the App Router and Next.js 15 or later async APIs.
  • Middleware is renamed to proxy in Next.js v16, per the source.

Security check

A

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

Checked automatically: plugins/vercel/skills/nextjs/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB
  • agents/openai.yaml95 B
  • references/app-router-files.md3 KB
  • references/async-patterns.md2 KB
  • references/bundling.md4 KB
Show all 22 files
  • references/data-patterns.md7 KB
  • references/debug-tricks.md3 KB
  • references/directives.md1 KB
  • references/error-handling.md5 KB
  • references/file-conventions.md3 KB
  • references/font.md5 KB
  • references/functions.md4 KB
  • references/hydration-error.md2 KB
  • references/image.md4 KB
  • references/metadata.md7 KB
  • references/parallel-routes.md7 KB
  • references/route-handlers.md3 KB
  • references/rsc-boundaries.md4 KB
  • references/runtime-selection.md985 B
  • references/scripts.md3 KB
  • references/self-hosting.md8 KB
  • references/suspense-boundaries.md1 KB

Alternatives to nextjs

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

nextjs: common questions

What Next.js topics does this skill cover?

It covers routing, Server Components, Server Actions, Cache Components, layouts, middleware and proxy, data fetching, rendering, and Vercel deployment. Each topic links to a reference file.

Does this skill support the Pages Router?

The description targets the App Router. The prompt signals also mention the Pages Router and getServerSideProps, so it may be triggered by those terms.

When does the assistant use this skill?

The source says it applies when building, debugging, or architecting Next.js apps. It also triggers on Next.js file paths and CLI commands such as next dev and next build.

How do I install nextjs?

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

Is nextjs free?

The code is public, but no licence file was found, so check the repository before commercial use.

Is nextjs safe to use?

It scores 86 of 100. Grades: maintenance A, licence F, quality A. 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 nextjs?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

nextjs Install

Add to stack

Loading.