Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aiskillstore avatar

Next Js Patterns

  • 2 installs
  • 404 repo stars
  • Updated August 5, 2026
  • aiskillstore/marketplace

next-js-patterns is a Claude Code skill that documents Next.js 15 App Router conventions for pages, layouts, navigation, data fetching, fonts, and metadata.

About

next-js-patterns is a Claude Code skill documenting Next.js 15 App Router conventions and patterns. It covers page and layout locations, the client-versus-server component boundary, navigation with next/link and useRouter, data fetching in server and client components, next/font optimization, and metadata for SEO. A developer uses it to keep an agent aligned with a project's Next.js conventions while building UI.

  • Documents Next.js 15 App Router conventions: pages, layouts, client vs server components
  • Covers navigation with next/link and useRouter, data fetching, fonts, and metadata
  • A lightweight project-convention reference, not a scaffolder

Next Js Patterns by the numbers

  • 2 all-time installs (skills.sh)
  • Ranked #1,863 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

next-js-patterns capabilities & compatibility

Capabilities
frontend · app router setup · convention reference
Use cases
frontend
IDEs
vscode · cursor ide
Pricing
Free
From the docs

What next-js-patterns says it does

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.
SKILL.md
Use `"use client"` directive at the top for components requiring state (`useState`, `useEffect`) or browser APIs. otherwise default to Server Components.
SKILL.md
npx skills add https://github.com/aiskillstore/marketplace --skill next-js-patterns

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2
repo stars404
Last updatedAugust 5, 2026
Repositoryaiskillstore/marketplace

What it does

Follow Next.js 15 App Router conventions for pages, layouts, navigation, data fetching, and metadata.

Who is it for?

Developers who want an agent to follow consistent Next.js 15 App Router conventions

Skip if: Pages Router projects or non-Next.js React work

When should I use this skill?

writing Next.js App Router pages, layouts, navigation, or metadata

What you get

New Next.js pages and components follow the project's App Router conventions for components, navigation, and metadata.

By the numbers

  • 6 pattern sections (App Router, Navigation, Data Fetching, Fonts, Metadata)

Files

SKILL.mdMarkdownGitHub ↗

Next.js Patterns

App Router

We use the Next.js 15 App Router located in app/.

Pages

  • Location: app/[route]/page.tsx
  • Component: Default export function.
  • Client vs Server: Use "use client" directive at the top for components requiring state (useState, useEffect) or browser APIs. otherwise default to Server Components.

Layouts

  • Location: app/layout.tsx (Root), app/[route]/layout.tsx (Nested).
  • Purpose: Wrappers for pages, holding navigation, fonts, and metadata.

Navigation

  • Use Link from next/link for internal navigation.
  • Use useRouter from next/navigation for programmatic navigation (inside Client Components).
import Link from "next/link";
import { useRouter } from "next/navigation";

// Link
<Link href="/dashboard">Dashboard</Link>

// Router
const router = useRouter();
router.push('/login');

Data Fetching

  • Server Components: Fetch directly using await fetch() or DB calls.
  • Client Components: Use useEffect or SWR/TanStack Query (if added later). Currently using standard fetch in useEffect.

Font Optimization

  • We use next/font/google (e.g., Poppins) in app/layout.tsx.
  • Variable fonts are passed to body className.

Metadata

  • Define export const metadata: Metadata = { ... } in page.tsx or layout.tsx for SEO.

Related skills

FAQ

Which Next.js version does it target?

The Next.js 15 App Router located in the app/ directory.

When should a component be a client component?

Use the 'use client' directive for components needing state or browser APIs; otherwise default to Server Components.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.