app-router

Next.js App Router - Server components, layouts, routing patterns

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "app-router" with this command: npx skills add pluginagentmarketplace/custom-plugin-nextjs/pluginagentmarketplace-custom-plugin-nextjs-app-router

App Router Skill

Overview

Master Next.js 14+ App Router with server components, layouts, and modern routing patterns.

Capabilities

  • Layouts: Root layout, nested layouts, templates
  • Server Components: Default server rendering
  • Client Components: Interactive with 'use client'
  • Route Groups: (folder) for organization
  • Parallel Routes: @slot for simultaneous rendering
  • Intercepting Routes: (.) notation patterns

Examples

// app/layout.tsx
export default function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="en">
      <body>{children}</body>
    </html>
  )
}

// app/dashboard/page.tsx
export default async function DashboardPage() {
  const data = await fetchData() // Server-side
  return <Dashboard data={data} />
}

Best Practices

  • Use server components by default
  • Add 'use client' only when needed
  • Leverage layouts for shared UI
  • Use loading.tsx for suspense

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

deployment

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

data-fetching

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

api-routes

No summary provided by upstream source.

Repository SourceNeeds Review