Cursor

Supabase RLS Policy Writer

Prompt
Act as a Supabase security engineer. Write Row Level Security policies for the [table_name] table ensuring users can only access their own records. Include SELECT, INSERT, UPDATE, DELETE policies with explanation comments.

How to use this prompt

  1. Copy the prompt above using the copy button

  2. Open Cursor and start a new conversation

  3. Paste the prompt and replace [bracketed variables] with your specifics

Look for [placeholder] text in the prompt — replace these with your specific details for best results.

Related Topics

826 copies422 upvotes