React Nextjs

Use when the user asks about Next.js, App Router, Server and Client Components, 'use client', Server Actions, layouts, loading.tsx/error.tsx, caching and revalidation, proxy/middleware or Next.js data fetching. Produces Next.js 15/16 App Router code and route structure. Not for render/caching internals or why a route is dynamic (use nextjs-internals).

45 stars 6 forksFrontend & Design

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add j4flmao/agent-skills --skill react-nextjs
Manual install
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/frontend/react/nextjs ~/.claude/skills/react-nextjs

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Next.js

## Purpose
Build Next.js apps with App Router. Server Components by default. 'use client' only when required. Data fetching in Server Components with async/await.

## Agent Protocol

### Trigger
Exact user phrases: "Next.js", "App Router", "Server Component", "Client Component", "Next.js structure", "SSR Next.js", "SSG Next.js", "Next.js data fetching", "use server", "use client".

### Input Context
Before activating, verify:
- next.config exists; check the Next.js major (15/16 make `params`, `searchParams`, `cookies()`, `headers()` async and stop caching `fetch` by default; 16 adds Cache Components and renames `middleware.ts` to `proxy.ts`).
- Whether the project uses Pages Router or App Router.

### Output Artifact
No file output. Produces page file structure and component code as text.

### Response Format
File structure:
```
app/
  layout.tsx
  page.tsx
  loading.tsx
  error.tsx
  users/[id]/page.tsx
```

Code: show component and data fetching. No import statements.

No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output.

### Completion Criteria
- [ ] Server Components used by default. 'use client' only when interactivity is needed.
- [ ] Data fetching in Server Components with async/await (no useEffect for data).
- [ ] Route groups, parallel routes, or intercepting routes used appropriately.
- [ ] loading.tsx, error.tsx, not-found.tsx present for each route segment.
- [ ] Metadata API used for SEO on every page.
Read the full skill on GitHub

Details

Skill name
react-nextjs
Path
skills/frontend/react/nextjs/SKILL.md
License
MIT
Repo updated
17 November 2026

FAQ

What does the React Nextjs skill do?

Use when the user asks about Next.js, App Router, Server and Client Components, 'use client', Server Actions, layouts, loading.tsx/error.tsx, caching and revalidation, proxy/middleware or Next.js data fetching. Produces Next.js 15/16 App Router code and route structure. Not for render/caching internals or why a route is dynamic (use nextjs-internals).

How do I install the React Nextjs skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add j4flmao/agent-skills --skill react-nextjs. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is React Nextjs popular?

It lives in j4flmao/agent-skills, which has 45 GitHub stars and 6 forks.

Related skills

Agent Observability

45

j4flmao/agent-skills

Use when the user asks about agent observability, tracing agent reasoning, debugging an agent loop, OpenTelemetry GenAI spans for LLM calls, LLM cost tracking per agent, agent audit logs or hallucination/eval monitoring in production. Produces instrumentation config, trace schema, dashboards, alerts and cost attribution. Not for generic service tracing without LLMs (use devops-opentelemetry).

DevOps & Cloud

AI Agent Architectures

45

j4flmao/agent-skills

Use when the user asks to build an AI agent, design an agent that calls tools and keeps memory, write an agent system prompt or pick an agent framework (Claude Agent SDK, OpenAI Agents SDK, LangGraph). Produces an architecture brief covering loop, tools, memory, guardrails and evals, routing depth to child skills. Not for workflow patterns (use ai-agentic-workflows).

AI, LLMs & Agents

AI Agent Core Loop

45

j4flmao/agent-skills

Use when the user asks about the agent loop, ReAct vs plan-and-solve, re-planning, Reflexion, an agent stuck in a loop, max iterations or termination conditions. Produces a loop spec or patch with state, success predicate, caps and no-progress detection. Not for overall agent design (use ai-agent-architectures) or tool schemas (use tool-calling-principles).

AI, LLMs & Agents

React Server Components

45

j4flmao/agent-skills

Use when the user asks about React Server Components, RSC, 'use client' / 'use server' boundaries, Server Functions (server actions), serializable props or the RSC payload in React 19. Produces boundary placement and data/mutation patterns that work in any RSC framework. Not for Next.js routing and caching specifics (use react-nextjs).

Frontend & Design

React Fiber Architecture

45

j4flmao/agent-skills

Use when the user asks about React Fiber, reconciliation, render vs commit phase, lanes, concurrent rendering, time slicing, the React scheduler or why a component rendered twice. Produces an explanation of reconciler internals to debug render behaviour. Not for app architecture (use react-architecture) or React Three Fiber (use web3d-webgl).

Frontend & Design

Stencil

45

j4flmao/agent-skills

Use when the user asks about Stencil, @stencil/core, @Component/@Prop/@State/@Event decorators, a web component compiler, framework output targets or a Stencil design system. Produces lazy-loaded, framework-agnostic Stencil components and build config. Not for Lit (use frontend-lit) or hand-written custom elements (use frontend-web-components).

Frontend & Design

Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.