### Lovable Quick Start Workflow Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/README.md A step-by-step guide to initializing a project, coding, pushing changes, and syncing configurations using Lovable commands. ```bash # 1. Initialize your project /lovable:init # 2. Answer the questions (1 minute) # - What's your production URL? # - Enable yolo mode? (recommended!) # - etc. # 3. Start coding! # Claude Code now knows everything about your project # 4. Push your changes: git push origin main # With yolo mode on: Auto-deploys backend changes! # No /deploy-edge command needed # 5. Keep in sync: /lovable:sync # Updates CLAUDE.md with latest secrets/config ``` -------------------------------- ### Migration application detection example Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/yolo/references/detection-logic.md Example output showing the detection process for new migration files. ```text Files in supabase/migrations/: 20240115103000_add_user_preferences.sql (new) Detection: ✅ yolo_mode: on ✅ New migration file exists ✅ Committed and pushed to main Action: Trigger automation Prompt: "Apply pending Supabase migrations" ``` -------------------------------- ### Install via Claude Code Marketplace Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/README.md Recommended installation method for Claude Code using the marketplace command and plugin installation. ```bash # In Claude Code, run: /plugin marketplace add 10K-Digital/lovable-agent-skills # Install the plugin: /plugin install lovable@10k-digital ``` -------------------------------- ### Install via Codex Marketplace Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/README.md Installation method for Codex or other Agent Skills runtimes by adding the marketplace repository. ```bash codex plugin marketplace add 10K-Digital/lovable-agent-skills ``` -------------------------------- ### Example .env.example file content Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/references/secret-detection.md Example of an environment variable template file used for secret inference. ```text # API Keys OPENAI_API_KEY=sk-example STRIPE_SECRET_KEY=sk_test_example RESEND_API_KEY=re_example # Database SUPABASE_URL=https://xxxxx.supabase.co SUPABASE_ANON_KEY=public_key ``` -------------------------------- ### Verbose Scanning Output Example Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/map-codebase.md Example output when running the command with the --verbose flag. ```text Scanning src/... Found: components/ (23 files), pages/ (8 files), hooks/ (5 files) Pattern detected: Feature-based with shadcn/ui Scanning supabase/... Found: 3 edge functions, 12 migrations Detecting state management... Found: React Context (2 contexts), TanStack Query Building map... ``` -------------------------------- ### Automated Migration Output Example Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/apply-migration.md Example output when Yolo mode is enabled, showing the automated workflow steps. ```text ## Pending Migrations ### 20250101120000_add_profiles_table.sql ✅ 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 ## Migration Summary **Operation:** Database Migration **Migration:** 20250101120000_add_profiles_table.sql **Status:** ✅ Success **Duration:** 42 seconds **Verification Tests:** 1. ✅ Basic verification: Schema confirmed 2. ✅ Console check: No errors detected 3. ✅ Functional test: Table query succeeded **Next Steps:** - Update CLAUDE.md with new table documentation 💡 Yolo mode is enabled. Run `/lovable:yolo off` to disable. ``` -------------------------------- ### Example output: Yolo Mode Enabled Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/deploy-edge.md Example of the output generated when Yolo mode is enabled, showing automated deployment and verification. ```text ## Edge Function Changes Modified functions: - `send-email` - Updated email template ✅ All changes committed and pushed to main 🤖 Yolo mode (MCP): Deploying send-email edge function ⏳ Sending deployment prompt via Lovable MCP... ✅ Deployment confirmed (3.2s) ⏳ Running verification tests... ✅ All tests passed ## Deployment Summary **Operation:** Edge Function Deployment **Function:** send-email **Status:** ✅ Success **Duration:** 38 seconds **Verification Tests:** 1. ✅ Basic verification: Deployment logs show no errors 2. ✅ Console check: No errors in browser console 3. ✅ Functional test: Function endpoint responds (200 OK) **Production Status:** - Function is live and responding - No errors detected - Ready for use 💡 Yolo mode is enabled. Run `/lovable:yolo off` to disable. ``` -------------------------------- ### Manual Migration Output Example Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/apply-migration.md Example output when Yolo mode is disabled, requiring manual intervention. ```text ## 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 ``` -------------------------------- ### Claude Desktop Setup Instructions Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/connect-mcp.md Instructions for adding the Lovable MCP server as a custom connector in the Claude Desktop application. ```text ## Claude Desktop Setup 1. Open Claude Desktop 2. Go to: Settings → Connectors 3. Click "Add custom connector" 4. Fill in: - Name: Lovable - URL: https://mcp.lovable.dev 5. Click "Add" 6. Claude will prompt you to sign in to Lovable via OAuth 7. Authorize the connection Done! Restart Claude Desktop to activate the connector. Type "done" when you've completed the setup. ``` -------------------------------- ### claude.ai Setup Instructions Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/connect-mcp.md Instructions for adding the Lovable MCP server as a custom connector via the claude.ai web interface. ```text ## claude.ai Setup 1. Go to claude.ai 2. Click your profile icon → Settings 3. Click "Connectors" in the sidebar 4. Click "Add custom connector" 5. Fill in: - Name: Lovable - URL: https://mcp.lovable.dev 6. Click "Add" 7. Sign in to Lovable when prompted Done! The Lovable tools will now be available in Claude. Type "done" when you've completed the setup. ``` -------------------------------- ### Example Output for Standard Lovable Project Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/map-codebase.md Full markdown output example for a standard Lovable project, including directory layout, key files table, patterns, quick lookup table, and last updated timestamp. ```markdown ## Project Structure Map > Quick navigation guide - run `/lovable:map --update` to refresh ### Directory Layout ``` src/ ├── components/ # Feature-based (34 components) │ ├── ui/ # shadcn/ui primitives (Button, Card, Dialog...) │ ├── auth/ # Authentication components │ ├── dashboard/ # Dashboard widgets │ └── layout/ # Layout components (Header, Sidebar, Footer) ├── pages/ # Route pages (8 pages) ├── hooks/ # Custom React hooks (6 hooks) ├── lib/ # Utilities and helpers ├── contexts/ # React contexts (2 contexts) ├── integrations/ # External integrations │ └── supabase/ # Supabase client and generated types └── types/ # TypeScript definitions supabase/ ├── functions/ # Edge Functions (4 functions) └── migrations/ # Database migrations (15 migrations) ``` ### Key Files | File | Purpose | |------|---------| | `src/App.tsx` | Main app entry, React Router setup | | `src/main.tsx` | React DOM mount point | | `src/lib/utils.ts` | cn() helper, date formatters | | `src/integrations/supabase/client.ts` | Supabase client | | `src/hooks/useAuth.ts` | Authentication state hook | | `src/contexts/AuthContext.tsx` | Auth provider context | ### Patterns - **Components**: Feature-based with shadcn/ui primitives in `ui/` - **State**: React Context + TanStack Query for server state - **Data Flow**: Pages → Hooks → Supabase Client → Edge Functions ### Quick Lookup | Looking for... | Check here | |----------------|------------| | UI components | `src/components/ui/` | | Page routes | `src/pages/` or `src/App.tsx` | | API calls | `src/hooks/` or `src/integrations/` | | Types | `src/types/` or `src/integrations/supabase/types.ts` | | Edge functions | `supabase/functions/[name]/index.ts` | | Auth logic | `src/contexts/AuthContext.tsx`, `src/hooks/useAuth.ts` | *Last updated: 2024-01-15 14:30 UTC* ``` -------------------------------- ### Initialize Preview Testing Command Syntax Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/test-init.md The primary command to start the test initialization wizard or update the preview token. ```text /lovable:test-init # Full wizard /lovable:test-init --refresh-token # Only update the preview URL/token ``` -------------------------------- ### Example Auto-Deploy Flow Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/yolo/references/detection-logic.md A representative flow showing the detection and execution steps for an auto-deploy trigger. ```text User pushes changes including supabase/functions/send-email/index.ts Claude detects: ✅ Push to main successful ✅ Backend files changed: supabase/functions/send-email/ ✅ yolo_mode: on ✅ auto_deploy: on 🤖 Auto-Deploy Triggered Backend changes detected in your push: - Edge functions: send-email ⏳ Step 1/7: Navigating to Lovable project... ✅ Step 2/7: Located chat interface ✅ Step 3/7: Submitted prompt: "Deploy the send-email edge function" ⏳ Step 4/7: Waiting for Lovable response... ✅ Step 5/7: Deployment confirmed ⏳ Step 6/7: Running verification tests... ✅ Step 7/7: All tests passed ## Auto-Deploy Summary **Trigger:** git push to main **Function:** send-email **Status:** ✅ Success **Duration:** 38 seconds ``` -------------------------------- ### Local Claude Code Installation Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/README.md Manual installation method by copying plugin files directly into your project directory. ```bash cp -r lovable-plugin/.claude-plugin your-project/.claude-plugin cp -r lovable-plugin/commands your-project/.claude/commands cp -r lovable-plugin/skills your-project/.claude/skills ``` -------------------------------- ### Supabase Client Initialization Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/references/secret-detection.md Example of how Supabase secrets are read from the client configuration file. ```typescript import { createClient } from '@supabase/supabase-js'; const supabaseUrl = "https://xyz.supabase.co"; const supabaseAnonKey = "eyJhbG..."; export const supabase = createClient(supabaseUrl, supabaseAnonKey); ``` -------------------------------- ### Example Detection Output Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/yolo/references/post-push-automation.md Sample output showing the result of the push analysis and the resulting deployment queue. ```text Push analysis: Files changed: 5 Edge functions modified: send-email, process-payment New migrations: 20250103_add_user_preferences.sql Deployment queue: 1. Deploy edge functions: send-email, process-payment 2. Apply migration: 20250103_add_user_preferences.sql ``` -------------------------------- ### Display Introduction Message Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/connect-mcp.md Displays the initial introduction message to the user, outlining the benefits of the Lovable MCP and prompting for a setup method selection. ```text ## Connect Lovable MCP This will connect the Lovable MCP server to Claude so yolo mode can submit deployment prompts via API instead of browser automation. Benefits: ✅ 3-5x faster deployments ✅ No Chrome extension needed ✅ More reliable (API vs UI automation) ✅ Works in any environment Requirements: - Lovable Pro or higher plan Let's get you connected. Choose your setup method: A) Claude Code (recommended for this plugin) B) Claude Desktop app C) claude.ai web interface Reply A, B, or C: ``` -------------------------------- ### Example output: Yolo Mode Disabled Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/deploy-edge.md Example of the output generated when Yolo mode is disabled, requiring manual deployment. ```text ## Edge Function Changes Modified functions: - `send-email` - Updated email template - `process-payment` - Added refund handling ✅ All changes committed and pushed to main ## Secret Validation Secrets used by functions: - RESEND_API_KEY (send-email) Status: ✅ In Lovable Cloud - STRIPE_SECRET_KEY (process-payment) Status: ⚠️ Not configured ⚠️ **Missing secret detected:** Before deploying, add STRIPE_SECRET_KEY to Cloud → Secrets: 1. Go to Cloud → Secrets in Lovable 2. Click "Add secret" 3. Enter: STRIPE_SECRET_KEY = [your value] 4. Then run the prompt below 📋 **LOVABLE PROMPT:** > "Deploy all edge functions" After deployment, verify both functions in browser Cloud logs/status or with safe direct calls; do not submit another Lovable prompt. 💡 **Tip:** Automate deployments with yolo mode! Run: /lovable:yolo on Browser auto mode minimizes charged MCP calls. ``` -------------------------------- ### Edge function detection example Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/yolo/references/detection-logic.md Example output showing the detection process for changed edge functions. ```text Files changed: supabase/functions/send-email/index.ts supabase/functions/send-email/utils.ts Detection: ✅ yolo_mode: on ✅ Changes in supabase/functions/ ✅ All committed and pushed to main ✅ Function identified: send-email Action: Trigger automation Prompt: "Deploy the send-email edge function" ``` -------------------------------- ### Auto-Push Configuration in CLAUDE.md Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/yolo.md Example of the auto-push configuration section within the CLAUDE.md file. ```markdown ## Auto-Push Configuration - **Auto-Push to GitHub**: on - **Last Updated**: [current timestamp] [... rest of auto-push section ...] ``` -------------------------------- ### TanStack Start Directory Layout Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/references/CLAUDE-template.md The directory structure for TanStack Start projects, featuring file-based routing and server-side rendering architecture. ```text app/ ├── routes/ # File-based routes ([ROUTE_COUNT] routes) │ ├── __root.tsx # Root layout │ └── *.tsx # Page routes (filename = URL path) ├── components/ # [COMPONENT_PATTERN] ([COMPONENT_COUNT] components) │ └── ui/ # shadcn/ui primitives ├── lib/ # Utilities and helpers ├── integrations/ # External integrations │ └── supabase/ # Supabase client and generated types [ADDITIONAL_DIRS] supabase/ ├── functions/ # Supabase Edge Functions ([FUNCTION_COUNT]) — needs deploy └── migrations/ # Database migrations ([MIGRATION_COUNT] migrations) ``` -------------------------------- ### Initiate Lovable MCP connection Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/connect-mcp.md Run this command in your terminal to start the connection process. ```bash $ /lovable:connect-mcp ``` -------------------------------- ### TanStack Start Project Structure Map Template Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/references/codebase-map.md Template for documenting the structure of a TanStack Start (SSR) project. ```markdown ## Project Structure Map > Architecture: TanStack Start (SSR) — Quick navigation guide - run `/lovable:map --update` to refresh ### Directory Layout ``` app/ ├── routes/ # File-based routes ([ROUTE_COUNT] routes) │ ├── __root.tsx # Root layout │ └── *.tsx # Page routes (filename = URL path) ├── components/ # [COMPONENT_PATTERN] UI components │ └── ui/ # shadcn/ui primitives ├── lib/ # Utilities and helpers ├── integrations/ # External integrations │ └── supabase/ # Supabase client and generated types └── [OTHER_DIRS] # [PURPOSE] supabase/ ├── functions/ # Supabase Edge Functions ([FUNCTION_COUNT] functions) — needs deploy └── migrations/ # Database migrations ([MIGRATION_COUNT] migrations) ``` ### Key Files | File | Purpose | |------|---------| | `app/routes/__root.tsx` | Root layout (wraps all pages) | | `app/routes/index.tsx` | Home page (/) | | `app/lib/utils.ts` | Shared utilities (cn, formatters) | | `app/integrations/supabase/client.ts` | Supabase client configuration | | `app.config.ts` | TanStack Start configuration | | [OTHER_KEY_FILES] | [PURPOSE] | ### Patterns - **Architecture**: SSR — pages render as HTML on the server before browser - **Routing**: File-based (app/routes/*.tsx files = URL routes) - **Server functions**: `*.server.ts` files auto-deploy via GitHub (no Lovable prompt needed) - **Components**: [COMPONENT_PATTERN_DESCRIPTION] - **State**: [STATE_MANAGEMENT_PATTERN] - **Data Flow**: Routes (loaders) → Supabase Client → Edge Functions ### Quick Lookup | Looking for... | Check here | |----------------|------------| | UI components | `app/components/ui/` | | Page routes | `app/routes/` (file = route) | | Root layout | `app/routes/__root.tsx` | | Server functions | `app/**/*.server.ts` | | API calls | `app/lib/` or `app/integrations/` | | Types | `app/types/` or `app/integrations/supabase/types.ts` | | Supabase Edge functions | `supabase/functions/[name]/index.ts` | *Last updated: [TIMESTAMP]* ``` -------------------------------- ### Claude Code Setup Command Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/connect-mcp.md Instructions for adding the Lovable MCP server to Claude Code via the terminal. ```bash ## Claude Code Setup Run this command in your terminal: claude mcp add --transport http lovable https://mcp.lovable.dev Then restart Claude Code for the changes to take effect. After restarting: 1. Claude Code will prompt you to authorize with Lovable 2. Sign in with your Lovable account 3. Grant Claude access to your projects Done! Come back and I'll verify the connection. Type "done" when you've completed the setup, or "help" if you ran into issues. ``` -------------------------------- ### Example of Deno environment variable usage Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/references/secret-detection.md Example of how environment variables are accessed within a Supabase Edge Function. ```typescript const apiKey = Deno.env.get("RESEND_API_KEY"); const webhookSecret = Deno.env.get("WEBHOOK_SECRET"); ``` -------------------------------- ### Navigate to Lovable project page Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/yolo/references/automation-workflows.md Initial step to navigate to the project page immediately after a git push to start sync detection. ```text - Go directly to Lovable project page after git push - Don't wait 30 seconds first - sync detection starts immediately ``` -------------------------------- ### Yolo Mode Configuration in CLAUDE.md Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/yolo.md Example of the Yolo mode configuration section within the CLAUDE.md file. ```markdown ## Yolo Mode Configuration (Beta) > ⚠️ Beta feature - auto-submits Lovable prompts via MCP or browser automation > Auto-push is independent; verify GitHub sync before deployment. - **Status**: on - **Deployment Method**: [auto if --auto or default; mcp if --mcp; browser if --browser] - **Deployment Testing**: [on if --testing or default, off if --no-testing] - **Auto-run Tests**: off - **Debug Mode**: [on if --debug, off otherwise] - **Last Updated**: [current timestamp] - **Operations Covered**: - Automatic deployment detection after git push - Edge function deployment - Migration application - Automated testing after code push **Configure:** Run `/yolo on/off [--mcp|--browser|--auto] [--testing|--no-testing] [--debug]` ``` -------------------------------- ### Testing section of .lovable-agent/config.json Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/testing/references/test-plan-format.md Example configuration for the testing section, including preview URL, access method, token dates, deployment test settings, and sync parameters. ```json { "version": 1, "preview_url": "https://preview--my-app.lovable.app", "access_method": "token", "token_captured": "2026-06-10", "token_expires": "2026-06-17", "production_url": "https://my-app.lovable.app", "test_after_implementation": true, "test_after_deploy": "smoke", "last_synced_commit": "abc1234", "last_synced_at": "2026-06-10T14:30:00Z", "plan_counter": 7, "default_profile": "default", "sync_wait_seconds": 120 } ``` -------------------------------- ### Example .lovable-agent/config.json schema Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/references/agent-config.md Shows the full JSON structure of the provider-neutral project contract. It includes project metadata, sync settings, deployment options, testing configuration, and an inventory of edge functions, migrations, and secrets. Note that it contains settings and secret metadata, never secret values. ```json { "schema_version": 1, "project": { "name": "my-lovable-app", "production_url": "https://my-app.lovable.app", "lovable_url": "https://lovable.dev/projects/PROJECT_ID", "github_url": "https://github.com/owner/repo", "backend": "lovable-cloud", "supabase_ref": "", "architecture": "vite-spa" }, "sync": { "branch": "main", "auto_sync": true, "auto_push": false }, "deploy": { "mode": "auto", "yolo_mode": false, "confirm_migrations": false, "test_after_deploy": "off" }, "testing": { "enabled": true, "preview_url": "https://preview--my-app.lovable.app", "access_method": "token", "token_captured": "2026-08-12", "token_expires": "2026-08-19", "test_after_implementation": false, "test_after_deploy": "smoke", "last_synced_commit": "abc1234" }, "inventory": { "edge_functions": [], "migrations": [], "secrets": [ {"name": "RESEND_API_KEY", "status": "configured", "used_in": ["send-email"]} ] } } ``` -------------------------------- ### Troubleshooting Claude Code MCP Setup Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/connect-mcp.md Provides troubleshooting steps for common errors encountered during Claude Code MCP configuration. ```text ## Troubleshooting Claude Code MCP Setup ### Error: "claude command not found" Make sure Claude Code CLI is installed and in your PATH. Install: https://claude.ai/code ### Error: "transport http not supported" You may have an older version of Claude Code. Update: claude update (or reinstall from claude.ai/code) ### OAuth doesn't open / fails 1. Make sure you're logged into Lovable in your browser 2. Try: claude mcp remove lovable Then retry: claude mcp add --transport http lovable https://mcp.lovable.dev ### MCP server shows as "offline" 1. Check internet connection 2. Try restarting Claude Code 3. Run: claude mcp list to verify the server is listed Still stuck? Check Lovable's docs: https://docs.lovable.dev/integrations/lovable-mcp-server ``` -------------------------------- ### Test result markdown example Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/testing/references/test-plan-format.md Shows the structure of a test run result file, including trigger, preview URL, access token, commit, plans run summary, per-plan pass/fail details with failure diagnosis, and follow-up actions. ```markdown # Test Run: 2026-06-10 - smoke suite - **Trigger**: post-deploy (yolo) | manual | post-implementation - **Preview URL**: https://preview--my-app.lovable.app - **Access**: token (expires 2026-06-17) - **Commit tested**: abc1234 - **Plans run**: 3 | ✅ 2 pass | ❌ 1 fail | ⏭️ 0 blocked ## TP-001: User signup with email - ✅ PASS All 5 steps passed. Duration: 38s. ## TP-002: Create project - ✅ PASS All 4 steps passed. Duration: 22s. ## TP-004: Send invitation - ❌ FAIL - Failed at step 3: "Click Send invite" - Expected: success toast appears - Actual: console error `POST /functions/v1/send-invite 500` `{"error":"RESEND_API_KEY is not configured"}` - Diagnosis: missing secret in Lovable Cloud - Suggested fix: add RESEND_API_KEY in Cloud → Secrets, then redeploy ## Follow-ups - [ ] Configure RESEND_API_KEY and re-run TP-004 ``` -------------------------------- ### Test profile JSON example Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/testing/references/test-plan-format.md Defines a test persona with credentials and seed data. Uses {timestamp} in email_pattern for unique signup emails; fixed email is for login tests. Test credentials only - never real user passwords or production secrets. ```json { "name": "default", "description": "Standard throwaway test user", "email_pattern": "test+{timestamp}@example.com", "email": "claude-test@example.com", "password": "TestPass!2026", "role": "user", "seed_data": { "display_name": "Claude Test", "company": "Test Co" }, "notes": "email_pattern with {timestamp} generates unique signup emails; fixed email is for login tests (account must exist in preview DB)." } ``` -------------------------------- ### Secret Name Variations Example Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/references/secret-detection.md Examples of different naming variations for the same service that require user clarification. ```typescript Deno.env.get("OPENAI_API_KEY") Deno.env.get("OPENAI_KEY") Deno.env.get("OPENAI_API_SECRET") ``` -------------------------------- ### Dynamic Environment Access Example Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/references/secret-detection.md An example of dynamic environment access where the secret name cannot be extracted automatically. ```typescript const apiKey = Deno.env.get(someVariable); // Can't extract secret name ``` -------------------------------- ### Auto-Deploy Step 2: Check Configuration Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/yolo/references/detection-logic.md Step to read CLAUDE.md and branch logic based on yolo_mode and auto_deploy settings. ```text 1. Read CLAUDE.md 2. Check yolo_mode and auto_deploy settings 3. Branch based on settings: - Both ON → Proceed with automation - yolo_mode ON, auto_deploy OFF → Notify only - yolo_mode OFF → Show manual prompts ``` -------------------------------- ### Deploy and Sync Commands Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/README.md Use these commands to deploy your code to Lovable and synchronize secrets or configurations. ```bash /lovable:deploy-edge # Deploy to Lovable /lovable:sync # Keep secrets/config in sync ``` -------------------------------- ### First-time Enable with MCP Connected Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/yolo.md Shows the output when running /yolo on with Lovable MCP connected. Confirms auto-deploy after git push, lists benefits and risks, and displays the resulting configuration with testing on and debug off. ```text $ /yolo on ⚠️ YOLO MODE (BETA) Deployment method: Lovable MCP (connected) Benefits: ✅ Auto-deploy after git push - no manual /deploy-edge command needed ✅ No manual copy-paste of prompts ✅ Local work and browser Cloud inspection minimize charged prompts Risks: ⚠️ Beta feature - may have bugs ⚠️ Uses Lovable credits for each send_message call Continue enabling yolo mode? yes ✅ Yolo mode ENABLED Configuration: - Deployment Method: auto (browser first) - Testing: ✅ ON - Debug: OFF 🌐 Browser-first flow enabled; MCP is reserved as fallback From now on, after you push backend changes to main: - I'll automatically detect edge function or migration changes - Submit deployment prompts via Lovable MCP - No need to run /deploy-edge manually! - Run 3 levels of verification tests Operations automated: ✅ Edge function deployment ✅ Migration application To disable: /yolo off ``` -------------------------------- ### Test Sync CLI Syntax Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/test-sync.md Available command-line options for running the test synchronization process. ```text /lovable:test-sync # Interactive: show gaps, ask before creating /lovable:test-sync --apply # Create suggested plans without asking per-plan /lovable:test-sync --dry-run # Report coverage gaps only, change nothing ``` -------------------------------- ### Debug Output for Submit Prompt Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/yolo/references/automation-workflows.md Example debug output when yolo_debug is enabled for the submission step. ```text 🐛 DEBUG: Step 3 - Submit Prompt (form_input) Method: form_input (instant) Ref: ref_42 Value: "Deploy the send-email edge function" Result: ✅ Value set (0.1s) Submission method: Enter key Result: ✅ Submitted (0.1s) Confirmation: read_page DOM check Looking for: User message with "Deploy the send-email" Result: ✅ Message confirmed in DOM (0.3s) Total time: 0.5s (vs ~2.5s with typing) ``` -------------------------------- ### Review-Specific Deployment Prompt Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/apply-migration.md Prompt for reviewing and applying a specific migration file. ```text 📋 **LOVABLE PROMPT:** > "Review and apply the migration [filename]" ``` -------------------------------- ### Debug Output for Locate Chat Interface Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/yolo/references/automation-workflows.md Example debug output when yolo_debug is enabled for the location step. ```text 🐛 DEBUG: Step 2 - Locate Chat Interface (ref-based) Method: find tool Query: "Ask Lovable chat input textarea" Result: ✅ Found Element details: ref: ref_42 role: textbox name: "Ask Lovable..." state: enabled, visible Verification: ✅ Name contains "Ask Lovable" ✅ Element is enabled ✅ Ref stored for Step 3 Result: ✅ Chat input ref acquired (0.2s) ``` -------------------------------- ### Storage Prompt Reference Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/SKILL.md Common prompts for managing storage buckets and access. ```text "Create a public storage bucket called [name]" "Create a private storage bucket called [name]" "Allow authenticated users to upload to [bucket]" ``` -------------------------------- ### Debug Mode Auto-Deploy Output Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/yolo/references/post-push-automation.md Example of the detailed output generated when yolo_debug is set to on during an automated deployment workflow. ```text 🐛 DEBUG: Auto-Deploy Detection Git push completed to: origin/main Commit range: abc123..def456 Files in push: - supabase/functions/send-email/index.ts (modified) - supabase/functions/send-email/utils.ts (modified) - src/components/EmailForm.tsx (modified) Backend file analysis: Edge functions: - send-email: 2 files changed Migrations: - None Configuration check: CLAUDE.md found: Yes yolo_mode: on auto_deploy: on yolo_testing: on yolo_debug: on Decision: ✅ Proceed with automated deployment Secret validation: Scanning supabase/functions/send-email/... Found: RESEND_API_KEY Status: ✅ In Lovable Cloud (from CLAUDE.md secrets table) Starting automation workflow... ``` -------------------------------- ### Verify and Offer First Run Summary Output Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/testing/references/test-wizard.md The summary output displayed after the test workspace is successfully created, providing a breakdown of plans, profiles, access status, and the command to initiate the smoke test suite. ```text ✅ Test workspace created: .lovable-agent/tests/ - 7 test plans (4 smoke) - 2 profiles (default, admin) - Preview access: token (valid until 2026-06-17) - Coverage baseline: commit abc1234 Run the smoke suite now to validate the setup? (yes/no) → /lovable:test-run --smoke ``` -------------------------------- ### Apply database migrations Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/README.md Required step for database migration synchronization. ```bash /lovable:apply-migration ``` -------------------------------- ### Secret Detection Results Interface Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/references/secret-detection.md Example output showing the categorization of detected secrets into codebase-required, cloud-configured, and suggested categories. ```text 🔍 Secret Detection Results: From codebase (needs setup): - OPENAI_API_KEY (used in: chat-completion edge function) Purpose: OpenAI chat completions - STRIPE_SECRET_KEY (used in: process-payment edge function) Purpose: Stripe payments From Lovable Cloud (already configured): ✅ RESEND_API_KEY (already in: send-email, send-welcome) ✅ SUPABASE_SERVICE_ROLE_KEY (system) Suggested (optional): 💡 STRIPE_WEBHOOK_SECRET (might be needed for: process-payment) Purpose: Stripe webhook verification Any additional secrets to track? (Enter comma-separated names, or press Enter to continue) ``` -------------------------------- ### Preview Testing Commands Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/README.md Commands for initializing, running, and syncing test coverage in Lovable Preview mode. ```bash /lovable:test-init # Wizard: scans your app, suggests test plans for its main actions /lovable:test-run # Run tests in Preview (--smoke | --changed | --all | TP-001) /lovable:test-sync # New features missing tests? Resync coverage ``` -------------------------------- ### Access Priority Decision Logic Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/testing/references/preview-access.md The order of operations for determining how to access a Lovable preview, starting from token validation to user prompts. ```text 1. preview-token.local exists AND token not expired → Navigate to: [preview_url]?__lovable_token=[token] 2. Token missing/expired, Access Method is browser-login OR user likely logged in → Navigate to bare preview URL → If app loads (not a login/denied page) → proceed → If login wall appears → fall through to 3 3. Ask the user: "I need access to your Lovable Preview to run tests. Either: A) Log in to Lovable in Chrome, or B) Paste a fresh preview URL with token: (Lovable project → preview mode → click the arrow icon next to the address bar → copy the URL from the new tab)" 4. If browser automation itself is unavailable → Output manual test checklist (never block) ``` -------------------------------- ### preview-token.local File Format Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/testing/references/preview-access.md The expected format for the preview-token.local file, which should contain only the token string on a single line. ```text eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoi... ``` -------------------------------- ### First-time Enable without MCP Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/yolo.md Shows the output when running /yolo on without Lovable MCP connected. Uses browser automation as fallback and suggests connecting MCP for faster automation. ```text $ /yolo on ⚠️ YOLO MODE (BETA) Deployment method: Browser automation (MCP not connected) ... 💡 Tip: Connect Lovable MCP for faster, more reliable automation: Run: /lovable:connect-mcp Continue enabling yolo mode? yes ✅ Yolo mode ENABLED Configuration: - Deployment Method: auto (browser fallback) - Testing: ✅ ON - Debug: OFF Operations automated: ✅ Edge function deployment ✅ Migration application To enable MCP: /lovable:connect-mcp To disable: /yolo off ``` -------------------------------- ### Deployment Prompt Generation Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/apply-migration.md Standard prompt for applying pending migrations. ```text 📋 **LOVABLE PROMPT:** > "Apply pending Supabase migrations" ``` -------------------------------- ### Auto-Sync Hook Workflow Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/README.md The auto-sync hook automatically pulls the latest changes from GitHub when Claude starts, provided the branch is main and there are no uncommitted changes. ```text Claude starts → Hook pulls latest → You work on current code → No conflicts! ``` -------------------------------- ### Generate multiple functions deployment prompt Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/deploy-edge.md Use this prompt format when deploying all edge functions. ```text 📋 **LOVABLE PROMPT:** > "Deploy all edge functions" ``` -------------------------------- ### Status Command Output Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/connect-mcp.md Displays the current connection status and deployment method configuration. ```text ## Lovable MCP Status Connection: [✅ Connected / ❌ Not connected / ⚠️ Unknown] Deployment Method: [mcp / browser / auto] (from CLAUDE.md) [If connected:] Tools available: send_message, get_message, and others Yolo mode will use MCP automatically. [If not connected:] To connect: /lovable:connect-mcp ``` -------------------------------- ### Test Sync Report Output Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/test-sync.md Example of the report generated by the test sync process, detailing new features, stale plans, and unit test gaps. ```text 🔄 Test Sync - changes since [commit] ([date], [N] commits) New features without test plans: 1. Password reset flow (src/pages/ResetPassword.tsx) → suggest TP-008 2. Export to CSV (src/components/ExportButton.tsx, export-csv function) → suggest TP-009 Stale plans (covered code changed): - TP-003 Create a project - form gained a "category" field → update steps Orphaned: none Unit test gaps: src/lib/csv.ts has no tests Create/update these? (all / pick numbers / skip) ``` -------------------------------- ### Auto-Deploy Step 4: Execute or Notify Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/yolo/references/detection-logic.md Final step to trigger automation or notify the user based on sync verification and configuration. ```text If auto_deploy: on AND sync verified: - Show: "🤖 Auto-deploy: Backend changes detected..." - Execute browser automation - Run tests if enabled - Show summary If auto_deploy: off: - Show: "📦 Backend changes detected. Run /deploy-edge to deploy." - Don't auto-execute ``` -------------------------------- ### Regex for .env.example file parsing Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/references/secret-detection.md Regex pattern used to identify environment variable keys in .env.example files. ```regex ^([A-Z_]+)= ``` -------------------------------- ### Generate action checklist Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/sync-status.md The template for the next steps required to complete the synchronization process. ```text ## Next Steps: 1. [ ] Commit: `git add . && git commit -m "message"` 2. [ ] Push: `git push origin main` 3. [ ] Wait 1-2 min for Lovable sync 4. [ ] Run in Lovable: [prompts] 5. [ ] Verify at: [production URL] ``` -------------------------------- ### Post-Migration Verification Prompt Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/apply-migration.md Suggested prompt to verify the database structure after a migration is applied. ```text After applying, verify: > "Show me the [table_name] table structure" ``` -------------------------------- ### Generate single function deployment prompt Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/deploy-edge.md Use this prompt format when deploying a specific edge function. ```text 📋 **LOVABLE PROMPT:** > "Deploy the [function-name] edge function" ``` -------------------------------- ### Database Prompt Reference Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/SKILL.md Common prompts for database schema management and migrations. ```text "Create a [name] table with columns: id (uuid), name (text), created_at (timestamp)" "Add a [column] column of type [type] to [table]" "Add foreign key from [table1].[col] to [table2].id" "Apply pending Supabase migrations" ``` -------------------------------- ### Initialize Lovable Agent Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/README.md Run this command to scan your project and generate the necessary configuration files, including .lovable-agent/config.json, AGENTS.md, and CLAUDE.md. ```bash /lovable:init ``` -------------------------------- ### Preview Testing Configuration Section for CLAUDE.md Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/test-init.md The configuration block to be added to CLAUDE.md after running the initialization wizard. ```markdown ## Preview Testing Configuration > Tests run against the Lovable Preview app via browser automation. > Test plans live in `.lovable-agent/tests/` (legacy `.claude/lovable-claude/test/` remains supported). - **Status**: on - **Preview URL**: [base preview URL, no token] - **Access Method**: [token / browser-login] - **Token Captured**: [date] (valid ~7 days - run `/lovable:test-init --refresh-token` to renew) - **Test After Implementation**: [on / off] - **Test After Deploy**: [off / smoke / all] - **Last Test Sync**: [commit hash] **Commands:** `/lovable:test-run [TP-NNN | --all | --changed | --smoke]` · `/lovable:test-sync` **Maintenance rule:** when implementing a new feature, also add/update unit tests and test plans for it (or run `/lovable:test-sync`). Keep `covers:` paths in plans accurate. ``` -------------------------------- ### Sync-Agent Invocation Configuration Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/sync-lovable.md Shows how to delegate to the sync-agent, passing the mode and force_rescan flag. The agent will execute all 5 phases autonomously. ```text Invoke: agents/sync-agent.md Pass configuration: - mode: [interactive|auto-apply|dry-run|manual|debug] - force_rescan: boolean (from --force-rescan flag) Agent will execute all 5 phases autonomously: 1. Git synchronization 2. Secret discovery 3. State comparison 4. Update proposal 5. Application (if approved) ``` -------------------------------- ### Enable debug mode Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/yolo/references/post-push-automation.md Use this command to enable detailed output for debugging deployment issues. ```bash /lovable:yolo --debug ``` -------------------------------- ### Synchronize Local Environment with Lovable Cloud Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/README.md Commands to synchronize project state, useful for pulling secrets, new functions, or verifying alignment. ```bash /lovable:sync # Interactive (show changes, ask) /lovable:sync --apply # Auto-apply changes /lovable:sync --dry-run # Preview changes /lovable:sync --manual # Manual entry mode /lovable:sync --debug # Show detailed logs ``` -------------------------------- ### Auto-apply mode output Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/agents/sync-agent.md Displays the summary when the sync agent runs in auto-apply mode. ```text ✅ Auto-sync completed Updated CLAUDE.md with latest project state. Changes: +1 secret, -1 secret, ~1 status change Committed and ready to push. ``` -------------------------------- ### Auto-Deploy Step 3: Verify GitHub Sync Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/yolo/references/detection-logic.md Step to ensure Lovable has synced with GitHub using DOM-based detection before submitting deployment prompts. ```text IMPORTANT: Before submitting deployment prompts, verify Lovable has synced. Use DOM-based detection (faster & more reliable than visual scanning): 1. Navigate to Lovable project page 2. Use read_page to get page content 3. Search for commit message text in sidebar 4. Poll every 2 seconds until found (max 60 seconds) See automation-workflows.md Step 1.5 for detailed implementation. WHY THIS MATTERS: - Lovable syncs from GitHub asynchronously (1-2 min) - Deploying before sync = deploying stale code - DOM-based detection is faster than visual scanning for icons ``` -------------------------------- ### Auth Prompt Reference Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/SKILL.md Common prompts for configuring authentication providers and triggers. ```text "Enable Google authentication" "Enable GitHub authentication" "When user signs up, create row in profiles table" ``` -------------------------------- ### Add Question 8.5 to /lovable:init Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/skills/lovable/references/codebase-map.md Prompt to add to the /lovable:init flow, asking the user if they want a Project Structure Map. Default is yes (recommended). ```plaintext Would you like me to generate a Project Structure Map? This helps me navigate your codebase faster by documenting: - Directory structure and purposes - Key files and their roles - Component organization patterns Generate map? (yes/no) Default: yes (recommended) ``` -------------------------------- ### Project Initialization Error Source: https://github.com/10k-digital/lovable-agent-skills/blob/main/plugins/lovable/commands/yolo.md Error message displayed if yolo mode is enabled before the project is initialized. ```text ❌ Cannot enable yolo mode - project not initialized Run /init-lovable first to set up the project. ```