Generate the correct Lovable prompt for any backend operation. Describe what you need, get the exact prompt.
Converts your backend requirements into exact Lovable prompts for edge functions, database operations, RLS policies, and more. Use this to get the precise syntax needed for any Supabase backend task.
/plugin marketplace add 10K-Digital/lovable-claude-code/plugin install 10k-digital-lovable@10K-Digital/lovable-claude-codeGenerate exact Lovable prompts for backend operations.
š **LOVABLE PROMPT:**
> "[exact prompt]"
"Deploy the [name] edge function""Deploy all edge functions""Create an edge function called [name] that [description]""The [name] edge function returns [error]. Show logs and fix it""Delete the [name] edge function""Create a [name] table with columns: [col1] ([type]), [col2] ([type])""Add a [column] column of type [type] to [table]""Remove the [column] column from [table]""Delete the [table] table" ā ļø"Apply pending Supabase migrations""Review and apply the latest migration""Enable RLS on [table]""Add RLS policy on [table] allowing authenticated users to read all rows""Add RLS policy on [table] allowing users to only access their own rows""Add RLS policy on [table] allowing users with role [role] to [action]""Add foreign key from [table1].[column] to [table2].id""Add foreign key from [table1].[column] to [table2].id with cascade delete""Add an index on [table].[column]""Add unique constraint on [table].[column]""Add index on [table] for columns [col1], [col2]""Create a [public/private] storage bucket called [name]""Allow authenticated users to upload to [bucket]""Make [bucket] publicly readable""Enable [Google/GitHub/Apple] authentication""When a user signs up, create a row in [table] with their user_id"ā ļø Cannot be set via prompts:
Manual steps:
1. Go to Cloud ā Secrets
2. Add: [SECRET_NAME] = [value]
3. Run: "Redeploy edge functions"
User: I need to add a description field to the products table
Output:
š **LOVABLE PROMPT:**
> "Add a description column of type text to the products table"
User: Delete all data from the logs table
Output:
š **LOVABLE PROMPT:**
> "Delete all rows from the logs table"
ā ļø **Warning**: This will permanently delete all data in the logs table.
Consider backing up first.
User: My send-email function needs a Resend API key
Output:
ā ļø **Secrets must be added manually:**
1. Go to **Cloud** ā **Secrets**
2. Click **Add secret**
3. Key: `RESEND_API_KEY`
4. Value: [your Resend API key]
5. Save
Then redeploy:
š **LOVABLE PROMPT:**
> "Deploy the send-email edge function"