This skill guides building supastarter Next.js apps end-to-end with Prisma, oRPC, and Better Auth, accelerating feature delivery and reliable deployment.
npx playbooks add skill oscardrt/supastarter-nextjs-skill --skill supastarter-nextjs-skill
Expert guidance for building production-ready SaaS applications with the supastarter Next.js starter kit. Next.js only; no Vue/Nuxt content.
Use this skill when:
Follow this order when adding a feature:
packages/database/prisma/schema.prisma; run migrations.packages/database/prisma/queries/ and export from queries/index.ts.packages/api/modules/<name>/ (types, procedures, router); mount router in packages/api/orpc/router.ts.apps/web/ (e.g. modules/shared/components/); use shadcn, TanStack Query, session hooks.packages/i18n/translations/{en,de}.json.Full walkthrough: [assets/recipes/feedback-widget.md](assets/recipes/feedback-widget.md).
apps/web/ # Next.js app (App Router, app/, components/, config/, lib/)
packages/
api/ # Hono + oRPC (modules/, orpc/router.ts)
auth/ # Better Auth config
database/ # Prisma schema, migrations, queries
i18n/ # Translations
mail/ # React Email templates, providers
storage/ # S3-compatible storage
ui/ # Shared UI (shadcn)
config/ # Shared config
Use package exports (e.g. @repo/api, @repo/database) instead of deep relative imports.
Load only the reference files you need. All paths are from the skill root, one level deep.
Before writing code, read [references/coding-conventions.md](references/coding-conventions.md). For copy-paste patterns and commands, use [references/code-patterns.md](references/code-patterns.md) and [references/quick-reference.md](references/quick-reference.md).
| Topic | File |
|-------|------|
| Coding conventions (read first) | [references/coding-conventions.md](references/coding-conventions.md) |
| Code patterns (examples) | [references/code-patterns.md](references/code-patterns.md) |
| Quick reference (commands, paths) | [references/quick-reference.md](references/quick-reference.md) |
| Tech stack | [references/tech-stack.md](references/tech-stack.md) |
| Setup, install, deps | [references/setup.md](references/setup.md) |
| Env, config, feature flags | [references/configuration.md](references/configuration.md) |
| Debugging, common issues | [references/troubleshooting.md](references/troubleshooting.md) |
| Prisma schema, migrations, queries | [references/database-patterns.md](references/database-patterns.md) |
| Hono/oRPC, procedures, router | [references/api-patterns.md](references/api-patterns.md) |
| Better Auth, session, protected endpoints | [references/auth-patterns.md](references/auth-patterns.md) |
| Orgs, roles, multi-tenancy | [references/organization-patterns.md](references/organization-patterns.md) |
| Stripe, webhooks, subscriptions | [references/payments-patterns.md](references/payments-patterns.md) |
| AI features, models | [references/ai-patterns.md](references/ai-patterns.md) |
| UI, theming, extensions | [references/customization.md](references/customization.md) |
| S3-compatible, uploads | [references/storage-patterns.md](references/storage-patterns.md) |
| Emails, templates, providers | [references/mailing-patterns.md](references/mailing-patterns.md) |
| i18n, locales, translations | [references/internationalization.md](references/internationalization.md) |
| Meta, sitemap, structured data | [references/seo.md](references/seo.md) |
| Deploy, production | [references/deployment.md](references/deployment.md) |
| Cron, background jobs | [references/background-tasks.md](references/background-tasks.md) |
| Analytics integration | [references/analytics.md](references/analytics.md) |
| Monitoring, errors | [references/monitoring.md](references/monitoring.md) |
| E2E tests | [references/e2e-testing.md](references/e2e-testing.md) |
How to run (from supastarter monorepo root):
python scripts/generate_module.py <module-name>
Example: python scripts/generate_module.py feedback creates packages/api/modules/feedback/ with types.ts, procedures/create.ts, and router.ts. Mount the router in packages/api/orpc/router.ts manually.
"use client" only when needed.packages/api/modules/.@repo/* package imports; do not instantiate Prisma/Drizzle in app code.Before writing code, read [references/coding-conventions.md](references/coding-conventions.md). For examples and commands: [references/code-patterns.md](references/code-patterns.md), [references/quick-reference.md](references/quick-reference.md), [references/customization.md](references/customization.md), [references/api-patterns.md](references/api-patterns.md).
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.