smithery.ai

nextjs-full-stack

App Router, API routes, Server Actions, auth, and deployment patterns.

First seen Mar 26, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,410 B
  • docs SUMMARY.md 95 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Next.js Full Stack Patterns

When to use this skill

  • Building features in Next.js (App Router).
  • Creating API endpoints (Route Handlers).
  • Implementing Server Actions for mutations.

1. App Router Structure

  • Colocation: Keep related files (helpers, components, styles) inside the route segment folder unless they are truly shared.
  • Pages: page.tsx should remain light; import client/server components for the UI.
  • Layouts: Use layout.tsx for shared UI (nav, unrelated to route params) and template.tsx if you need state reset on navigation.

2. Server Components (RSC)

  • Default: All components are Server Components by default.
  • Data Fetching: Fetch data directly in RSCs (async/await). No useEffect needed.
  • Secrets: Server components can safely access process.env secrets.

3. Server Actions

  • Mutations: Use Server Actions ('use server') for form submissions and simple mutations.
  • Validation: Validate inputs (Zod) inside the action before processing.
  • Revalidation: Use revalidatePath or revalidateTag to update cache after mutation.

4. Middleware

  • Auth: Use middleware for route protection (redirecting unauthenticated users).
  • Performance: Keep middleware lightweight (Edge runtime compatible).