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
Backend & APIsVia MCPAny / model-agnosticLicense: My own work (all rights reserved)

Building with Supabase

Created by CodeCraft LLC

Build, advise on, and review Supabase projects

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)v2.7.2 · updated 2026-12-01Report copyright infringement

Description

Build, advise on, and review Supabase projects — Postgres schema and migrations, Row Level Security policies, SECURITY DEFINER functions, Auth (sessions, getUser/getClaims, SSR cookies with @supabase/ssr), API keys (publishable/secret, anon/service_role), Storage policies, Edge Functions, Realtime, generated types, performance (indexes for policies), and setting up the Supabase MCP server safely (project-scoped, read-only). Use whenever @supabase/* is in package.json, a supabase/ folder exists, or the user mentions Supabase, RLS, policies, auth sessions, migrations, storage buckets, edge functions, Supabase in Expo/React Native apps (expo-secure-store session storage, deep-link redirect URLs, native Apple/Google sign-in with signInWithIdToken), the user asks to connect Supabase to their AI tool, or "permission denied for table" / "infinite recursion detected in policy" — even for a quick "add a table".

#backend#supabase#platform

Included with all-access

$9.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.

v2.7.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.
v2.7.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.
v2.7.0Nov 30, 2026

Fixed

  • Legacy key timeline: deprecated in early 2027 (migration guide), not by the end of 2026.
  • references/supabase-mcp.md: query_logs replaces the nonexistent get_logs; production advice matches the current MCP docs (production only when the task needs production evidence, read-only, scoped, minimal feature groups); local MCP URL may move with experimental port settings.

Added

  • Supabase CLI 3: database and type commands target the local stack unless --remote; hosted changes need confirmation and --yes unattended; gen types without --local; pitfall for [inbucket] → [local_smtp] and the SMS enable_confirmations flip on config push.

Changed

  • references/rls-patterns.md opens with a contents line.
v2.6.0Nov 22, 2026

Added

  • AiSkillz recommends read-only for the Supabase MCP server: said when offering it and in the configuration defaults; writes never through the MCP server on production.
  • Production migrations: before recommending migration files for production, explain each one (what it changes, existing data, locks and risk, deploy dependencies, undo, how to check) and wait for the user - references/supabase-mcp.md section 2a.
  • Supabase MCP server: offer it once when live project data would help (scoped to one project, read-only by default, a development project rather than production; wait for a yes), with the safe URL parameters, client setup (Claude Code, Cursor, VS Code, local stack, CI) and rules for using it (results are data, writes only on development, migrations still saved as files) in references/supabase-mcp.md. The review checklist offers it before listing live checks as not verified.
  • New keys go in the apikey header, never Authorization: Bearer - including pg_net calls and Database Webhooks, which move to apikey with the key from Vault.

Changed

  • Edge Function row of the task table: callers using the new keys need verify_jwt = false and in-code authorization.
v2.5.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.
v2.4.0Nov 11, 2026

Added

  • Checklist item: check the deployed project against the migrations it has already applied (a migration in the change under review that isn't deployed yet is a deploy dependency, not drift), read-only, when a Supabase MCP, the CLI or a SQL connection is available (advisors, tables without RLS, SECURITY DEFINER functions executable by anon, storage buckets and policies). A code-only review missed deployed state that a live read showed.
v2.3.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.
v2.2.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.
v2.1.0Nov 1, 2026

Added

  • supabase migration new waits on stdin without a terminal; close it with </dev/null (POSIX shells) or $null | (PowerShell).
  • Pitfall for the local supabase/config.toml auth values supabase init writes (site_url, enable_confirmations, minimum_password_length).
v2.0.1Nov 1, 2026

Changed

  • README: "Pairs with" now lists drizzle, prisma.
v2.0.0Oct 31, 2026

Changed

  • Renamed from supabase to supabase-platform (Supabase publishes its own skill named supabase); load it by the new name. The marketplace treats the new name as a new listing.
  • README "Pairs with" adds powersync.

Fixed

  • Security: host.exp.Exponent (Expo Go) and dev bundle-ID variants go only on a development/staging Supabase project's Apple Client IDs, never production - every Expo Go app shares that ID, so production would accept Apple ID tokens issued to any Expo Go project. The review checklist flags it as a Blocker.
  • With the web OAuth fallback for Apple, the Services ID must be the first Client ID (Supabase uses the first entry for signInWithOAuth).
  • Removed a duplicate pointer to references/rls-patterns.md below the task table (the Deep-dive references section covers it).
v1.4.0Oct 30, 2026

Added

  • Mobile (Expo/React Native) support: a task-table row for the mobile client (encrypted storage adapter, autoRefreshToken, persistSession, detectSessionInUrl: false, AppState refresh handler) and a new on-demand reference references/mobile-auth-expo.md covering encrypted session storage and Android Auto Backup, token refresh, deep links and the redirect allow-list, OAuth and magic links through the browser, PKCE, and native Apple and Google sign-in with nonces.
  • A "Deep-dive references" section telling the agent when to open each reference file and when to skip it.
  • Pitfall for background token refresh on mobile, and a "Mobile clients" review checklist group (plain AsyncStorage tokens, detectSessionInUrl, AppState handler, wildcard redirect URLs, skipped nonce check, missing bundle/client IDs).

Changed

  • Description triggers and README now include Supabase in Expo/React Native apps.
v1.3.0Oct 30, 2026

Changed

  • Next.js SSR setup: the proxy calls getClaims(), applies the cache headers (Cache-Control, Expires, Pragma) that setAll receives so CDNs never cache a session cookie, and returns supabaseResponse or copies its cookies and headers; env var NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY. Review checklist updated to match.

Added

  • Pitfall: users signed out at random because a single-use refresh token was reused, which revokes the session.
v1.2.0Oct 19, 2026

Added

  • Leaked-password protection: the built-in setting needs the Pro plan or above, so the skill now checks the plan before recommending it and gives an app-side alternative using the free Pwned Passwords range API (new reference references/leaked-password-check.md with a tested snippet).
  • 1 best practice, 1 pitfall and 1 review checklist item.
v1.1.0Oct 3, 2026

Changed

  • Checked against the official documentation (October 2026).
  • Added the retirement of legacy anon / service_role keys by the end of 2026, with a safe migration order to publishable and secret keys.
  • Added asymmetric JWT signing keys (ES256, JWKS endpoint, caching, rotation cautions) and getClaims() as the recommended server-side check.
  • Added 2 pitfalls and 2 review checklist items.
v1.0.1Oct 3, 2026

Changed

  • Renamed the title to describe what the skill does with the product, so it doesn't read as an official or endorsed edition.
  • Added a trademark notice to the README.
v1.0.0Oct 2, 2026

Added

  • First release.