Agent skill · marketing growth · aiskillstore

supabase-patterns

Generic Supabase best practices for Row Level Security, realtime subscriptions, storage, and edge functions. Framework-agnostic.

Why this skill is useful

Provides specific patterns and commands for implementing Row Level Security and other Supabase features that the AI wouldn't reliably generate on its own.

What it needs

Requires supabase installed locally. About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Supabase Patterns Skill Universal patterns for working with Supabase in any project. Covers RLS policies, realtime, storage, edge functions, and migrations. Design Principle This skill is framework-generic. It provides universal Supabase patterns: NOT tailored to Book-Vetting, ocr-service, or any specific project Covers common patterns applicable across all Supabase projects Project-specific configurations go in project-specific skills Variables Variable Default Description ---------- --------- ------------- SUPABASEDIR supabase Directory for Supabase config ENFORCERLS true Require RLS on all tables REALTIMEENABLED auto Auto-detect realtime tables Instructions MANDATORY - Follow the Workflow steps below in order. 1. Check Supabase project configuration 2. Review existing RLS policies 3. Follow security-first patterns 4. Keep migrations organized Red Flags - STOP and Reconsider If you're about to: Create a table without RLS policies Use service role key in client-side code Skip migrations for schema changes Expose sensitive data in realtime STOP -> Add RLS policies -> Use appropriate keys -> Then proceed Cookbook RLS Policies IF: Creating or modifying RLS policies THEN: Read and execute ./cookbook/rls-policies.md Realtime Subscriptions IF: Setting up realtime features THEN: Read and execute ./cookbook/realtime-subscriptions.md Storage Patterns IF: Working with Supabase Storage THEN: Read and execute ./cookbook/storage-patterns.md Quick Reference Project Structure Key Commands RLS Policy Patterns Client Patterns Realtime Pattern Storage Pattern Security Checklist Before Production [ ] RLS enabled on ALL tables [ ] Service role key NOT in client code [ ] Anon key for public operations only [ ] Storage buckets have policies [ ] Sensitive columns excluded from realtime [ ] API rate limiting configured [ ] CORS properly configured RLS Checklist [ ] Every table has RLS enabled [ ] SELECT policies defined [ ] INSERT/UPDATE/DELETE policies defined [ ] Policies tested with di …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/supabase-patterns

View the source on GitHub

Browse the @skills marketplace