Supabase Rules
Open-source backend platform CLI. Manage databases, auth, storage, edge functions, and local development.
3 rules
Supabase Client Usage Standards
Beginner
Standards for using the Supabase JavaScript client — singleton initialization, key management, error handling, and query patterns for safe database access.
globs: **/lib/supabase*, **/utils/supabase*, **/*supabase*.ts
supabase-client, typescript, error-handling, security
View Rule
Database Migration Standards
Intermediate
Enforce standards for Supabase database migrations — one concern per migration, mandatory RLS, index requirements, naming conventions, and deployment safety rules.
globs: **/supabase/migrations/*.sql
migrations, database, schema, standards
View Rule
RLS Policy Writing Standards
Intermediate
Enforce standards for Supabase Row Level Security policies — separate policies per operation, naming conventions, performance indexing, and mandatory testing requirements.
globs: **/supabase/migrations/*.sql, **/supabase/seed.sql
rls, security, postgresql, policies
View Rule