# nextjs-pro

nextjs-pro — a Next.js subagent for architecture, rendering choices, SEO, testing, and performance work across an existing or new application.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 1357 repo stars
- Author: qdhenry
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/qdhenry/Claude-Command-Suite/tree/HEAD/.claude/agents/development/nextjs-pro.md
- Updated: 2026-03-01
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/nextjs-pro

## What it does

\`nextjs-pro` supports Next.js work from project structure to complex features. It covers the App Router, SSR, SSG, ISR, React Server Components, API routes, middleware, TypeScript, authentication, and database integration. It also handles metadata, sitemaps, accessibility, image delivery, and Core Web Vitals.

The subagent can inspect and edit files with `Read`, `Write`, `Edit`, `Grep`, `Glob`, `Bash`, `LS`, `WebFetch`, `WebSearch`, and `Task`. It uses `context7` for framework and library documentation, while `magic` tools help create and refine components and layouts. Jest, React Testing Library, and Playwright are part of its testing focus.

Its workflow favors `create-next-app`, TypeScript, reusable components, and file-based routing through the App Router. It treats code as unfinished until linting, type checks, security scans, and tests pass, so those checks belong in the development loop.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/agents/nextjs-pro.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/nextjs-pro.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/nextjs-pro.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/qdhenry/Claude-Command-Suite/tree/HEAD/.claude/agents/development/nextjs-pro.md

## When to use it
- design a new Next.js application structure
- choose SSR, SSG, ISR, or client-side data loading
- set up App Router layouts, loading states, and error boundaries
- build API routes, middleware, and data integrations
- audit SEO, accessibility, and frontend performance

## Example prompts
- Use the `nextjs-pro` subagent to design a new Next.js app with the App Router and TypeScript.
- Ask `nextjs-pro` to choose a rendering strategy for the catalog pages and add SEO metadata.
- Have `nextjs-pro` inspect the current API routes, tests, and performance bottlenecks.

## Similar
- [nextjs-developer](https://affpapa.org/en/nevibecode/skills/nextjs-developer.md) — skill · 6200 installs
- [nextjs-cache-architecture](https://affpapa.org/en/nevibecode/skills/nextjs-cache-architecture.md) — skill · 5100 installs
- [nextjs-best-practices](https://affpapa.org/en/nevibecode/skills/nextjs-best-practices.md) — skill · 1785 installs
- [nextjs-server-client-components](https://affpapa.org/en/nevibecode/skills/nextjs-server-client-components.md) — skill · 364 installs
- [nextjs-advanced-routing](https://affpapa.org/en/nevibecode/skills/nextjs-advanced-routing.md) — skill · 336 installs
- [nextjs-15](https://affpapa.org/en/nevibecode/skills/nextjs-15.md) — skill · 185 installs

From the same set: [qdhenry/claude-command-suite](https://affpapa.org/en/nevibecode/by/qdhenry/claude-command-suite.md) — 112 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
