🚀 Lovable Agent Skills: Claude Code + Codex + More
Edit Lovable Projects 10x Faster—Without Leaving Your IDE
Stop copy-pasting between Lovable and Claude. Stop wrestling with two-way sync. Stop burning through API credits for simple changes.
The Lovable Agent Skills plugin brings the power of your coding agent directly to your Lovable projects. Codex, Claude Code, and other Agent Skills runtimes share the same provider-neutral workflows; Claude Code commands and hooks remain available for existing projects.
What You Get:
✨ Edit Lovable projects right in your IDE with Codex, Claude Code, or another coding agent
🧪 Preview Testing - automated test plans run against your live Preview app
🌿 Lovable Drafts - build, review, and accept parallel versions safely via MCP (NEW in v2.1.0)
🏗️ Dual-architecture support - works with both Vite SPA and TanStack Start (SSR) projects (v1.8.1)
🔌 Lovable MCP integration - deploy via API instead of browser (NEW in v1.8.0!)
🗺️ Project Structure Map - agents navigate your codebase faster
⚡ Auto-push to GitHub - automatic commit and push after every task
🚀 Auto-deploy to Lovable - no manual commands needed
🤖 Complete workflow automation - from code changes to production
💰 Save credits by using your Claude subscription for heavy lifting
🔄 Zero friction syncing - between your code, GitHub, and Lovable Cloud
🛡️ Automatic secret detection - never forget a required API key
⚡ Instant setup - generates project context automatically
✅ Verification built-in - tests run after every deployment
What's new in 2.1.0: Lovable Drafts
Lovable drafts are hosted parallel versions of a project, each with its own chat and preview.
Version 2.1.0 adds the lovable-drafts skill ($lovable:lovable-drafts in Codex) and the Claude
/lovable:draft command, built on the official Lovable MCP draft tools (create_draft,
send_message with draft_id, get_diff, accept_draft, reject_draft). The skills now know that:
- drafts are not Git branches and do not sync; accepted drafts land on
main as a normal commit;
- edge-function deployment, secrets, sign-in, storage, payments, and email stay on the main version;
- draft data may be shared with the live database, so agents check
backend_kind before writing;
- accepting a draft always needs your explicit acceptance, even with YOLO on, and does not publish.
Opt in with "deploy": { "use_drafts": "prefer" } in .lovable-agent/config.json to have hosted
feature work built in a draft for review. Other 2.1.0 updates: Lovable now reads your repository's
AGENTS.md/CLAUDE.md, so the generated local-agent section tells Lovable it doesn't apply to it;
free read-only MCP tools are allowed for inspection (only send_message and create_project use
credits); and the skills reflect the retirement of Test/Live environments, Drizzle migration records,
and publish-time security checks.
Version 2.2.0 refreshes the drafts guidance against Lovable's December 2026 docs and changelog (own
vs. shared draft backends, draft limits, accept-then-publish) and forbids setting up credit auto
top-up.
Version 2.1.1 fixes the Claude Code SessionStart hook error (/hooks/auto-sync.sh: No such file or directory): the Claude Code manifest now lives at plugins/lovable/.claude-plugin/plugin.json, where
Claude Code looks for it. Update the plugin to pick up the fix.
Provider-neutral agent contract
Version 2.0.1 includes the init skill and a shared YOLO authorization policy. Reinitialize an
existing project to refresh its generated instructions without resetting its settings. The Codex
manifest declares the official Lovable MCP server inline; .mcp.json retains the same direct
server map for compatibility. Both configurations are checked for consistency by the tests.
Use the init skill ($lovable:init in Codex) to initialize or reinitialize a project.
The Claude /lovable:init-lovable command uses the same workflow. Existing settings and custom
instructions are preserved. deploy.yolo_mode: true grants standing authorization for in-scope
Lovable prompts via MCP or browser; generic confirmation rules apply when YOLO is off.
Explicit task restrictions and destructive-operation confirmation still apply.
New projects use .lovable-agent/ as the shared source of truth:
.lovable-agent/
├── config.json # project, sync, deploy, testing, and secret metadata
├── context.md # provider-neutral project context (no secret values)
├── preview-token.local # ignored Preview credential, never committed
└── tests/ # plans, profiles, and results
AGENTS.md is the canonical instruction file. CLAUDE.md and the legacy
.claude/lovable-claude/test/ workspace remain compatible aliases. Run /lovable:migrate-agent
or python3 plugins/lovable/scripts/migrate-workspace.py to migrate an existing project.