postgres-row-level-security - Skill Dossier
postgres-row-level-security

postgres-row-level-security

Designing Postgres Row-Level Security (RLS) policies for multi-tenant authorization, especially in Supabase / PostgREST stacks — `CREATE POLICY` syntax, USING vs WITH CHECK, PERMISSIVE/RESTRICTIVE merge semantics, the `(SELECT auth.uid())` performance pattern that turns 171ms scans into <1ms, indexes still required, role-based bypass via BYPASSRLS, security-definer escape hatches. Grounded in postgresql.org, Supabase docs, and Gary Austin's RLS-Performance benchmarks.

Backend & Databases
#postgres#rls#row-level-security#supabase#postgrest#multi-tenant#authorization

Allowed Tools

ReadGrepGlobEditWriteBash(psql:*grep:*rg:*)

Share this skill

Skills use the open SKILL.md standard — the same file works across all platforms.

Install all 547 skills as a plugin
claude plugin marketplace add curiositech/windags-skills claude plugin install windags-skills

Claude activates postgres-row-level-security automatically when your task matches its description.

View on GitHub