supabase

Solid

Supabase platform standards — Row-Level Security, publishable/anon and secret/service_role key boundaries, Postgres and Edge functions, Storage, Realtime, and the CLI migration workflow. Use when working with RLS policies, Supabase clients, Edge Functions, or supabase/ migrations. Loads alongside the database (Postgres) domain.

API & Backend 2 stars 0 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
16
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Supabase Standards Supabase is Postgres underneath, so this domain co-loads with `database` (generic Postgres) and the `auth` / `security` concerns. It owns **only the platform contract**: RLS, the key boundary, Postgres/Edge function security, and the CLI migration workflow. Generic Postgres rules (types, constraints, indexing-in-general, expand-contract, N+1, transactions) live in `database`; auth flows (JWT verification, OAuth, password reset) live in `global/refs/auth.md` — this domain links to them rather than restating them. ## Priority: P0 — Row-Level Security - **RLS is OFF by default. Every table reachable through the API/PostgREST must `ENABLE ROW LEVEL SECURITY` in the same migration that creates it.** A table left unguarded behind a public `anon` key is a full data leak. Signal: a `create table` in `supabase/migrations` with no matching `alter table … enable row level security`. - **RLS-on denies by default — write an explicit policy per operation (`select`/`insert`/`update`/`delete`).** Don't rely on one `for all` policy where operations need different predicates. Signal: a table with RLS enabled and no policy, or a blanket `for all using (true)`. - **Pair every `UPDATE`/`DELETE` policy with a `SELECT` policy.** Postgres must read the existing row to evaluate the `USING` clause; without `SELECT` the row is invisible and the write silently affects nothing. Signal: an `update`/`delete` policy on a table with no `select` policy. - **Use `WIT...

Details

Author
ndisisnd
Repository
ndisisnd/cook
Created
2 months ago
Last Updated
6 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category