AgentSkillsCN

nextjs-app-router-patterns

为 Buzz Stack 的布局、路由、数据获取与客户端边界提供 Next.js App Router 模式。

SKILL.md
--- frontmatter
name: nextjs-app-router-patterns
description: Next.js App Router patterns for layouts, routing, data fetching, and client boundaries.
argument-hint: Ask for App Router structure or server vs client guidance.

Next.js App Router Patterns

Use this skill for App Router structure, component boundaries, and routing behavior.

Core Guidance

  • Default to server components; add 'use client' only when needed.
  • Use layout, loading, error, and not-found boundaries consistently.
  • Prefer fetch patterns that respect caching and data flow guidance.

References