plugins/nextjs-expert/skills/nextjs-stack/SKILL.md
Next.js 16+ complete stack with App Router, Prisma 7, Better Auth, shadcn/ui, TanStack Form, Zustand. Use as the master reference combining all framework skills.
npx skillsauth add fusengine/agents nextjs-stackInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Master skill combining all framework documentation for modern Next.js development.
Before ANY implementation, use TeamCreate to spawn 3 agents:
After implementation, run fuse-ai-pilot:sniper for validation.
| Layer | Technology | Skill Reference |
|-------|------------|-----------------|
| Framework | Next.js 16 (App Router) | nextjs-16 |
| Database ORM | Prisma 7 | prisma-7 |
| Authentication | Better Auth 1.2 | better-auth |
| UI Components | shadcn/ui 3.8.0 | nextjs-shadcn |
| Forms | TanStack Form | nextjs-tanstack-form |
| State | Zustand | nextjs-zustand |
| Styling | Tailwind CSS 4 | tailwindcss |
| i18n | next-intl 4.0 | nextjs-i18n |
| Choice | Reason | |--------|--------| | Better Auth over NextAuth.js | TypeScript-first, plugin system, self-hosted | | Prisma 7 over Drizzle | Mature ecosystem, migrations, studio | | TanStack Form over React Hook Form | Modern API, server actions, type safety | | Zustand over Redux/Context | Minimal boilerplate, SSR-friendly | | shadcn/ui over MUI/Chakra | Copy/paste ownership, Radix primitives |
src/
├── app/ # Route handlers only
│ ├── [locale]/ # i18n routing
│ ├── api/ # API routes
│ └── layout.tsx # Root layout
├── modules/
│ ├── cores/ # Shared infrastructure
│ │ ├── i18n/ # Internationalization
│ │ ├── shadcn/ # UI components
│ │ ├── lib/ # Utilities (cn, etc.)
│ │ └── db/ # Prisma client
│ ├── auth/ # Authentication module
│ └── [feature]/ # Feature modules
└── proxy.ts # Route protection
Each feature module contains:
Better Auth integrates with Prisma adapter for user storage. Schema in prisma/schema.prisma includes User, Session, Account, Verification tables.
TanStack Form with Zod validation using shadcn/ui Field components. Server Actions for form submission.
Zustand stores for client state only. Server Components fetch data directly. No global state for server data.
next-intl with [locale] segment. proxy.ts handles locale detection and redirects.
| Feature | Reference |
|---------|-----------|
| App Router | nextjs-16/app-router.md |
| Server Components | nextjs-16/server-components.md |
| Caching | nextjs-16/caching.md, cache-components.md |
| proxy.ts | nextjs-16/proxy.md |
| Feature | Reference |
|---------|-----------|
| Schema | prisma-7/schema.md |
| Client | prisma-7/client.md |
| Migrations | prisma-7/migrations.md |
| TypedSQL | prisma-7/typed-sql.md |
| Feature | Reference |
|---------|-----------|
| Setup | better-auth/installation.md |
| OAuth | better-auth/providers/ |
| Plugins | better-auth/plugins/ |
| Prisma adapter | better-auth/adapters/prisma.md |
'use client' only when neededuse cache directivenextjs-16 for App Router fundamentalsprisma-7 for databasebetter-auth for authenticationnextjs-shadcn componentsnextjs-i18n if multilingualnextjs-zustand for client statedevelopment
Use when optimizing entity-based / semantic SEO 2026. Covers entity maps, Google Knowledge Graph resolution, salience scoring, passage-level ranking, about/sameAs/knowsAbout schema, Cloud Natural Language API validation.
development
Use when running SEO, GEO, schema, Core Web Vitals, sitemap, hreflang, E-E-A-T, AI Overviews, technical SEO, or structured data tasks. Covers full-site audits, single-page analysis, schema markup, content quality, AI search optimization, local SEO, sitemap/robots, internal linking, semantic clustering, and search experience.
development
Use when optimizing search experience (SXO). Covers intent matching, user personas, user stories, page-type analysis, dwell time, scroll depth, pogo-sticking prevention.
development
Use when optimizing local SEO. Covers Google Business Profile, NAP consistency, citations, reviews acquisition, Local Pack ranking, location pages, LocalBusiness schema.