AiSkillz

Early "As-Is" Access - free for the first 20 accounts. 18 of 20 places left: complete registration to claim one. No credit card needed.

← Back to skills
FrameworksVia MCPAny / model-agnosticLicense: My own work (all rights reserved)

SaaS web app - Next.js and Supabase stack

Created by CodeCraft LLC

Starts, builds and reviews SaaS web apps on the Next.js and Supabase stack

Product and technology names are trademarks of their respective owners, used only to identify what this skill covers. CodeCraft LLC is not affiliated with or endorsed by them.

by Jace (@jamick)v1.8.2 · updated 2026-12-01Report copyright infringement

Description

Starts, builds and reviews SaaS web apps on the Next.js and Supabase stack - architecture (proxy session refresh, Server Components, RLS-enforced queries), where secrets live, choosing Server Actions vs Route Handlers vs Edge Functions, the SaaS security and quality baseline (RLS on every exposed table, no secret key on user request paths, verified idempotent webhooks, tenant isolation, rate limits), project start-up with the user's choices for tenancy, sign-in, payments, hosting, UI kit and extras, and the launch review. Use when the user starts, extends or reviews a SaaS, subscription or multi-user web app built with Next.js and Supabase, or asks how the pieces of that stack fit together. Not for a single technology question on its own (load that base skill), mobile apps, or Next.js apps without Supabase.

#frameworks#saas#web#app#nextjs#supabase

Included with all-access

$15.00 one-time, permanent access

Get all-access · $12.00/mo, billed yearly

or

Buy 2 or more together for up to 40% off · View cart

You get a licence, not ownership. Access lasts while this skill is available on AiSkillz; if it's removed within 90 days of purchase, we'll send you a copy to keep. Terms

Official and free skills are included with the all-access subscription

Changelog

Subscribers also see which files changed in each version.

v1.8.2Dec 1, 2026Latest

Changed

  • README **Sources**: links now point at the publisher's openly licensed GitHub copy of the same docs (CC BY 4.0, Apache 2.0, MIT or the W3C Software and Document License), so the skill rests on the open license rather than the website's terms of use.
v1.8.1Dec 1, 2026

Added

  • README: a **Sources** line listing the official pages the skill is written from, each link checked, so the source-overlap check can run against them.
v1.8.0Nov 30, 2026

Changed

  • Supabase CLI 3: gen types targets the local stack without --local; hosted changes need --yes unattended, added only for the command the user approved.
v1.7.0Nov 22, 2026

Added

  • Operating rules: explain each production migration so the user understands it before running it; the MCP offer says AiSkillz recommends read-only.
  • Start the project, Block 1: offer the Supabase MCP server (local stack while building, the hosted development project read-only), per supabase-platform's references/supabase-mcp.md.
  • First verification: run the RLS check and security advisors through the MCP server when connected.
  • Reviewing: live database checks use the MCP server read-only, offered once before a check is listed as not verified.

Changed

  • Operating rules: no remote migrations through the MCP server's apply_migration or writing execute_sql without an explicit yes either.
v1.6.0Nov 20, 2026

Added

  • Review method: every code review starts by mapping the code flows in scope and gives each flow its own sub-agent at high effort, which reviews that flow end to end against this checklist; the main agent merges, re-checks Blockers and de-duplicates. Covers single-flow reviews, nested sub-agents, failed sub-agents and environments without sub-agents.
v1.5.1Nov 10, 2026

Fixed

  • Whole-project audits choose base skills from source evidence too (imports, direct API calls), always load the cross-cutting security, rate-limiting and accessibility checklists, and list checks that couldn't be completed under "Not verified" with the reason.
  • Verification gate checklist item leaves sign-in, sign-out, verify and resend open.
v1.5.0Nov 6, 2026

Changed

  • Review report rule: reviews that cover changes (a diff, PR or uncommitted work) open with a short "What the changes do" section - factual bullets grouped by purpose, inferred intent marked, deploy or migration impact stated.
v1.4.0Nov 5, 2026

Changed

  • Reviewing: on a whole-project audit, load only the base skills whose technology is in the repo, not the whole base-skills list.

Added

  • Review checklist: email confirmation on (or an app-enforced verification gate) so a sign-up can't claim someone else's address.
v1.3.0Nov 4, 2026

Changed

  • Review report rule at the top of the skill, loaded before any review: one entry per finding as Level · type · file:line · finding · proposed fix, outside facts sourced or marked unverified, and no narrative.
  • Privacy and legal-page skills removed from the base skills (they left the library); legal pages are provided by the user and written or reviewed by their counsel.
v1.2.0Nov 1, 2026

Fixed

  • Cache Components is the create-next-app default on Next.js 16.4 with or without --yes; --no-cache-components turns it off. Found when re-running the project test from the published skill.
v1.1.0Nov 1, 2026

Fixed

  • Scaffold: supabase migration new is run with stdin closed (</dev/null in POSIX shells, $null | in PowerShell), so agents and CI no longer hang waiting for SQL.
  • Scaffold: create-next-app --yes on Next.js 16.4 turns on Cache Components; the skill now says to pass every choice as a flag, record the caching model, and put auth checks under <Suspense> with await connection() so the signed-in layout builds.
  • Scaffold: shadcn init needs a preset (-p) to run non-interactively; Base UI buttons that should submit a form need type="submit" (other buttons keep type="button").
  • Scaffold: .env.example is no longer ignored by create-next-app's .env* entry (!.env.example).

Added

  • Local auth settings in supabase/config.toml: site_url and redirect URLs matching the app's origin, minimum_password_length matching the password policy, and email confirmations on.
  • Pitfalls for each of the above, found by generating a project with this skill.
v1.0.1Oct 31, 2026

Changed

  • References updated for renamed skills: supabase is now supabase-platform, eas-workflows is now eas-workflows-ci, skill-creator is now skill-creator-aiskillz.
v1.0.0Oct 30, 2026

Added

  • First release: architecture for a SaaS web app on Next.js and Supabase (proxy session refresh, Server Components, RLS-enforced queries), where each secret lives, when to use a Server Action, Route Handler or Edge Function, environments and deploy order, and folder layout.
  • SaaS security and quality baseline: RLS on every exposed table, no secret key on user request paths, server-side auth checks in Server Actions, verified and idempotent webhooks, tenant isolation, rate limits, env hygiene, accessibility and performance gates, legal pages before launch.
  • "Start the project" in five blocks: tool check, one round of options with recommended defaults (tenancy, sign-in methods, CAPTCHA provider, payments, hosting, UI kit and shadcn/ui base, dark mode, client data fetching, email, linter, who lints Edge Functions, extras), scaffold with the official tools after a yes, configure, and verify (build, sign-in, RLS check, client-bundle secret scan).
  • Base skills table (always used and per option), launch section, pitfalls, and a review checklist.

Fixed

  • The shadcn/ui base option loads base-ui (Base UI base) or react-aria (React Aria base); radix-ui loads only for the Radix base. The scaffold step takes the shadcn init base flag from shadcn-ui or --help instead of repeating version-dated facts.
  • Client-bundle secret scan searches for the actual server-only values from .env.local and the sb_secret_, sk_, rk_ and whsec_ prefixes, not for legacy JWT key prefixes (the anon key is meant to be in the bundle).
  • Stripe webhook pitfall split into two cases: 400 on every event (parsed body, or sync constructEvent in Deno; use constructEventAsync with Stripe.createSubtleCryptoProvider()) and 401 from the Edge Function (verify_jwt left on), pointing to stripe-review.
  • SECURITY DEFINER checklist item matches the supabase-platform rule: revoke EXECUTE from public and anon (and authenticated where not needed), grant only to the roles that need it.
  • Rate limits: sign-in, sign-up and reset go straight to Supabase Auth, so they use its rate limits and CAPTCHA; app-side limits cover invites, email sends, AI calls, search and exports.
  • The linter is a user choice (ESLint, Biome or none) in the start options instead of being picked for the user; first verification runs lint and the type-check as separate steps, since Next.js 16's next build no longer runs the linter. The choice loads eslint or biome.
  • First verification points to multi-tenancy's rls-coverage.sql for orgs and keeps a minimal relrowsecurity check for single-user projects, citing the PostgreSQL docs.
  • The CAPTCHA that the rate-limit rule requires is now a user choice (option 2a: Cloudflare Turnstile, recommended, or hCaptcha - the providers Supabase Auth supports), loading auth-flows and rate-limiting; the Block 1 accounts check includes the CAPTCHA provider account.
  • Linting supabase/functions is a user choice (option 9a, asked only when Stripe payments, the background-jobs extra or any Edge Function creates the folder): Deno's own deno lint / deno fmt with the folder excluded from the app linter (recommended), or the app linter with a Deno override. The Edge Function pitfall, folder layout and review checklist point to option 9a instead of hard-coding the exclusion.

Changed

  • Wording: Docker "or a compatible container runtime" for the local Supabase stack; the Edge Function exclusion names the linter's config (ESLint or Biome); proxy.ts naming and the accessibility target point to nextjs and accessibility-review instead of repeating them.