Supabase Best Practices
Comprehensive coding standards for Supabase development, optimized for AI agents and LLMs.
Overview
This skill provides 22 rules organized across 8 categories:
- Security (RLS) (rls-) - Row Level Security policies, auth patterns [CRITICAL]
- Database Design (schema-) - Foreign keys, constraints, migrations [CRITICAL]
- Authentication (auth-) - OAuth, MFA, session management [HIGH]
- Real-time (realtime-) - Subscriptions, presence, broadcast [HIGH]
- Edge Functions (edge-) - Deno deploy, secrets, logging [MEDIUM-HIGH]
- Storage (storage-) - Bucket policies, transformations [MEDIUM]
- Performance (perf-) - Connection pooling, indexes [MEDIUM]
- Client Libraries (client-) - Type generation, hooks [LOW-MEDIUM]
Usage
Reference this skill when:
- Designing Supabase database schemas
- Implementing Row Level Security
- Building real-time features
- Creating Edge Functions
- Configuring authentication
Build
pnpm build # Compile rules to AGENTS.md
pnpm validate # Validate rule files