Skip to content
Skillpedia
General coding29k Β· #9700

saas-scaffolder

What it does

This skill sets up the starting code for a software-as-a-service web app. It is for founders and developers who want a working base with sign-in, billing and a dashboard before building their own features.

When to use it

  • βœ“When you are starting a new SaaS app with sign-in, a database and billing.
  • βœ“When you want a Next.js project with a dashboard, settings and billing pages already laid out.
  • βœ“When you need a payments and webhook setup for Stripe in a new app.

Skill link

https://github.com/alirezarezvani/claude-skills/blob/main/product-team/skills/saas-scaffolder/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/product-team/skills/saas-scaffolder/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œStart a new SaaS app called Trackly with sign-in, a database, Stripe billing and a dashboard.”

5 new skills a week. 1 minute to read.

How it works

It takes the product name, description, auth, database and payment choices, then creates the project folder structure and starter files with a bootstrap script.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

SaaS Scaffolder

Tier: POWERFUL
Category: Product Team
Domain: Full-Stack Development / Project Bootstrapping


Input Format

Product: [name]
Description: [1-3 sentences]
Auth: nextauth | clerk | supabase
Database: neondb | supabase | planetscale
Payments: stripe | lemonsqueezy | none
Features: [comma-separated list]

File Tree Output

my-saas/
β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ (auth)/
β”‚   β”‚   β”œβ”€β”€ login/page.tsx
β”‚   β”‚   β”œβ”€β”€ register/page.tsx
β”‚   β”‚   └── layout.tsx
β”‚   β”œβ”€β”€ (dashboard)/
β”‚   β”‚   β”œβ”€β”€ dashboard/page.tsx
β”‚   β”‚   β”œβ”€β”€ settings/page.tsx
β”‚   β”‚   β”œβ”€β”€ billing/page.tsx
β”‚   β”‚   └── layout.tsx
β”‚   β”œβ”€β”€ (marketing)/
β”‚   β”‚   β”œβ”€β”€ page.tsx
β”‚   β”‚   β”œβ”€β”€ pricing/page.tsx
β”‚   β”‚   └── layout.tsx
β”‚   β”œβ”€β”€ api/
β”‚   β”‚   β”œβ”€β”€ auth/[...nextauth]/route.ts
β”‚   β”‚   β”œβ”€β”€ webhooks/stripe/route.ts
β”‚   β”‚   β”œβ”€β”€ billing/checkout/route.ts
β”‚   β”‚   └── billing/portal/route.ts
β”‚   └── layout.tsx
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ ui/
β”‚   β”œβ”€β”€ auth/
β”‚   β”‚   β”œβ”€β”€ login-form.tsx
β”‚   β”‚   └── register-form.tsx
β”‚   β”œβ”€β”€ dashboard/
β”‚   β”‚   β”œβ”€β”€ sidebar.tsx
β”‚   β”‚   β”œβ”€β”€ header.tsx
β”‚   β”‚   └── stats-card.tsx
β”‚   β”œβ”€β”€ marketing/
β”‚   β”‚   β”œβ”€β”€ hero.tsx
β”‚   β”‚   β”œβ”€β”€ features.tsx
β”‚   β”‚   β”œβ”€β”€ pricing.tsx
β”‚   β”‚   └── footer.tsx
β”‚   └── billing/
β”‚       β”œβ”€β”€ plan-card.tsx
β”‚       └── usage-meter.tsx
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ auth.ts
β”‚   β”œβ”€β”€ db.ts
β”‚   β”œβ”€β”€ stripe.ts
β”‚   β”œβ”€β”€ validations.ts
β”‚   └── utils.ts
β”œβ”€β”€ db/
β”‚   β”œβ”€β”€ schema.ts
β”‚   └── migrations/
β”œβ”€β”€ hooks/
β”‚   β”œβ”€β”€ use-subscription.ts
β”‚   └── use-user.ts
β”œβ”€β”€ types/index.ts
β”œβ”€β”€ middleware.ts
β”œβ”€β”€ .env.example
β”œβ”€β”€ drizzle.config.ts
└── next.config.ts

Key Component Patterns

Auth Config (NextAuth)

// lib/auth.ts
import { NextAuthOptions } from "next-auth"
import GoogleProvider from "next-auth/providers/google"
import { DrizzleAdapter } from "@auth/drizzle-adapter"
import { db } from "./db"

export const authOptions: NextAuthOptions = {
  adapter: DrizzleAdapter(db),
  providers: [
    GoogleProvider({
      clientId: process.env.GOOGLE_CLIENT_ID!,
      clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
    }),
  ],
  callbacks: {
    session: async ({ session, user }) => ({
      ...session,
      user: {
        ...session.user,
        id: user.id,
        subscriptionStatus: user.subscriptionStatus,
      },
    }),
  },
  pages: { signIn: "/login" },
}

Database Schema (Drizzle + NeonDB)

// db/schema.ts
import { pgTable, text, timestamp, integer } from "drizzle-orm/pg-core"

export const users = pgTable("users", {
  id: text("id").primaryKey().$defaultFn(() => crypto.randomUUID()),
  name: text("name"),
  email: text("email").notNull().unique(),
  emailVerified: timestamp("emailVerified"),
  image: text("image"),
  stripeCustomerId: text("stripe_customer_id").unique(),
  stripeSubscriptionId: text("stripe_subscription_id"),
  stripePriceId: text("stripe_price_id"),
  stripeCurrentPeriodEnd: timestamp("stripe_current_period_end"),
  createdAt: timestamp("created_at").defaultNow().notNull(),
})

export const accounts = pgTable("accounts", {
  userId: text("user_id").notNull().references(() => users.id, { onDelete: "cascade" }),
  type: text("type").notNull(),
  provider: text("provider").notNull(),
  providerAccountId: text("provider_account_id").notNull(),
  refresh_token: text("refresh_token"),
  access_token: text("access_token"),
  expires_at: integer("expires_at"),
})

Stripe Checkout Route

// app/api/billing/checkout/route.ts
import { NextResponse } from "next/server"
import { getServerSession } from "next-auth"
import { authOptions } from "@/lib/auth"
import { stripe } from "@/lib/stripe"
import { db } from "@/lib/db"
import { users } from "@/db/schema"
import { eq } from "drizzle-orm"

export async function POST(req: Request) {
  const session = await getServerSession(authOptions)
  if (!session?.user) return NextResponse.json({ error: "Unauthorized" }, { status: 401 })

  const { priceId } = await req.json()
  const [user] = await db.select().from(users).where(eq(users.id, session.user.id))

  let customerId = user.stripeCustomerId
  if (!customerId) {
    const customer = await stripe.customers.create({ email: session.user.email! })
    customerId = customer.id
    await db.update(users).set({ stripeCustomerId: customerId }).where(eq(users.id, user.id))
  }

  const checkoutSession = await stripe.checkout.sessions.create({
    customer: customerId,
    mode: "subscription",
    payment_method_types: ["card"],
    line_items: [{
FAQ

Which auth and database options are there?

It offers NextAuth, Clerk or Supabase for sign-in, and NeonDB, Supabase or PlanetScale for the database.

Does it support other payment tools?

It also lists LemonSqueezy as an option, or no payments at all.

Is it for every kind of app?

No, it is for SaaS apps with sign-in and billing, and a different skill covers other project types.

Details

Original description by the author

Use when starting a new SaaS app with auth, database, Stripe billing and a dashboard (Next.js App Router, TypeScript, Tailwind, shadcn/ui, Drizzle). Bootstraps it with project_bootstrapper.py.

repo: alirezarezvani/claude-skills

Popularity

GitHub stars
29k
Ranking position
#9700
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills