Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when planning or building a SaaS MVP from scratch. Provides a structured roadmap covering tech stack, architecture, auth, payments, and launch checklist.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | -6% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 38% | 0% |
| case-12 | ✗→✓ | ▲ Improved | 41% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 52% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 53% | 0% |
This skill guides you through building a production-ready SaaS MVP in the shortest time possible. It covers everything from idea validation and tech stack selection to authentication, payments, database design, deployment, and launch — using modern, battle-tested tools.
Before writing any code, validate the idea:
Validation checklist:
- [ ] Can you describe the problem in one sentence?
- [ ] Who is the exact customer? (not "everyone")
- [ ] What do they pay for today to solve this?
- [ ] Have you talked to 5+ potential customers?
- [ ] Will they pay $X/month for your solution?Rule: If you can't get 3 people to pre-pay or sign a letter of intent, don't build yet.
Recommended modern SaaS stack (2026):
| Layer | Choice | Why | |-------|--------|-----| | Frontend | Next.js 15 + TypeScript | Full-stack, great DX, Vercel deploy | | Styling | Tailwind CSS + shadcn/ui | Fast, accessible, customizable | | Backend | Next.js API Routes or tRPC | Type-safe, co-located | | Database | PostgreSQL via Supabase | Reliable, scalable, free tier | | ORM | Prisma or Drizzle | Type-safe queries, migrations | | Auth | Clerk or NextAuth.js | Social login, session management | | Payments | Stripe | Industry standard, great docs | | Email | Resend + React Email | Modern, developer-friendly | | Deployment | Vercel (frontend) + Railway (backend) | Zero-config, fast CI/CD | | Monitoring | Sentry + PostHog | Error tracking + analytics |
my-saas/
├── app/ # Next.js App Router
│ ├── (auth)/ # Auth routes (login, signup)
│ ├── (dashboard)/ # Protected app routes
│ ├── (marketing)/ # Public landing pages
│ └── api/ # API routes
├── components/
│ ├── ui/ # shadcn/ui components
│ └── [feature]/ # Feature-specific components
├── lib/
│ ├── db.ts # Database client (Prisma/Drizzle)
│ ├── stripe.ts # Stripe client
│ └── email.ts # Email client (Resend)
├── prisma/
│ └── schema.prisma # Database schema
├── .env.local # Environment variables
└── middleware.ts # Auth middlewareprismamodel User { id String @id @default(cuid()) email String @unique name String? createdAt DateTime @default(now()) subscription Subscription? workspaces WorkspaceMember[] } model Workspace { id String @id @default(cuid()) name String slug String @unique plan Plan @default(FREE) members WorkspaceMember[] createdAt DateTime @default(now()) } model Subscription { id String @id @default(cuid()) userId String @unique user User @relation(fields: [userId], references: [id]) stripeCustomerId String @unique stripePriceId String stripeSubId String @unique status String # active, canceled, past_due currentPeriodEnd DateTime } enum Plan { FREE PRO ENTERPRISE }
typescript// middleware.ts import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server'; const isPublicRoute = createRouteMatcher([ '/', '/pricing', '/blog(.*)', '/sign-in(.*)', '/sign-up(.*)', '/api/webhooks(.*)', ]); export default clerkMiddleware((auth, req) => { if (!isPublicRoute(req)) { auth().protect(); } }); export const config = { matcher: ['/((?!.*\\..*|_next).*)', '/', '/(api|trpc)(.*)'], };
typescript// lib/stripe.ts import Stripe from 'stripe'; export const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { apiVersion: '2025-01-27.acacia', }); // Create checkout session export async function createCheckoutSession(userId: string, priceId: string) { return stripe.checkout.sessions.create({ mode: 'subscription', payment_method_types: ['card'], line_items: [{ price: priceId, quantity: 1 }], success_url: `${process.env.NEXT_PUBLIC_URL}/dashboard?success=true`, cancel_url: `${process.env.NEXT_PUBLIC_URL}/pricing`, metadata: { userId }, }); }
Technical:
Product:
Marketing:
Problem: Users sign up but don't activate (don't use core feature) Solution: Reduce steps to first value. Track with PostHog where users drop off in onboarding.
Problem: High churn after trial Solution: Add an exit survey. Most churn is due to lack of perceived value, not price.
Problem: Stripe webhook events not received locally Solution: Use Stripe CLI: stripe listen --forward-to localhost:3000/api/webhooks/stripe
Problem: Database migrations failing in production Solution: Always run prisma migrate deploy (not prisma migrate dev) in production environments.
Other measured skills in the registry, with their headline benchmark lift.