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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
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.
Popularity
- GitHub stars
- 29k
- Ranking position
- #9700
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-launcher-orchestrator
29kHelps your agent plan, build, test and schedule a Claude managed agent in your own account, step by step, starting from one clear goal.
grade-iterate
29kLets your agent grade a managed AI agent's work against a rubric and improve it in a fixed number of rounds, so it never loops forever.
interview
29kLets your agent interview you about an AI agent idea and turn your answers into a simple build plan before anything is launched.
run-without-you
29kHelps your agent set up a managed AI agent to run on a schedule or when an event happens, with the cron timing checked before launch.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.