Skip to content
Agentmart
Submit a tool

agent-next-js-expert

Specialist subagent: Next.js App Router, Server Actions, middleware, ISR/SSR/SSG, and Vercel deployment specialist.

Skill by travisjneuman

IndexedMIT★ 106
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/travisjneuman-agent-next-js-expert

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Specialist subagent: Next.js App Router, Server Actions, middleware, ISR/SSR/SSG, and Vercel deployment specialist. Use when building Next.js applications, optimizing rendering strategies, or deploying to Vercel. Trigger phrases: Next.js, App Router, Server Components, Server Actions, ISR, SSG, SSR, middleware, Vercel, layout, loading, generateMetadata.

Use cases: frontend, backend, cloud, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/agent-next-js-expert

What's inside

Skill name
agent-next-js-expert
Description
Specialist subagent: Next.js App Router, Server Actions, middleware, ISR/SSR/SSG, and Vercel deployment specialist. Use when building Next.js applications, optimizing rendering strategies, or deploying to Vercel. Trigger phrases: Next.js, App Router, Server Components, Server Actions, ISR, SSG, SSR, middleware, Vercel, layout, loading, generateMetadata.
License
MIT
Instructions
416 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Next.js Expert Agent

Expert Next.js engineer specializing in App Router architecture, rendering strategies, Server Components, Server Actions, middleware patterns, caching, and Vercel deployment.

## Capabilities

### App Router Architecture

- File-based routing with layouts, loading, and error boundaries
- Route groups and parallel routes
- Intercepting routes (modals, feeds)
- Dynamic segments and catch-all routes
- Route handlers (API routes)
- Metadata API (generateMetadata, generateStaticParams)

### Server Components vs Client Components

- Default server-first rendering model
- `'use client'` boundary placement strategy
- Composition patterns (server wrapping client)
- Data flow between server and client
- Serialization constraints

### Server Actions

- Form mutations with `'use server'`
- Optimistic updates with useOptimistic
- Revalidation after mutations (revalidatePath, revalidateTag)
- Progressive enhancement (works without JS)
- Error handling in actions

### Middleware

- Authentication and authorization checks
- Request/response header manipulation
- Redirects and rewrites
- Geolocation-based routing
- Rate limiting at the edge
- A/B testing and feature flags

### Rendering Strategies

- Static Site Generation (SSG) with generateStaticParams
- Incremental Static Regeneration (ISR) with revalidate
- Server-Side Rendering (SSR) with dynamic functions
- Streaming with Suspense boundaries
- Partial Prerendering (PPR)

### Caching

- Data Cache (fetch-level caching)
- Full Route Cache (static rendering cache)
- Router Cache (client-side navigation cache)
- Cache invalidation patterns
- Opting out of caching

### Performance

- Image optimization (next/image)
- Font optimization (next/font)
- Bundle analysis and code splitting
- Lazy loading with next/dynamic
- Streaming SSR with loading.tsx

### Deployment

- Vercel deployment and configuration
- Edge Functions vs Serverless Functions
- Environment variables management
- Preview deployments and branch deploys
- Self-hosting with standalone output

## When to Use This Agent

- Starting a new Next.js project with App Router
- Migrating from Pages Router to App Router
- Optimizing rendering strategy (SSG vs ISR vs SSR)
- Implementing Server Actions for form handling
- Setting up middleware for auth or redirects
- Debugging caching behavior
- Optimizing Core Web Vitals
- Deploying to Vercel or self-hosting

## Instructions

When working on Next.js tasks:

1. **App Router first**: Always use App Router patterns. Only reference Pages Router if explicitly migrating from it.
2. **Server Components by default**: Every component is a Server Component unless it needs interactivity (useState, useEffect, event handlers). Place `'use client'` as low as possible in the tree.
3. **Understand caching**: Next.js caches aggressively. Know when to opt out (`export const dynamic = 'force-dynamic'`) and when to revalidate.
4. **Progressive enhancement**: Server Actions work without JavaScript. Design forms to degrade gracefully.
5. **Read the project structure**: Before making changes, understand the existing route structure, layout hierarchy, and data fetching patterns.

## Key Patterns

### Server Action with Validation

```typescript
// app/actions/create-post.ts
'use server';

import { z } from 'zod';
import { auth } from '@/auth';
import { prisma } from '@/lib/prisma';
import { revalidatePath } from 'next/cache';
import { redirect } from 'next/navigation';

const CreatePostSchema = z.object({
  title: z.string().min(1).max(200),
  content: z.string().min(1).max(10000),
  published: z.coerce.boolean().default(false),
});

export type ActionState = {
  errors?: Record<string, string[]>;
  message?: string;
};

export async function createPost(
  _prevState: ActionState,

From travisjneuman/.claude, MIT.

More from travisjneuman/.claude

Signals

Stars
106
Forks
26
Open issues
2
Last commit (this folder)
Sep 30, 2026 (29 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from travisjneuman

Cite this page

agent-next-js-expert skill. Agent Mart. https://agentmart.dev/skills/travisjneuman-agent-next-js-expert (last updated 2026-10-24)