spaget
fullstack intermediate

Next.js Full-Stack Agent

Agent configured for Next.js App Router with Prisma, Tailwind CSS, and TypeScript for full-stack application development.

claude-code cursor copilot

A comprehensive agent configuration for building full-stack applications with Next.js 14+ and the App Router. This template encodes the conventions, patterns, and guardrails that keep a Next.js codebase consistent as it grows — from routing and data fetching to database access and styling.

What’s included

  • App Router conventions — File-based routing with page.tsx, layout.tsx, loading.tsx, and error.tsx patterns. The agent understands route groups, parallel routes, and intercepting routes.
  • Server and Client Components — Clear rules for when to use "use client" vs. defaulting to server components. The agent keeps data fetching on the server and interactivity on the client, avoiding unnecessary bundle bloat.
  • Prisma database patterns — Schema-first modeling, migration workflows, and a singleton client pattern for development. Covers relation handling, transactions, and type-safe queries.
  • API routes — Route handlers in app/api/ with proper request validation using Zod, consistent error responses, and middleware patterns for auth and rate limiting.
  • Tailwind CSS — Utility-first styling with a design-token approach. The agent follows consistent spacing, color, and responsive breakpoint conventions instead of arbitrary values.
  • TypeScript strict mode — No any types, discriminated unions for state, and shared type definitions between client and server code.
  • Environment and config — Proper .env management, runtime vs. build-time variable handling, and next.config.ts best practices.

Who it’s for

Full-stack developers building production Next.js applications who want their AI assistant to understand the entire stack. Whether you are standing up a new SaaS product, an internal tool, or a content-driven site, this template provides a solid starting point that you can customize in the spaget builder.

Skills at a glance

The template ships with skills covering routing, data access, component architecture, form handling with Server Actions, authentication patterns, and deployment configuration for Vercel or self-hosted environments.

How to use

  1. Click Use Template to open it in the spaget builder
  2. Adjust database, styling, or auth rules to match your project
  3. Export to Claude Code, Cursor, or Copilot
  4. Drop the generated configuration file into your repository root

Ready to scaffold a full-stack Next.js agent? Open this template in spaget and start building.