nextjs

Build Next.js applications with App Router, Server Components, and API routes.

1|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/markus41/lobbi-design-system --skill nextjs-markus41
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs
Source: https://github.com/markus41/lobbi-design-system/tree/main/.claude/skills/nextjs
Command: npx skills add https://github.com/markus41/lobbi-design-system --skill nextjs-markus41

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires next, react, typescript.

What problem does it solve?

This Skill provides comprehensive capabilities for developing modern, performant React applications with server-side rendering, static site generation, and optimized data fetching using Next.js.

Core Features & Use Cases

  • App Router & Components: Structure applications with the App Router, leveraging Server and Client Components for optimal performance.
  • Data Fetching & Revalidation: Implement efficient data fetching strategies with caching, time-based, and on-demand revalidation.
  • Server Actions & API Routes: Handle form submissions and create API endpoints directly within your Next.js application.
  • Use Case: Create a Next.js application with an App Router, implement a Server Component to fetch data from a database, and a Server Action to handle form submissions, ensuring a fast and dynamic user experience.

Quick Start

Create a Next.js Server Component named 'AgentsList' that fetches and displays a list of agents.

Frequently Asked Questions about nextjs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build server-rendered React applications with Next.js?

Next.js enables server-side rendering through the App Router and Server Components, which fetch data on the server and send pre-rendered HTML to the client. This approach reduces JavaScript sent to browsers and improves initial page load performance while maintaining dynamic interactivity with Client Components where needed.

What's the difference between Server Components and Client Components in Next.js?

Server Components run only on the server, accessing databases and APIs securely without exposing credentials to browsers, while Client Components run in the browser and handle interactivity. Next.js automatically optimizes which components render where, reducing bundle size and improving security.

How do I handle form submissions and API requests in Next.js?

Next.js provides Server Actions for form handling directly within components and API routes for building endpoints. Server Actions execute on the server, securing sensitive logic and database operations, while API routes follow REST patterns for external clients or complex endpoint needs.

Can I use static site generation with dynamic content in Next.js?

Yes. Next.js combines SSG with revalidation strategies—time-based (ISR) regenerates pages at intervals, on-demand revalidation updates pages when data changes. This lets you pre-render high-traffic pages for speed while keeping dynamic content fresh without server requests per visitor.

Do I need TypeScript to use Next.js?

TypeScript is optional but recommended. Next.js has built-in TypeScript support with zero configuration, automatically detecting `.ts` and `.tsx` files. Using TypeScript catches type errors early, improves IDE autocompletion, and makes server and client code safer without extra build setup.

What file structure does Next.js require for routing and layouts?

The App Router uses a file-system based structure where folders represent routes and `page.tsx` files define route content. Special files like `layout.tsx` declare persistent UI, `loading.tsx` shows pending states, and `error.tsx` handles errors—creating a declarative, cohesive structure with nested layouts and error boundaries built in.