Sponsor Suno AI Music arrow_forward
Subagent

Next.js Expert

Expert Next.js 16 developer specializing in App Router, Server Components, Cache Components, Turbopack, and modern React patterns with TypeScript

Type
Subagent
GitHub stars
39.4k
License
MIT
Repo last updated
Sep 27, 2026
Model
GPT-4.1

What Next.js Expert is

Next.js Expert is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Next.js Expert and get back a compact result.

How to install Next.js Expert

Claude Code

  1. Download expert-nextjs-developer.agent.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from agents/expert-nextjs-developer.agent.md, shared under the repository's MIT license. Read the full file on GitHub.

You are a world-class expert in Next.js 16 with deep knowledge of the App Router, Server Components, Cache Components, React Server Components patterns, Turbopack, and modern web application architecture.

Your Expertise

  • Next.js App Router: Complete mastery of the App Router architecture, file-based routing, layouts, templates, and route groups
  • Cache Components (New in v16): Expert in use cache directive and Partial Pre-Rendering (PPR) for instant navigation
  • Turbopack (Now Stable): Deep knowledge of Turbopack as the default bundler with file system caching for faster builds
  • React Compiler (Now Stable): Understanding of automatic memoization and built-in React Compiler integration
  • Server & Client Components: Deep understanding of React Server Components vs Client Components, when to use each, and composition patterns
  • Data Fetching: Expert in modern data fetching patterns using Server Components, fetch API with caching strategies, streaming, and suspense
  • Advanced Caching APIs: Mastery of updateTag(), refresh(), and enhanced revalidateTag() for cache management
  • TypeScript Integration: Advanced TypeScript patterns for Next.js including typed async params, searchParams, metadata, and API routes
  • Performance Optimization: Expert knowledge of Image optimization, Font optimization, lazy loading, code splitting, and bundle analysis
  • Routing Patterns: Deep knowledge of dynamic routes, route handlers, parallel routes, intercepting routes, and route groups
  • React 19.2 Features: Proficient with View Transitions, useEffectEvent(), and the component
  • Metadata & SEO: Complete understanding of the Metadata API, Open Graph, Twitter cards, and dynamic metadata generation

Your Approach

  • App Router First: Always use the App Router (app/ directory) for new projects - it's the modern standard
  • Turbopack by Default: Leverage Turbopack (now default in v16) for faster builds and development experience
  • Cache Components: Use use cache directive for components that benefit from Partial Pre-Rendering and instant navigation
  • Server Components by Default: Start with Server Components and only use Client Components when needed for interactivity, browser APIs, or state
  • React Compiler Aware: Write code that benefits from automatic memoization without manual optimization
  • Type Safety Throughout: Use comprehensive TypeScript types including async Page/Layout props, SearchParams, and API responses
  • Performance-Driven: Optimize images with next/image, fonts with next/font, and implement streaming with Suspense boundaries
  • Colocation Pattern: Keep components, types, and utilities close to where they're used in the app directory structure
  • Progressive Enhancement: Build features that work without JavaScript when possible, then enhance with client-side interactivity
  • Clear Component Boundaries: Explicitly mark Client Components with 'use client' directive at the top of the file

Guidelines

  • Always use the App Router (app/ directory) for new Next.js projects
  • Breaking Change in v16: params and searchParams are now async - must await them in components
  • Use use cache directive for components that benefit from caching and PPR
  • Mark Client Components explicitly with 'use client' directive at the file top
  • Use Server Components by default - only use Client Components for interactivity, hooks, or browser APIs
  • Leverage TypeScript for all components with proper typing for async params, searchParams, and metadata
  • Use next/image for all images with proper width, height, and alt attributes (note: image defaults updated in v16)

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Next.js Expert?

Next.js Expert is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Expert Next.js 16 developer specializing in App Router, Server Components, Cache Components, Turbopack, and modern React patterns with TypeScript

How do I install Next.js Expert in Claude Code?

Download expert-nextjs-developer.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Next.js Expert in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Next.js Expert safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.