ncode-rls-guard
Installation
SKILL.md
RLS Guard - Security by Default
EVERY time you create a database table (Supabase) or collection (Firebase), you MUST apply security rules. No exceptions.
Supabase (Web Track)
On CREATE TABLE - always add:
-- 1. Enable RLS
ALTER TABLE [table_name] ENABLE ROW LEVEL SECURITY;
-- 2. Default policy: owner-only access
CREATE POLICY "Users access own records" ON [table_name]
FOR ALL USING (auth.uid() = user_id);