react-nextjs-patterns

Implement React and Next.js patterns for server and client components.

5|Updated Nov 18, 2025
One-click install
npx skills add https://github.com/duyet/duyetbot-agent --skill react-nextjs-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-nextjs-patterns
Source: https://github.com/duyet/duyetbot-agent/tree/main/apps/duyetbot-action/.claude/skills/react-nextjs-patterns
Command: npx skills add https://github.com/duyet/duyetbot-agent --skill react-nextjs-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the challenge of implementing performant and maintainable React and Next.js patterns.

Core Features & Use Cases

  • Server vs Client Components guidance and data fetching strategies for Next.js apps
  • App Router, Suspense, and streaming patterns to optimize UX and performance
  • Component decomposition and state-management patterns for scalable frontends

Quick Start

Use the react-nextjs-patterns skill to implement server components by default in a Next.js app and apply client components where interactivity is required.

Frequently Asked Questions about react-nextjs-patterns

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

FAQPage Schema
How do I structure server and client components in Next.js App Router?

Use server components by default in Next.js App Router pages for data fetching, applying client components only where user interactivity is required. This decomposition optimizes frontend performance and maintainability.

What is the best way to handle data fetching in Next.js server components?

Fetch data directly inside Next.js server components to leverage the App Router's streaming capabilities. This approach pairs with Suspense boundaries to progressively stream UI and improve perceived load performance.

How does Suspense work with React server components for streaming UI?

Suspense wraps asynchronous server components to stream HTML progressively. This pattern allows the Next.js App Router to send ready UI chunks immediately, improving performance while data fetching resolves in the background.

When should I use memoization and state management in React server components?

Apply memoization and state management patterns when decomposing scalable frontends. These patterns optimize re-renders for client components, keeping server components stateless while maintaining performance.

Can I use these Next.js patterns to improve app router performance without external state libraries?

Yes, the patterns focus on component decomposition, Suspense, and server-side data fetching strategies. These App Router techniques improve performance and maintainability natively without requiring external state libraries.