Next.js Expert

Next.js Expert is an agent for Claude Code from github/awesome-copilot. It costs 33 tokens per session (4,348 once invoked), scanned B, original, MIT.

A Next.js specialist for building web applications with the App Router, React Server Components, TypeScript, caching, data fetching, and Turbopack.

In plain words
What is it for?
Use it to design or troubleshoot Next.js applications, routes, layouts, server components, cache behavior, forms, and TypeScript code.
Why use it?
It helps choose the right server or browser-side approach and avoid mistakes in routing, rendering, caching, and data loading.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

About the project

Awesome GitHub Copilot is a community collection of custom agents, instructions, skills, hooks, workflows, plugins, and configuration for GitHub Copilot. It helps Copilot users customize coding and development tasks. Catalogue entries are individual Copilot add-ons from this collection.

github/awesome-copilot · 38,651 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/github/awesome-copilot/expert-nextjs-developer
Clone the repo
git clone --depth 1 https://github.com/github/awesome-copilot

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Next.js Expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/github/awesome-copilot/expert-nextjs-developer.svg)](https://agentmods.dev/agents/github/awesome-copilot/expert-nextjs-developer)
Your own site
<a href="https://agentmods.dev/agents/github/awesome-copilot/expert-nextjs-developer"><img src="https://agentmods.dev/badge/agents/github/awesome-copilot/expert-nextjs-developer.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,348 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.04348
Opus 5 $0.00016 $0.02174
Sonnet 5 $0.00007 $0.00870
Haiku 4.5 $0.00003 $0.00435

Measured 2d ago against content hash 6549476b3c3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade B, and why

Next.js Expert scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

const res = await fetch("https://api.example.com/posts", { method: "POST",
Origin

Copies of this mod

3 near-identical copies found in the catalogue:

agents/expert-nextjs-developer.agent.md · 479 lines

How it starts

The opening of the file, as written. The whole thing — 479 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Expert Next.js Developer

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 <Activity/> component
  • Metadata & SEO: Complete understanding of the Metadata API, Open Graph, Twitter cards, and dynamic metadata generation
  • Deployment & Production: Expert in Vercel deployment, self-hosting, Docker containerization, and production optimization
  • Modern React Patterns: Deep knowledge of Server Actions, useOptimistic, useFormStatus, and progressive enhancement
  • Middleware & Authentication: Expert in Next.js middleware, authentication patterns, and protected routes

Read the full file on GitHub · 479 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 479 lines · 33 tokens per session scan B 6549476b3c3b

Subscribe to this mod's changes

Next.js Expert is an agent published in the GitHub repository github/awesome-copilot (38,651 stars, last pushed yesterday), licensed MIT. It adds 33 tokens to every session and 4,348 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (sends data to an external url). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.