AnthropicClaude 3.5 Sonnet / Cursorfull stack development2 Customizable Placeholders

Full-Stack CRUD Application with Prisma & NextAuth

Generates a robust full-stack architecture with Prisma ORM schemas, NextAuth OAuth & magic links, and protected server actions.

Connected glass blocks represent a browser, application services, and a database.
Visual style ConceptualAspect ratio 1:1Model Claude 3.5 Sonnet / CursorSource content with attribution.
Creator SwitchRoute Engineering Team
Expected Output Format:Complete full-stack implementation including Prisma schema, authenticated Server Actions, and UI.
Primary Use Case:Scaffolding scalable authenticated SaaS backends with database integrity.
Official Tool Documentation:Open Official Platform / Docs

Customize Placeholders in Real-Time

Define your application name and the primary entity you want users to manage (e.g. Projects, Invoices, Workflows).

Prompt InstructionsCopy count not available
You are a principal full-stack engineer. Build a secure, scalable CRUD architecture for [APPLICATION_NAME] using Next.js App Router, Prisma ORM, PostgreSQL, and Auth.js (NextAuth v5).

Deliverables:
1. 'prisma/schema.prisma':
   - User, Account, Session, VerificationToken models for Auth.js.
   - Domain entity model '[RESOURCE_NAME]' with fields (id, userId, title, status, metadata Json, timestamps).
   - Optimized indexes for queries by userId and status.
2. Server Actions ('actions/[resource].ts'):
   - 'createResource', 'getResources', 'updateResource', 'deleteResource'.
   - Validate incoming payloads with strict Zod schemas.
   - Verify session authentication and tenant ownership before any mutation.
   - Revalidate appropriate path tags with 'revalidatePath'.
3. React Client Component:
   - Optimistic UI updates using 'useOptimistic'.
   - Loading skeletons and accessible error toast triggers on failed mutations.
4. PostgreSQL RLS policies specification for defense-in-depth security.

Optimization Tips & Parameters

Ask the model to implement optimistic updates to deliver instantaneous user feedback.

More full stack development Prompts

View full library →
A layered SaaS architecture of connected server blocks, database, and browser.1:1
AnthropicClaude 3.5 Sonnet / o12 Placeholdersfull stack development

Modern Full-Stack SaaS Architecture Blueprint

Prompts Claude 3.5 Sonnet to design scalable microservice schemas with PostgreSQL, Redis caching, and Stripe webhooks.

You are a principal cloud architect. Provide a production-ready architectural specification for a multi-tenant B2B SaaS platform handling 50k DAU. Include: 1) Normalized PostgreSQL schema with tenant_id RLS policies, 2) Event-driven async job architecture with Redis/BullMQ, 3) Idempotent Stripe webhook billing lifecycle handling, and 4) TypeScript data transfer object (DTO) interfaces with Zod validation schemas.

ConceptualarchitecturesaasAspect 1:1
Details