Nextjs app router

From Asymmetric-al/core · View interactive version

Nextjs app router is an AI agent skill from the GitHub repository Asymmetric-al/core. Ensure correct Next.js App Router architecture, rendering strategy, and data fetching. Use whenever working under /app — routing, layouts, server/client component boundaries, data fetching, Suspense, and Server Actions. Defaults to Server Components and adds 'use client' only for interactivity. Not

How to use this skill

Skill file

Next.js App Router in Core

Core's apps (apps/admin, apps/donor, apps/missionary, apps/factory-console) use the App Router with cacheComponents: true and partialPrefetching: true. Read the installed docs under node_modules/next/dist/docs/ for API details; this skill covers the Core-specific decisions.

Rules

Checklist

Example

import { Suspense } from "react";

export default function Page() {
  return (
    <>
      <PageHeader />
      <Suspense fallback={<DonorListSkeleton />}>
        <DonorList />
      </Suspense>
    </>
  );
}

async function DonorList() {
  const donors = await listDonorsForCurrentUser(); // request-time read, streamed
  return <DonorTable donors={donors} />;
}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.