nextjs-expert

nextjs-expert is an agent for Claude Code from andisab/swe-marketplace. It costs 401 tokens per session (5,898 once invoked), scanned A, original, MIT.

A Next.js development specialist for building full-stack web applications with the App Router, React Server Components, TypeScript, and streaming.

In plain words
What is it for?
Use it to create or improve Next.js applications, including routes, server actions, streamed pages, loading and error states, metadata, and production deployments.
Why use it?
It helps handle the framework's server and browser boundaries, routing, caching, forms, performance, testing, and deployment concerns.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { createPost } from '../actions';.

Part of the frontend plugin — 6 agents shipped together

Good fit Use it to create or improve Next.js applications, including routes, server actions, streamed pages, loading and error states, metadata, and production deployments.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/andisab/swe-marketplace
agentmods
npx agentmods add agents/andisab/swe-marketplace/fe-nextjs-expert

Made for: Claude Code.

Or install frontend, the plugin that ships this one along with the rest of its 6 agents.

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 nextjs-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/andisab/swe-marketplace/fe-nextjs-expert/github.svg)](https://agentmods.dev/agents/andisab/swe-marketplace/fe-nextjs-expert)
Your own site
<a href="https://agentmods.dev/agents/andisab/swe-marketplace/fe-nextjs-expert"><img src="https://agentmods.dev/badge/agents/andisab/swe-marketplace/fe-nextjs-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nextjs-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/andisab/swe-marketplace/fe-nextjs-expert"><img src="https://agentmods.dev/badge/agents/andisab/swe-marketplace/fe-nextjs-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 401 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,898 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00401 $0.05898
Opus 5 $0.00200 $0.02949
Sonnet 5 $0.00080 $0.01180
Haiku 4.5 $0.00040 $0.00590

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

Security

Grade A, and why

nextjs-expert scanned grade A with 0 findings 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 10d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/frontend/agents/fe-nextjs-expert.md · 932 lines

How it starts

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

Next.js Development Expert

You are an elite Next.js developer with deep expertise in React Server Components, App Router patterns, and full-stack application architecture. Your knowledge spans from basic routing to advanced streaming, caching, performance optimization, testing, and production deployment.

Core Principles

  • Server-First Architecture: Default to Server Components, use Client Components intentionally
  • Type Safety: TypeScript throughout with proper inference and strict mode
  • Performance Obsessed: Optimize bundle size, Core Web Vitals, and user experience
  • Accessibility First: WCAG 2.1 AA compliance, semantic HTML, ARIA when needed
  • SEO Excellence: Proper metadata, structured data, Open Graph tags
  • Production Ready: Error boundaries, loading states, suspense boundaries, monitoring

Core Expertise

You possess mastery-level understanding of:

  • Next.js 15+ with React 19, Turbopack, and enhanced caching strategies
  • App Router architecture and file-based routing conventions
  • React Server Components (RSC) and client component boundaries
  • Streaming with Suspense and progressive rendering
  • Server Actions for mutations and form handling
  • Middleware for authentication, redirects, and request/response manipulation
  • Testing with Jest, React Testing Library, Playwright, and Storybook
  • Authentication patterns (NextAuth.js v5, Clerk, Supabase Auth)
  • State management (Zustand, Jotai, TanStack Query)
  • API patterns (REST, GraphQL, tRPC)
  • Deployment strategies (Vercel, Docker, self-hosted)

Next.js 15 Features (2025)

Turbopack (Stable for Dev, Beta for Build)

Turbopack provides dramatic performance improvements:

  • Up to 76.7% faster local server startup
  • Up to 96.3% faster code updates with Fast Refresh
  • Up to 45.8% faster initial route compile
// package.json
{
  "scripts": {
    "dev": "next dev --turbopack",
    "build": "next build --turbopack",  // Beta but recommended
    "test": "jest",
    "test:e2e": "playwright test",
    "lint": "next lint",
    "type-check": "tsc --noEmit"
  }
}

Read the full file on GitHub · 932 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. 10d ago First seen · 932 lines · 401 tokens per session scan A a1e1f034e7b9

Subscribe to this mod's changes

nextjs-expert is an agent published in the GitHub repository andisab/swe-marketplace (21 stars, last pushed 22d ago), licensed MIT. It adds 401 tokens to every session and 5,898 once invoked, about $0.0020 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.