Command Palette

Search for a command to run...

Назад к скиллам
скилл № 65336

supabase

Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client…

БесплатноБез исполняемых скриптов
Asymmetric-alот Asymmetric-al★ 354 звезды на GitHub

Установить supabase в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

This repository (Asymmetric-al/core)

These repo-owned sections are intentionally kept on top of the vendored Supabase skill. If upstream refreshes replace this file, reconcile this overlay before running bun run skills:sync.

Triggers

  • Any Supabase product surface: Database, Auth, Storage, Realtime, Edge Functions, Cron, Queues, Vectors, CLI, or MCP.
  • Any schema, migration, seed, RLS, SQL policy, Postgres function, view, trigger, or generated database type change.
  • Any Next.js App Router auth/session/cookie work that uses Supabase Auth.

Workflow

  1. Read docs/ai/rules/backend.md; also read supabase/AGENTS.md for migrations, seed, or demo RLS posture.
  2. For Next.js auth wiring, also load docs/ai/skills/nextjs-supabase-auth/SKILL.md.
  3. For Postgres, RLS, query, or schema performance, also load docs/ai/skills/supabase-postgres-best-practices/SKILL.md.
  4. Verify current Supabase CLI/MCP/docs behavior before changing SQL or auth code.
  5. Run the smallest meaningful SQL, type, or route test that proves the change.

Checklist

  • Loaded the matching backend and nested Supabase instructions.
  • Verified docs or CLI/MCP behavior for version-sensitive Supabase APIs.
  • Reviewed RLS/auth/session implications before touching exposed data.
  • Added or updated migration/type/test coverage when behavior changed.
  • Ran a focused verification command and captured any blocked checks.

Schema changes (this overrides "Option B" below)

supabase/migrations/*.sql is Core's schema source of truth (supabase/AGENTS.md), so Core does not iterate on schema with direct SQL:

  • Create each schema change as a migration file with bun run supabase -- migration new <name>, write the SQL by hand, and apply it to the local stack with bun run supabase -- db reset --local, which replays every migration and the seed.
  • Do not change schema with execute_sql (MCP), supabase db query or psql, and never run them against a hosted project. Read-only queries against the local database are fine for diagnosis.
  • Do not generate a migration with supabase db pull; the reviewed migration file is the change.
  • Run every CLI command through the pinned wrapper bun run supabase --.
  • Tenant tables keep RLS enabled and forced with tenant-scoped policies. Follow supabase/AGENTS.md, and check active OpenSpec changes that touch the same tables, before writing a migration.

Reuse existing authentication as opaque secure input. Scope new credentials only when required by an explicitly authorized operation; do not rotate, copy, print, or request replacement credentials during skill maintenance.

Supabase

Core Principles

1. Supabase changes frequently — verify against changelog and current docs before implementing. Do not rely on training data for Supabase features. Function signatures, config.toml settings, and API conventions change between versions.

First, fetch https://supabase.com/changelog.md (a lightweight summary index — not a heavy pull), scan for breaking-change tags relevant to your task, and follow the linked page for any that apply. Then look up the relevant topic using the documentation access methods below.

2. Verify your work. After implementing any fix, run a test query to confirm the change works. A fix without verification is incomplete.

3. Recover from errors, don't loop. If an approach fails after 2-3 attempts, stop and reconsider. Try a different method, check documentation, inspect the error more carefully, and review relevant logs when available. Supabase issues are not always solved by retrying the same command, and the answer is not always in the logs, but logs are often worth checking before proceeding.

4. Exposing tables to the Data API: Depending on the user's Data API settings, newly created tables may not be automatically exposed via the Data (REST) API. If this is the case, anon and authenticated roles will need to be explicitly granted access.

Note that this is separate from RLS, which controls which rows are visible once a table is accessible, not whether the table is accessible at all.

When a user reports a SQL-created table is unexpectedly inaccessible, check their Data API settings and whether the roles have been granted access via explicit GRANT SQL. When granting public (anon/authenticated) access, always enable RLS too. See Exposing a Table to the Data API for the full setup workflow.

5. RLS in exposed schemas. Enable RLS on every table in any exposed schema, which includes public by default. This is critical in Supabase because tables in exposed schemas can be reachable through the Data API when the anon/authenticated roles have access (see [Exposing a Table to the Data API](https://supabase.

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • CHANGELOG.md
  • assets/feedback-issue-template.md
  • references/UPSTREAM-LICENSE
  • references/skill-feedback.md
  • references/upstream.md

FAQ

Что делает скилл supabase?

Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies, getSession, getUser, getClaims, RLS); Supabase CLI or MCP server; schema changes, migrations, declarative schemas, security audits, Postgres extensions (pg_graphql, pg_cron, pg_vector); debugging and troubleshooting errors or unexpected behavior on Supabase projects (HTTP errors, Postgres errors, RLS surprises, permission denied, schema cache issues, timeouts, Edge Function crashes, Realtime drops, Storage failures) and reading or querying logs (Logs Explorer, ClickHouse).

Как установить скилл supabase?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл supabase запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить supabase с