/lovable:apply-migrationfrom lovable
Checks for pending Supabase migrations, reviews SQL content for destructive operations, and generates Lovable deployment prompts. Optionally automates migration via yolo mode.
Ships in lovable. Installing the plugin adds it to Claude Code.
Before submission, read ../skills/lovable/references/prompt-authorization.md and use
../skills/lovable-deploy/SKILL.md. Resolve neutral deploy.yolo_mode before legacy status;
explicit false overrides legacy on. Apply migration approval gates and transport selection from
the neutral configuration. The legacy steps below do not override these rules.
Check for pending migrations and generate Lovable deployment prompts.
List migration files:
supabase/migrations/Show migration content for review:
-- Migration: [filename]
[SQL content]
⚠️ **Destructive operation detected!**
This migration contains: [operation]
Ensure you have a backup before proceeding.
📋 **LOVABLE PROMPT:**
> "Apply pending Supabase migrations"
Or for review first:
📋 **LOVABLE PROMPT:**
> "Review and apply the migration [filename]"
After applying, verify:
> "Show me the [table_name] table structure"
After generating the prompt, check if yolo mode is enabled:
Read CLAUDE.md:
## Yolo Mode Configuration (Beta) sectionStatus fieldTesting and Debug Mode settingsIf Status: on:
/skills/yolo/SKILL.md)Testing: on
e. Show deployment summaryIf Status: off or not found:
💡 **Tip:** Automate migrations with yolo mode!
Run: /lovable:yolo on
Benefits: No manual copy-paste, automatic testing
## Pending Migrations
### 20250101120000_add_profiles_table.sql
```sql
CREATE TABLE profiles (
id UUID PRIMARY KEY REFERENCES auth.users(id),
full_name TEXT,
avatar_url TEXT,
created_at TIMESTAMPTZ DEFAULT NOW()
);
ALTER TABLE profiles ENABLE ROW LEVEL SECURITY;
CREATE POLICY "Users can view own profile"
ON profiles FOR SELECT
USING (auth.uid() = id);
✅ No destructive operations detected.
📋 LOVABLE PROMPT:
"Apply pending Supabase migrations"
After applying:
"Show me the profiles table structure"
💡 Remember to update CLAUDE.md with the new table.
💡 Tip: Automate migrations with yolo mode! Run: /lovable:yolo on Benefits: No manual copy-paste, automatic testing
### Example 2: Yolo Mode Enabled (Automated)
✅ No destructive operations detected. ✅ Committed and pushed to main
🤖 Yolo mode: Applying Supabase migrations
⏳ Step 1/8: Navigating to Lovable project... ⏳ Step 2/8: Waiting for GitHub sync... ✅ Step 3/8: Sync verified - Lovable has latest code ✅ Step 4/8: Located chat interface ✅ Step 5/8: Submitted prompt: "Apply pending Supabase migrations" ⏳ Step 6/8: Waiting for Lovable response... ✅ Step 7/8: Migration confirmed ⏳ Step 8/8: Running verification tests... ✅ Step 8/8: All tests passed
Operation: Database Migration Migration: 20250101120000_add_profiles_table.sql Status: ✅ Success Duration: 42 seconds
Verification Tests:
Next Steps:
💡 Yolo mode is enabled. Run /lovable:yolo off to disable.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub 10k-digital/lovable-agent-skills --plugin lovable14 commands in this plugin
/connect-mcpConnect Lovable MCPConnect Lovable MCP to Claude for faster, more reliable yolo mode deployments without browser automation./deploy-edgeDeploy Edge FunctionsCheck for Edge Function changes and provide Lovable deployment prompts./draftLovable DraftBuild, review, accept, or discard a Lovable draft (parallel version) through the Lovable MCP server./init-lovableInitialize Lovable ProjectInitialize Lovable project context. Scans repo, asks questions, generates provider-neutral .lovable-agent state plus AGENTS.md and a Claude-compatible CLAUDE.md shim./lovable-promptGenerate Lovable PromptGenerate the correct Lovable prompt for any backend operation. Describe what you need, get the exact prompt./map-codebaseMap CodebaseGenerate a Project Structure Map to help Claude navigate your codebase faster. Can update CLAUDE.md directly.Other plugins' commands for the same job