supabase-rls-specialist
CommunitySecure Supabase data with RLS policies
AuthorWhaleylaw
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps teams implement and debug Row Level Security policies in Supabase/Postgres to prevent unauthorized row access, eliminate data leaks between users or tenants, and fix common permission errors that block application functionality.
Core Features & Use Cases
- Policy authoring: Provides ready-to-use SQL patterns for SELECT, INSERT, UPDATE, DELETE, ALL, and time-based or hierarchical access rules.
- Multi-tenant and role support: Shows how to enforce tenant_id or organization_id constraints and combine role checks (admin, editor) with ownership.
- Testing and debugging: Explains how to simulate sessions, inspect policies, detect infinite recursion, and safely use the service role for admin operations.
- Use Case: Harden a personal-injury case management app so clients see only their documents, editors see organization documents, and admins retain full access while preventing service role exposure.
Quick Start
Audit the documents table and propose RLS policies that ensure users and tenants can only access their permitted rows while providing safe admin bypass procedures.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: supabase-rls-specialist Download link: https://github.com/Whaleylaw/llm-lawyer/archive/main.zip#supabase-rls-specialist Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.