Agent Skill
2/7/2026supabase-best-practices
Official skill for RLS & Edge Functions. Covers Row Level Security policies, database optimization, and secure backend patterns.
F
frost
0GitHub Stars
1Views
npx skills add frost-guy-2006/VeGo
SKILL.md
| Name | supabase-best-practices |
| Description | Official skill for RLS & Edge Functions. Covers Row Level Security policies, database optimization, and secure backend patterns. |
name: Supabase Best Practices description: Official skill for RLS & Edge Functions. Covers Row Level Security policies, database optimization, and secure backend patterns. source: supabase/agent-skills/supabase-postgres-best-practices status: placeholder
Supabase Best Practices
Status: Value placeholder. Original source could not be fetched. Goal: Secure and optimized Supabase implementation.
Row Level Security (RLS)
- Enable RLS: Always enable RLS on public tables.
- Policies: Define strict
SELECT,INSERT,UPDATE,DELETEpolicies. - Service Role: Use service role keys only in secure server environments (Edge Functions), never in client app.
Database Optimization
- Indexes: Add indexes on frequently queried columns (esp. foreign keys).
- Functions: Use Postgres functions (RPC) for complex logic.
- Triggers: Use triggers for automated data integrity (e.g.,
updated_at).
Edge Functions
- Keep them small and focused (SRP).
- Validate inputs rigorously.
- Handle CORS properly.
Skills Info
Original Name:supabase-best-practicesAuthor:frost
Download