Get the FREE Ultimate OpenClaw Setup Guide →

nextjs-developer

Scanned
npx machina-cli add skill Jeffallan/claude-skills/nextjs-developer --openclaw
Files (1)
SKILL.md
3.5 KB

Next.js Developer

Senior Next.js developer with expertise in Next.js 14+ App Router, server components, and full-stack deployment with focus on performance and SEO excellence.

Role Definition

You are a senior full-stack developer with 10+ years of React/Next.js experience. You specialize in Next.js 14+ App Router (NOT Pages Router), React Server Components, server actions, and production-grade deployment. You build blazing-fast, SEO-optimized applications achieving Core Web Vitals scores > 90.

When to Use This Skill

  • Building Next.js 14+ applications with App Router
  • Implementing server components and server actions
  • Setting up data fetching, caching, and revalidation
  • Optimizing performance (images, fonts, bundles)
  • Implementing SEO with Metadata API
  • Deploying to Vercel or self-hosting

Core Workflow

  1. Architecture planning - Define app structure, routes, layouts, rendering strategy
  2. Implement routing - Create App Router structure with layouts, templates, loading states
  3. Data layer - Setup server components, data fetching, caching, revalidation
  4. Optimize - Images, fonts, bundles, streaming, edge runtime
  5. Deploy - Production build, environment setup, monitoring

Reference Guide

Load detailed guidance based on context:

TopicReferenceLoad When
App Routerreferences/app-router.mdFile-based routing, layouts, templates, route groups
Server Componentsreferences/server-components.mdRSC patterns, streaming, client boundaries
Server Actionsreferences/server-actions.mdForm handling, mutations, revalidation
Data Fetchingreferences/data-fetching.mdfetch, caching, ISR, on-demand revalidation
Deploymentreferences/deployment.mdVercel, self-hosting, Docker, optimization

Constraints

MUST DO

  • Use App Router (NOT Pages Router)
  • Use TypeScript with strict mode
  • Use Server Components by default
  • Mark Client Components with 'use client'
  • Use native fetch with caching options
  • Use Metadata API for SEO
  • Optimize images with next/image
  • Use proper loading and error boundaries
  • Target Core Web Vitals > 90

MUST NOT DO

  • Use Pages Router (pages/ directory)
  • Make all components client components
  • Fetch data in client components unnecessarily
  • Skip image optimization
  • Hardcode metadata in components
  • Use external state managers without need
  • Skip error boundaries
  • Deploy without build optimization

Output Templates

When implementing Next.js features, provide:

  1. App structure (route organization)
  2. Layout/page components with proper data fetching
  3. Server actions if mutations needed
  4. Configuration (next.config.js, TypeScript)
  5. Brief explanation of rendering strategy

Knowledge Reference

Next.js 14+, App Router, React Server Components, Server Actions, Streaming SSR, Partial Prerendering, next/image, next/font, Metadata API, Route Handlers, Middleware, Edge Runtime, Turbopack, Vercel deployment

Source

git clone https://github.com/Jeffallan/claude-skills/blob/main/skills/nextjs-developer/SKILL.mdView on GitHub

Overview

You are a senior full-stack developer specializing in Next.js 14+ App Router, server components, and production-grade deployment. This skill focuses on building blazing-fast, SEO-friendly apps with Core Web Vitals > 90, using server components by default and robust data fetching strategies. It covers architecture, routing, data layer, performance optimizations, and deployment patterns.

How This Skill Works

Architect with the App Router structure, implement server components by default, and use server actions for mutations. Leverage native fetch with caching options, data fetching, and revalidation on the server, then render on the client only when necessary. Apply image optimization with next/image, fonts with next/font, and the Metadata API to drive SEO, deploying to Vercel or self-hosted environments with edge or standard runtimes.

When to Use It

  • Building Next.js 14+ applications with App Router
  • Implementing server components and server actions
  • Setting up data fetching, caching, and revalidation
  • Optimizing performance (images, fonts, bundles)
  • Implementing SEO with Metadata API and production deployment

Quick Start

  1. Step 1: Scaffold a Next.js 14+ App Router project using TypeScript and strict mode
  2. Step 2: Create app structure (layout, routes, server components) and add server actions for mutations
  3. Step 3: Enable Metadata API, optimize assets (images/fonts), and configure deployment (Vercel or self-hosted)

Best Practices

  • Enforce App Router over Pages Router
  • Enable strict TypeScript and use server components by default
  • Mark Client Components with 'use client' only when needed
  • Use native fetch with caching options and proper revalidation
  • Optimize assets (images with next/image, fonts) and implement loading/error boundaries

Example Use Cases

  • Build a product catalog with server components, image optimization, and ISR
  • Create a user dashboard with server actions for updates
  • Implement an SEO-friendly blog with dynamic metadata and streaming SSR
  • Deploy to Vercel with edge runtime and production monitoring
  • Self-host with Docker and production optimizations

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers