# saas-scaffolder

The saas-scaffolder Claude Code skill lays out a Next.js SaaS starter and guides setup for authentication, billing, and tenant separation. Run it when starting a subscription product or multi-tenant app.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 125 installs · ★ 1183 repo stars
- Author: borghei
- License: LicenseRef-MIT-Commons-Clause · policy=link-only · description only; the file stays with the author
- Source: https://github.com/borghei/Claude-Skills/tree/HEAD/engineering/saas-scaffolder/SKILL.md
- Updated: 2026-11-08
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/borghei-saas-scaffolder

## What it does

The skill creates a Next.js project structure with configuration, a Drizzle schema, and route protection. The `saas_scaffolder.py` script tailors dependencies and an environment-variable sample to the chosen providers; other files remain implementation stubs. The scaffold does not contain application logic, so it will not build until those stubs are completed.

A separate script, `tenant_config_validator.py`, checks tenant configuration and scans source files for common isolation mistakes. Its line-based regex scan can miss problems, so a clean report does not prove that tenant data is isolated. The schema supports Postgres only. Auth choices include Auth.js, Clerk, and Supabase Auth; billing can use Stripe, Lemon Squeezy, or be switched off.

## Requirements
- Works with: Stripe

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill saas-scaffolder -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/saas-scaffolder/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/saas-scaffolder/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill saas-scaffolder -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/saas-scaffolder/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill saas-scaffolder -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/saas-scaffolder/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install borghei/Claude-Skills engineering/saas-scaffolder/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/saas-scaffolder/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill saas-scaffolder -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/borghei/Claude-Skills --path engineering/saas-scaffolder
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/saas-scaffolder/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add borghei/Claude-Skills --skill saas-scaffolder -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/borghei/Claude-Skills/tree/HEAD/engineering/saas-scaffolder/SKILL.md

## When to use it
- lay out a Next.js SaaS starter
- choose dependencies for authentication and billing providers
- shape a schema for workspace or organization tenancy
- scan source for common tenant-isolation mistakes
- manage feature flags gated by plan and environment

## Example prompts
- Create a Next.js SaaS scaffold with Clerk, no billing, and no tenancy.
- Scan this app for database queries that lack tenant scoping.
- Create an `sso` feature flag for the `pro` and `enterprise` plans.

## Similar
- [saas-platforms](https://affpapa.org/en/nevibecode/skills/saas-platforms.md) — skill · 364 installs
- [saas-multi-tenant](https://affpapa.org/en/nevibecode/skills/saas-multi-tenant.md) — skill · 171 installs
- [security-stinger](https://affpapa.org/en/nevibecode/skills/security-stinger.md) — skill · ★ 96 repo stars
- [stripe](https://affpapa.org/en/nevibecode/skills/stripe.md) — skill · 747 installs
- [The Bridge](https://affpapa.org/en/nevibecode/mcp/the-bridge.md) — MCP server
- [churn-prevention](https://affpapa.org/en/nevibecode/skills/coreyhaines31-churn-prevention.md) — skill · 132400 installs

## Other versions with the same name
- [saas-scaffolder · alirezarezvani](https://affpapa.org/en/nevibecode/skills/saas-scaffolder.md) — 630 installs

From the same set: [borghei/claude-skills](https://affpapa.org/en/nevibecode/by/borghei/claude-skills.md) — 120 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
