/slashskills-labs:supabasefrom Slashskills Labs
Sets up, extends, or audits Supabase schema, grants, RLS, migrations, API keys, SSR sessions, typed clients, and external auth. Use when integrating Supabase or repairing data access and tenant isolation.
Ships in Slashskills Labs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build a migration-backed, typed Supabase integration with explicit authorization boundaries. This skill owns Supabase grants, RLS, API keys and SSR session checks. The auth-implementation skill defers to it for all of them.
Platform facts in this skill carry a check date and source. Before acting on one, re-check the source if the date is more than 90 days old or the installed package version differs from the one noted. For raw API shapes, use Supabase's official agent skill (supabase/agent-skills) if it is installed, otherwise the Supabase docs for the installed version. This skill keeps the judgment: what to grant, who owns a row, what to test.
Rules that change the work (checked 2026-11-04, sources in the references):
public tables since a gradual rollout from 30 May 2026. Enforcement on existing projects was scheduled for 30 Oct 2026, but the Securing your API docs (updated 22 Oct 2026) still describe auto-grants on existing projects, and no first-party post confirms the switch happened. Without a grant, a table is not reachable through the Data API or GraphQL and PostgREST returns 42501 permission denied. Always write explicit grants in the same migration as create table. That is correct in both states. Check a project's defaults with the pg_default_acl query in grants and RLS. Supabase's docs note that its own agent skill handles grants.sb_publishable_.... Servers use sb_secret_.... Legacy anon and service_role JWT keys are deprecated, with deletion scheduled for "Late 2026, TBC".getClaims(). It verifies the JWT signature, locally against a cached JWKS on projects with asymmetric signing keys. Never trust getSession() in server code.proxy.ts on Next.js 16+ and middleware.ts on 15 and earlier. A proxy.ts on Next.js 15 is never called, so sessions never refresh.supabase/, config.toml, migrations, generated types, Supabase package and CLI versions, framework and its major version, which of proxy.ts/middleware.ts exists, environment-variable names without printing values (publishable/secret or legacy anon/service_role), auth/session flow, schemas exposed through the Data API, and existing grants/RLS. When a database is reachable, run the read-only default-privileges query in grants and RLS to learn what new tables receive.user_id or four CRUD policies to every table mechanically.create table, explicit grants per role, enable row level security, then policies. Grant each role the minimum it needs. Give anon nothing unless signed-out access is intended. Grant service_role only where server code with the secret key touches the table. Write the grants even if the project still has permissive default privileges, so access is reviewable and works whether or not the project has switched. Tables the API must not reach get no grants, or live in an unexposed schema. Read grants and RLS for the template, functions, views and the 42501 debugging path.auth.uid()/auth.jwt() in (select ...), add with check for inserts and updates, review views and functions separately, and set a safe search_path on security definer functions.supabase migration new or a reviewed db diff. Treat diff output as a draft: check it for grants, publications, storage buckets and view options before committing. Verify with supabase db reset locally. Apply remotely (db push, or migration up --linked/--db-url) only when remote deployment is explicitly in scope, after showing db push --dry-run output and naming the target project. migration up has no dry-run flag.NEXT_PUBLIC_ prefix. If the project still runs on legacy keys, plan the swap to publishable/secret keys now. Disabling legacy keys and rotating signing keys are dashboard steps for the user. Do not perform them.auth.uid()/auth.jwt(). Server code protects pages and data with getClaims().role: authenticated, pass the provider token through the client's accessToken callback, and read the actual JWT sub/claims. An RLS expression alone does not configure token verification.@supabase/ssr, create a client per request, use the getAll/setAll cookie adapter, await async framework cookie APIs, and refresh the session in proxy.ts or middleware.ts to match the installed Next.js major. Do not use legacy single-cookie adapters.any and handle { data, error } explicitly.Stop and confirm before remote migrations, revoking grants on existing tables, disabling legacy keys, rotating signing keys, or any change that widens anon access.
Run local migration reset/apply, schema/type drift checks, and repository lint/type/test/build. Through the Data API, query every new table as anon, as a signed-in user and with the secret key. Expect success where granted and 42501 where not. A 42501 means a missing grant. An empty result means a policy matched no rows. Fix the grant before debugging the policy. For each policy, test allowed owner/member/admin/service access and denied anonymous/other-user/other-tenant reads and mutations, including attempts to change ownership. Test session refresh and expiry in the target runtime, confirm a tampered session cookie fails the server getClaims() check, and test external-provider tokens.
Report tables/functions/storage changed, migration files, grants per table and role, RLS policies with auth strategy, keys in use (publishable/secret or legacy, with migration status), client/session changes, type-generation command/result, negative authorization tests, dated facts re-checked, and remaining linked-project/dashboard/production steps.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tushaarmehtaa/tushar-skills --plugin slashskills-labs29 skills in this plugin
/agent-instructionsCreate or reconcile AGENTS.md, CLAUDE.md and Cursor rules so Claude Code, Codex and Cursor each load the right guidance. Use when agent instructions are missing, stale, duplicated or conflicting./ai-cost-auditAudit AI usage, billing, unit economics, routing, caching, batching, and optimization. Use when AI cost, margin, pricing, model choice, or savings must be measured or verified./ai-product-developmentBuild or audit AI features that call tools, stream, or charge for usage. Covers tool-time authorization, reserve-then-settle billing and evals before model changes. Use when adding AI to an app./analyticsPlan, implement, or audit analytics, error monitoring, health checks, dashboards, and reporting. Use when designing events, consent-aware tracking, incident visibility, or observability./auth-implementationImplement authentication, authorization, tenant isolation, sessions, and protected routes. Use when adding sign-in, identity sync, provider integration, account linking, roles, or access control./cold-outreachResearch, write, audit, and improve cold messages, introductions, replies, and sequences. Use when contacting prospects, investors, partners, candidates, or other professional recipients.Other plugins' skills for the same job