What problem does it solve?
This skill helps developers design and maintain Supabase databases by making Row Level Security policies, migrations, auth integration, and performance tuning practical and repeatable so applications enforce correct data access and scale safely.
Core Features & Use Cases
- RLS design and debugging: Patterns and diagnostics for owner-based, role-based, team, privacy, and hierarchical access controls.
- Migrations and schema management: Safe migration templates, naming conventions, and non-blocking change patterns for production schemas.
- Auth integration and triggers: Functions and triggers to auto-create profiles on signup, use auth.uid() and auth.jwt() safely inside policies, and integrate Supabase Auth.
- Performance and indexing: Index recommendations, use of subqueries to avoid JWT parsing per row, full-text search patterns, and pagination strategies.
- Use case: Enforce owner-only access to user content, add a column with zero-downtime migration, create a trigger to populate profiles after signup, and debug why a user sees no rows due to RLS.
Quick Start
Use the supabase-admin skill to create owner-only RLS policies for the posts table, add indexes on user_id for performance, and produce a safe migration template.