nikandr-surkov/ai-saas-starter
AI SaaS boilerplate for Next.js 16 — Better Auth, Stripe subscriptions, credits system, AI image generation. AI-native: AGENTS.md, Claude Code skills & hooks.
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
GUARDRAILS
3/5
Blocks destructive commands · Protects secrets · No YOLO mode · details
Quality 29/100 Guardrails v2
Copy this rig
# review before running: this installs third-party code
$ npx degit nikandr-surkov/ai-saas-starter/.claude ./rig-ai-saas-starter # inspect, then merge into .claude/ MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ npx degit nikandr-surkov/ai-saas-starter/.claude/skills/add-ai-provider .claude/skills/add-ai-provider $ npx degit nikandr-surkov/ai-saas-starter/.claude/skills/add-feature .claude/skills/add-feature $ npx degit nikandr-surkov/ai-saas-starter/.claude/skills/db-migration .claude/skills/db-migration
$ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/nikandr-surkov/ai-saas-starter/main/.claude/agents/code-reviewer.md Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.
{
"permissions": {
"deny": [
"Bash(rm -rf *)",
"Read(./.env)",
"Read(./.env.local)",
"Read(./.env.development)",
"Read(./.env.production)",
"Read(./.env.*.local)"
]
}
} Skills (3)
Subagents (1)
| code-reviewer | Read-only reviewer for auth, billing, and credits-ledger changes. Use proactively after modifying src/lib/auth, src/lib/billing, src/lib/credits, or src/app/api — before committing. |
Hooks (2)
| event | matcher | runs |
|---|---|---|
| PostToolUse | Write|Edit | node .claude/hooks/format-edited-file.mjs |
| Stop | * | node .claude/hooks/stop-typecheck.mjs |
Cursor rules (2)
billingcore · always
Permissions
deny (6)
Bash(rm -rf *)
Read(./.env)
Read(./.env.local)
Read(./.env.development)
Read(./.env.production)
Read(./.env.*.local)
ask (0)
—
allow (0)
—
Similar rigs
AlejoPH03/roundtrip-travel-app
Social travel app prototype: friends' trips on a 3D globe, trusted recommendations and group trip planning. Vanilla JS, no build step.
Minimalist 1.6k tok · · Q3
berni23/laight
Run teams of coding agents in tmux from YAML workflows, with one queue for every human decision.
Pragmatist 8.3k tok · · Q35
lgamorim/claude-rules
Opinionated Claude Code rules for .NET and C# with conventions, architecture guidance, and guardrails for idiomatic, production-ready code.
Pragmatist 4.2k tok · · Q3
AizenvoltPrime/claude-setup
—
Pragmatist 1.2k tok · · Q31